Skip to content

Commit

Permalink
[FIX] sale_commission: compute amount after changing commission, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oihane authored and Tisho99 committed Apr 30, 2024
1 parent 2f6def6 commit 187a203
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sale_commission/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright 2020 Tecnativa - Manuel Calero
{
"name": "Sales commissions",
"version": "14.0.1.4.0",
"version": "14.0.1.4.1",
"author": "Tecnativa," "Odoo Community Association (OCA)",
"category": "Sales Management",
"license": "AGPL-3",
Expand Down
5 changes: 4 additions & 1 deletion sale_commission/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ class SaleOrderLineAgent(models.Model):
currency_id = fields.Many2one(related="object_id.currency_id")

@api.depends(
"object_id.price_subtotal", "object_id.product_id", "object_id.product_uom_qty"
"commission_id",
"object_id.price_subtotal",
"object_id.product_id",
"object_id.product_uom_qty",
)
def _compute_amount(self):
for line in self:
Expand Down

0 comments on commit 187a203

Please sign in to comment.