[9.0] add under_warranty field

This commit is contained in:
lreficent
2017-10-25 13:59:19 +02:00
committed by AaronHForgeFlow
parent d6f6b87b74
commit 02614cc09e
2 changed files with 10 additions and 1 deletions

View File

@@ -353,6 +353,10 @@ class RmaOrderLine(models.Model):
digits=dp.get_precision('Product Unit of Measure'),
readonly=True, compute=_compute_qty_supplier_rma,
store=True)
under_warranty = fields.Boolean(
string="Under Warranty?",
readonly=True, states={'draft': [('readonly', False)]},
)
@api.multi
def _prepare_rma_line_from_stock_move(self, sm, lot=False):