SHOW:
|
|
- or go back to the newest paste.
| 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 |