[ADD]date to rma_line

This commit is contained in:
Aaron Henriquez
2019-04-17 10:36:45 +02:00
parent 2110135e0c
commit dd7cb79eb0
2 changed files with 7 additions and 1 deletions

View File

@@ -396,7 +396,8 @@ class RmaOrderLine(models.Model):
string="Under Warranty?",
readonly=True, states={'draft': [('readonly', False)]},
)
create_date = fields.Datetime(string='Creation Date', readonly=True, index=True,
help="Date on which RMA order is created.")
@api.multi
def _prepare_rma_line_from_stock_move(self, sm, lot=False):
if not self.type:

View File

@@ -8,6 +8,7 @@
<tree string="RMA Line"
decoration-info="state in ('draft','to_approve')">
<field name="name"/>
<field name="create_date"/>
<field name="partner_id"/>
<field name="product_id"/>
<field name="lot_id" groups="stock.group_production_lot"/>
@@ -30,6 +31,7 @@
<tree string="RMA Line"
decoration-info="state in ('draft','to_approve')">
<field name="name"/>
<field name="create_date"/>
<field name="partner_id"/>
<field name="product_id"/>
<field name="lot_id" groups="stock.group_production_lot"/>
@@ -108,6 +110,7 @@
<field name="partner_id"
domain="[('supplier','=',True)]"
string="Supplier"/>
<field name="create_date"/>
</group>
<group>
<group name="product" string="Product">
@@ -279,6 +282,7 @@
<field name="partner_id"
domain="[('customer','=',True)]"
string="Customer"/>
<field name="create_date"/>
</group>
<group name="warranty">
<field name="under_warranty"/>
@@ -397,6 +401,7 @@
<field name="assigned_to"/>
<field name="product_id"/>
<field name="lot_id"/>
<field name="create_date"/>
<separator/>
<filter domain="[('assigned_to','=',uid)]" help="My RMAs"/>
<separator/>