Skip to content

Commit 51c41ad

Browse files
committed
Revert "[IMP] sync_sale_picking_cost: add return case"
This reverts commit a1fff3b.
1 parent a1fff3b commit 51c41ad

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

sync_sale_picking_cost/models/stock_move.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)