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