mirror of
https://github.com/NaN-tic/trytond-farm_nutrition_program.git
synced 2023-12-14 05:03:02 +01:00
Replace active_id from context to self.records in do_open StateAction wizard
#162822
This commit is contained in:
parent
d64dbcf134
commit
a71fe0e1ed
1 changed files with 1 additions and 4 deletions
|
@ -88,10 +88,7 @@ class OpenBOM(Wizard):
|
|||
open_ = StateAction('production.act_bom_list')
|
||||
|
||||
def do_open_(self, action):
|
||||
pool = Pool()
|
||||
NutritionProgram = pool.get('farm.nutrition.program')
|
||||
|
||||
program = NutritionProgram(Transaction().context.get('active_id'))
|
||||
program = self.record
|
||||
|
||||
bom_ids = []
|
||||
if program.product.boms:
|
||||
|
|
Loading…
Reference in a new issue