Skip to Content
Menu
This question has been flagged
2 Replies
2052 Views

I'm using odoo 9 and i want to display delivery orders in a way that the last one (the most recent) is the first to display automatically . I tried to apply a filter to do this order but there is no solution. The only solution that i found is to press on the field date to make it in order that the last delivery created is shows the first. Is there a solution to do that automatically espacially that the sale orders display in thist way? Any idea for help please ?

Avatar
Discard
Best Answer

You can do this via XML:

Use the default_order attribute of the Tree View:


Avatar
Discard
Best Answer

Hi,

You can inherit the corresponding model and give the order attribute for the model.

Example

Class StockPicking(models.Model):

_inherit = 'stock.picking'

_order = 'field_name desc'


Thanks

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 23
496
0
Sep 23
450
2
Feb 23
9252
6
Oct 23
19265
3
Mar 24
7685