Skip to content
Snippets Groups Projects
Commit ca7b15b5 authored by Josse Colpaert's avatar Josse Colpaert
Browse files

[FIX] mrp: typo Produced Qty -> Quantity To Produce

parent 0efc835f
Branches
Tags
No related merge requests found
......@@ -55,7 +55,7 @@ class MrpProduction(models.Model):
states={'confirmed': [('readonly', False)]})
product_tmpl_id = fields.Many2one('product.template', 'Product Template', related='product_id.product_tmpl_id')
product_qty = fields.Float(
'Quantity to Produce',
'Quantity To Produce',
default=1.0, digits=dp.get_precision('Product Unit of Measure'),
readonly=True, required=True,
states={'confirmed': [('readonly', False)]})
......
......@@ -13,7 +13,7 @@ class ChangeProductionQty(models.TransientModel):
# TDE FIXME: add production_id field
mo_id = fields.Many2one('mrp.production', 'Manufacturing Order', required=True)
product_qty = fields.Float(
'Product Qty',
'Quantity To Produce',
digits=dp.get_precision('Product Unit of Measure'), required=True)
@api.model
......@@ -42,7 +42,7 @@ class ChangeProductionQty(models.TransientModel):
production = wizard.mo_id
produced = sum(production.move_finished_ids.mapped('quantity_done'))
if wizard.product_qty < produced:
raise UserError(_("You have already produced %d qty , Please give update quantity more then %d ")%(produced, produced))
raise UserError(_("You have already processed %d. Please input a quantity higher than %d ")%(produced, produced))
production.write({'product_qty': wizard.product_qty})
#production.action_compute()
#TODO: Do we still need to change the quantity of a production order?
......
......@@ -4,7 +4,7 @@
<!-- Change Product Quantity -->
<record id="view_change_production_qty_wizard" model="ir.ui.view">
<field name="name">Change Product Qty</field>
<field name="name">Change Quantity To Produce</field>
<field name="model">change.production.qty</field>
<field name="arch" type="xml">
<form string="Change Product Qty">
......@@ -21,7 +21,7 @@
</record>
<record id="action_change_production_qty" model="ir.actions.act_window">
<field name="name">Change Product Qty</field>
<field name="name">Change Quantity To Produce</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">change.production.qty</field>
<field name="view_type">form</field>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment