mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma: order by id desc
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user