Skip to content

Commit

Permalink
[FIX] mrp_byproduct: missing oldname
Browse files Browse the repository at this point in the history
Impacts migrations

closes #32900

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
  • Loading branch information
bouvyd committed Apr 24, 2019
1 parent 4730a88 commit 90af625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mrp_byproduct/models/mrp_subproduct.py
Expand Up @@ -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')

Expand Down

0 comments on commit 90af625

Please sign in to comment.