diff --git a/sale_commission_product_criteria_domain/tests/test_sale_commission_product_criteria_domain.py b/sale_commission_product_criteria_domain/tests/test_sale_commission_product_criteria_domain.py index 958c68030..f1d4cca00 100644 --- a/sale_commission_product_criteria_domain/tests/test_sale_commission_product_criteria_domain.py +++ b/sale_commission_product_criteria_domain/tests/test_sale_commission_product_criteria_domain.py @@ -105,8 +105,14 @@ def test_commission_domain_demo_cases(self): invoice.recompute_lines_agents() so.order_line.agent_ids._compute_amount() invoice.line_ids.agent_ids._compute_amount() - self.assertEqual(so.order_line.agent_ids.percent_amount, 5) - self.assertEqual(invoice.line_ids.agent_ids.amount, 50) + + fixed_amounts = so.order_line.agent_ids.mapped("fixed_amount") + self.assertEqual(len(fixed_amounts), 1) + self.assertEqual(fixed_amounts[0], 20) + + amounts = invoice.line_ids.agent_ids.mapped("amount") + self.assertEqual(len(amounts), 1) + self.assertEqual(amounts[0], 20) # Azure Spain Variant: Customizable Desk (CONFIG) (Steel, White) - Variant so = self._create_sale_order(self.product_4, self.azure)