Replace active_id from context to self.records in do_open StateAction wizard

#162822
This commit is contained in:
Raimon Esteve 2023-10-18 07:50:42 +02:00 committed by GitHub
parent d64dbcf134
commit a71fe0e1ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: