Replace active_id from context to self.records in do_open StateAction wizard
#162822
This commit is contained in:
parent
6f41c3b680
commit
c1187053d4
5
bom.py
5
bom.py
|
@ -235,10 +235,7 @@ class OpenVersions(Wizard):
|
||||||
pool = Pool()
|
pool = Pool()
|
||||||
Bom = pool.get('production.bom')
|
Bom = pool.get('production.bom')
|
||||||
|
|
||||||
transaction = Transaction()
|
bom = self.record
|
||||||
context = transaction.context
|
|
||||||
|
|
||||||
bom = Bom(context.get('active_id'))
|
|
||||||
|
|
||||||
encoder = PYSONEncoder()
|
encoder = PYSONEncoder()
|
||||||
action['pyson_domain'] = encoder.encode(
|
action['pyson_domain'] = encoder.encode(
|
||||||
|
|
Loading…
Reference in New Issue