mirror of
https://github.com/NaN-tic/trytond-farm_feed_production.git
synced 2023-12-14 05:52:53 +01:00
Don't check production's prescription until explode bom
This commit is contained in:
parent
18e864178c
commit
3c4f6e5eae
1 changed files with 6 additions and 4 deletions
|
@ -81,10 +81,12 @@ class SupplyRequestLine:
|
|||
return prescription
|
||||
|
||||
def get_production(self):
|
||||
production = super(SupplyRequestLine, self).get_production()
|
||||
if self.move.prescription:
|
||||
production.prescription = self.move.prescription
|
||||
return production
|
||||
with Transaction().set_context(
|
||||
avoid_production_check_prescription=True):
|
||||
production = super(SupplyRequestLine, self).get_production()
|
||||
if self.move.prescription:
|
||||
production.prescription = self.move.prescription
|
||||
return production
|
||||
|
||||
def _production_bom(self):
|
||||
pool = Pool()
|
||||
|
|
Loading…
Reference in a new issue