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?