mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[9.0] add under_warranty field
This commit is contained in:
@@ -353,6 +353,10 @@ class RmaOrderLine(models.Model):
|
|||||||
digits=dp.get_precision('Product Unit of Measure'),
|
digits=dp.get_precision('Product Unit of Measure'),
|
||||||
readonly=True, compute=_compute_qty_supplier_rma,
|
readonly=True, compute=_compute_qty_supplier_rma,
|
||||||
store=True)
|
store=True)
|
||||||
|
under_warranty = fields.Boolean(
|
||||||
|
string="Under Warranty?",
|
||||||
|
readonly=True, states={'draft': [('readonly', False)]},
|
||||||
|
)
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def _prepare_rma_line_from_stock_move(self, sm, lot=False):
|
def _prepare_rma_line_from_stock_move(self, sm, lot=False):
|
||||||
|
|||||||
@@ -257,9 +257,14 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<group name="partner">
|
<group name="partner">
|
||||||
<field name="partner_id"
|
<group name="partner">
|
||||||
|
<field name="partner_id"
|
||||||
domain="[('customer','=',True)]"
|
domain="[('customer','=',True)]"
|
||||||
string="Customer"/>
|
string="Customer"/>
|
||||||
|
</group>
|
||||||
|
<group name="warranty">
|
||||||
|
<field name="under_warranty"/>
|
||||||
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<group name="main_info" string="Origin">
|
<group name="main_info" string="Origin">
|
||||||
<field name="reference_move_id"
|
<field name="reference_move_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user