[FIX] mrp: Two fields with the same label on stock.move

The field quantity_done_store had the same label as the field product_uom_qty
on model "stock.move" and there were confusions in the pivot view of
"stock.move".

opw:1841097
This commit is contained in:
Goffin Simon
2018-05-17 09:54:37 +02:00
parent 54d1b38844
commit a16114efb4
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -2161,6 +2161,11 @@ msgstr ""
msgid "Quantity To Produce"
msgstr ""
#. module: mrp
#: model:ir.model.fields,field_description:mrp.field_stock_move_quantity_done_store
msgid "Quantity done store"
msgstr ""
#. module: mrp
#: model:ir.model.fields,field_description:mrp.field_mrp_routing_workcenter_batch_size
msgid "Quantity to Process"
+1 -1
View File
@@ -91,7 +91,7 @@ class StockMove(models.Model):
quantity_available = fields.Float(
'Quantity Available', compute="_qty_available",
digits=dp.get_precision('Product Unit of Measure'))
quantity_done_store = fields.Float('Quantity', digits=0)
quantity_done_store = fields.Float('Quantity done store', digits=0)
quantity_done = fields.Float(
'Quantity', compute='_qty_done_compute', inverse='_qty_done_set',
digits=dp.get_precision('Product Unit of Measure'))