mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[9.0][IMP] mrp_production_request: add tests.
This commit is contained in:
committed by
Chandresh Thakkar
parent
4c516416ea
commit
f579cbf8b5
@@ -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=[])
|
||||
|
||||
Reference in New Issue
Block a user