Skip to content

Commit

Permalink
[FIX] aggrement_rebate: The type of movement is defined in the field …
Browse files Browse the repository at this point in the history
…"move_type"

TT47494
  • Loading branch information
pilarvargas-tecnativa committed Jan 31, 2024
1 parent e985db2 commit 9d5084d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agreement_rebate/models/agreement_rebate_settlement.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def create_invoice(self):
if values.pop("check_amount", 0.0) < 0.0:
for line_vals in values["invoice_line_ids"]:
line_vals[2]["price_unit"] *= -1
values["type"] = self._reverse_type_map(values["type"])
values["move_type"] = self._reverse_type_map(values["move_type"])

Check warning on line 91 in agreement_rebate/models/agreement_rebate_settlement.py

View check run for this annotation

Codecov / codecov/patch

agreement_rebate/models/agreement_rebate_settlement.py#L91

Added line #L91 was not covered by tests
invoices = self.env["account.move"].create(invoice_dic.values())
return invoices

Expand Down

0 comments on commit 9d5084d

Please sign in to comment.