Skip to content

Commit

Permalink
[MIG] sale_triple_discount: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsod committed Nov 29, 2024
1 parent 8286ad1 commit 8beda8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sale_triple_discount/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

{
"name": "Sale Triple Discount",
"version": "16.0.1.0.4",
"version": "17.0.1.0.0",
"category": "Sales",
"author": "ADHOC SA, Agile Business Group, Tecnativa, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"license": "AGPL-3",
"summary": "Manage triple discount on sale order lines",
"depends": ["sale_management", "account_invoice_triple_discount"],
"depends": ["sale", "account_invoice_triple_discount"],
"data": ["views/sale_order_report.xml", "views/sale_order_view.xml"],
"installable": True,
}
3 changes: 2 additions & 1 deletion sale_triple_discount/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _aggregated_discount(self):
restoring_triple_discount=True,
).update({"discount": old_values[line.id]})

def _convert_to_tax_base_line_dict(self):
def _convert_to_tax_base_line_dict(self, **kwargs):
self.ensure_one()
discount = (
self.discount
Expand All @@ -138,4 +138,5 @@ def _convert_to_tax_base_line_dict(self):
quantity=self.product_uom_qty,
discount=discount,
price_subtotal=self.price_subtotal,
**kwargs,
)

0 comments on commit 8beda8b

Please sign in to comment.