Skip to content
Permalink
Browse files

[FIX] mrp_byproduct: missing oldname

Impacts migrations

closes #32900

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
  • Loading branch information...
dbo-odoo committed Apr 24, 2019
1 parent 4730a88 commit 90af6254ba553d4c158b3266c74769193e473fc5
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/mrp_byproduct/models/mrp_subproduct.py
@@ -13,7 +13,7 @@ class MrpSubProduct(models.Model):
product_qty = fields.Float(
'Product Qty',
default=1.0, digits=dp.get_precision('Product Unit of Measure'), required=True)
product_uom_id = fields.Many2one('product.uom', 'Unit of Measure', required=True)
product_uom_id = fields.Many2one('product.uom', 'Unit of Measure', required=True, oldname='product_uom')
bom_id = fields.Many2one('mrp.bom', 'BoM', ondelete='cascade')
operation_id = fields.Many2one('mrp.routing.workcenter', 'Produced at Operation')

0 comments on commit 90af625

Please sign in to comment.
You can’t perform that action at this time.