[9.0][IMP] mrp_production_request: add tests.

This commit is contained in:
lreficent
2017-06-23 11:45:34 +02:00
committed by Chandresh Thakkar
parent 4c516416ea
commit f579cbf8b5
5 changed files with 124 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ class MrpProductionRequest(models.Model):
return res
@api.onchange('product_id')
def _onchange_product_uom(self):
def _onchange_product_id(self):
self.product_uom = self.product_id.uom_id
self.bom_id = self.env['mrp.bom']._bom_find(
product_id=self.product_id.id, properties=[])