[IMP] rma: order by id desc

This commit is contained in:
Lois Rilo
2023-01-02 10:56:18 +01:00
parent 79e1c5c2eb
commit 76f57a08c9
3 changed files with 7 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ class RmaOrder(models.Model):
_name = "rma.order"
_description = "RMA Group"
_inherit = ["mail.thread"]
_order = "id desc"
@api.model
def _get_default_type(self):

View File

@@ -13,6 +13,7 @@ class RmaOrderLine(models.Model):
_name = "rma.order.line"
_description = "RMA"
_inherit = ["mail.thread"]
_order = "id desc"
@api.model
def _get_default_type(self):

View File

@@ -158,7 +158,11 @@
'default_partner_id': partner_id,
'hide_title': True}"
>
<tree name="lines" editable="bottom">
<tree
name="lines"
editable="bottom"
default_order="id asc"
>
<field name="sequence" widget="handle" />
<field name="state" invisible="True" />
<field name="partner_id" invisible="True" />