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:55:56 +02:00
parent 6f41c3b680
commit c1187053d4
1 changed files with 1 additions and 4 deletions

5
bom.py
View File

@ -235,10 +235,7 @@ class OpenVersions(Wizard):
pool = Pool()
Bom = pool.get('production.bom')
transaction = Transaction()
context = transaction.context
bom = Bom(context.get('active_id'))
bom = self.record
encoder = PYSONEncoder()
action['pyson_domain'] = encoder.encode(