Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pool = Pool()
- Lot = pool.get('stock.lot')
- for move in self.inputs:
- with Transacion().set_context(locations=[move.from_location.id]):
- lot = Lot(lot.id) # We need to re-read to get the valid context
- print lot.quantity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement