Advertisement
Guest User

Untitled

a guest
Jun 13th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def on_change_shipment(self):
  2. <...>
  3.  
  4. result = {
  5. 'shipment': None,
  6. 'line_moves': []
  7. }
  8.  
  9. result['line_moves'].append(('create',
  10. [{'stock_move': stock_move.id, 'landed_cost': True}
  11. for stock_move in shipment.incoming_moves if stock_move.id not in stock_moves_ids]))
  12.  
  13. return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement