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 committed May 25, 2022
1 parent b3ef851 commit 5f1bce2
Showing 1 changed file with 4 additions and 1 deletion.
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 5f1bce2

Please sign in to comment.