Skip to content

Commit 9581476

Browse files
committed
FIX: Simplify sale.order.line inheritance to only override _action_launch_stock_rule method
1 parent 90a4a27 commit 9581476

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

sale_order_add_byproduct/models/sale_order_line.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,3 @@ def _action_launch_stock_rule(self, previous_product_uom_qty=False):
2121
return super()._action_launch_stock_rule(
2222
previous_product_uom_qty=previous_product_uom_qty
2323
)
24-
25-
def write(self, values):
26-
# Ensure standard behavior is maintained
27-
return super().write(values)
28-
29-
def create(self, values):
30-
# Create the record using standard behavior
31-
# Don't interfere with procurement triggering
32-
record = super().create(values)
33-
34-
# Return the record without additional processing
35-
# Let the standard Odoo flow handle procurement triggering
36-
return record

0 commit comments

Comments
 (0)