We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e374a commit 0202117Copy full SHA for 0202117
sale_fixed_discount/models/sale_order_line.py
@@ -21,12 +21,6 @@ def _compute_discount(self):
21
for line in self:
22
if line.discount_fixed:
23
line.discount = line._get_discount_from_fixed_discount()
24
- def create(self, vals_list):
25
- records = super().create(vals_list)
26
- for vals in records:
27
- if 'discount_fixed' in vals:
28
- vals._onchange_discount_fixed()
29
- return records
30
31
@api.constrains("discount_fixed", "discount")
32
def _check_discounts(self):
0 commit comments