Skip to content

Commit 0202117

Browse files
committed
Remove create function
1 parent c8e374a commit 0202117

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sale_fixed_discount/models/sale_order_line.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ def _compute_discount(self):
2121
for line in self:
2222
if line.discount_fixed:
2323
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
3024

3125
@api.constrains("discount_fixed", "discount")
3226
def _check_discounts(self):

0 commit comments

Comments
 (0)