Skip to Content
Menu
This question has been flagged
1 Reply
2700 Views

In Odoo 10 we had custom Modules with treeview definitions like this:

<tree create="false" delete="false" default_order="write_date asc">


while upgrading to odoo 11/12 we now get 

Uncaught TypeError: Cannot read property 'type' of undefined


removing default_order attribute solves the issue.

But how can i implement this default_order as before upgrading to odoo 12?


Avatar
Discard
Best Answer

Mention write_date in tree view.


      <tree create="false" delete="false" default_order="write_date asc">
                <field name = "write_date" invisible="1" />
   </tree>



Avatar
Discard