This commit is contained in:
oscar alvarez 2023-03-05 22:32:35 -05:00
parent ba150721e7
commit 118c4fa11e
1 changed files with 2 additions and 1 deletions

View File

@ -33,9 +33,10 @@ class Sale(metaclass=PoolMeta):
Party = Pool().get('party.party')
User = Pool().get('res.user')
ctx = Transaction().context
print('args.....', args)
if ctx.get('shop'):
shop = Shop(ctx['shop'])
if args.get('shop'):
shop = Shop(args['shop'])
else:
user_id = ctx.get('user')
user = User(user_id)