• Tek Siong, Hock

Odoo Form View - Tree view for Mobile browser

In Odoo, when using the Tree view in the form page, there is always a risk that the developer might forgotten to handle the mobile browser scenario.

By default, <tree> tag will be shown empty, like in the screen shot below.

Odoo has a special tag <kanban> to handle for it.

<kanban class="o_kanban_mobile">

You may search in the Odoo source codes and may found plenty of standard Odoo codes that you may follow. Example snippet is given below.

<field name="document_attachments_ids" nolabel="1" mode="tree,kanban">
    <tree editable="bottom">
      #Your normal fields here
    <kanban class="o_kanban_mobile">
       #Your mobile fields here

Click "Like" at the bottom of this blog, to motivate us to continue sharing more Odoo tips.

117 views0 comments