Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- context1 = {
- 'stock_date_end': date1,
- 'locations': location_ids,
- }
- with Transaction().set_context(context1):
- a = product.quantity
- context2 = {
- 'stock_date_end': date2,
- 'locations': location_ids,
- }
- with Transaction().set_context(context2):
- b = product.quantity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement