You can use either _order in your python file by inheriting the project.task model or by adding the default_order attribute by inheriting the tree view in your xml file.
in .py file:
_inherit = 'project.task'
_order = 'date_start desc'
in xml file:
<record id="view_task_tree2_inherited" model="ir.ui.view">
<field name="inherit_id" ref="project.view_task_tree2"/>
<field name="arch" type="xml">
<attribute name="default_order">date_start desc</attribute>
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/8/15, 9:28 AM|
|Seen: 591 times|
|Last updated: 10/12/15, 9:01 AM|