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')
|
open_ = StateAction('production.act_bom_list')
|
||||||
|
|
||||||
def do_open_(self, action):
|
def do_open_(self, action):
|
||||||
pool = Pool()
|
program = self.record
|
||||||
NutritionProgram = pool.get('farm.nutrition.program')
|
|
||||||
|
|
||||||
program = NutritionProgram(Transaction().context.get('active_id'))
|
|
||||||
|
|
||||||
bom_ids = []
|
bom_ids = []
|
||||||
if program.product.boms:
|
if program.product.boms:
|
||||||
|
|
Loading…
Reference in a new issue