File tree Expand file tree Collapse file tree
sync_sale_picking_cost/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,17 +18,3 @@ def _create_out_svl(self, forced_quantity=None):
1818 if line_id .purchase_price != layer .unit_cost :
1919 line_id .write ({"purchase_price" : layer .unit_cost })
2020 return layers
21-
22- def _create_in_svl (self , forced_quantity = None ):
23- layers = super ()._create_in_svl (forced_quantity )
24- for layer in layers .filtered (
25- lambda a : a .stock_move_id
26- and a .stock_move_id .sale_line_id
27- and a .stock_move_id .sale_line_id .product_id .apply_sync_sale_picking_cost
28- and a .stock_move_id .origin_returned_move_id
29- and a .stock_move_id .origin_returned_move_id .sudo ().stock_valuation_layer_ids
30- ):
31- line_id = layer .stock_move_id .sale_line_id
32- if line_id .purchase_price != layer .unit_cost :
33- line_id .write ({"purchase_price" : layer .unit_cost })
34- return layers
You can’t perform that action at this time.
0 commit comments