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 9e2c735fe..e38c44dbc 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 @@ -56,14 +56,17 @@ def test_commission_domain(self): demo_cig_spain = self.env.ref( "sale_commission_product_criteria_domain.demo_cig_spain" ) + demo_cig_italy = self.env.ref( + "sale_commission_product_criteria_domain.demo_cig_italy" + ) # group must have commission of CI demo_crr_item_1.group_id.commission_ids = False demo_crr_item_1.write({"sequence": 2}) self.assertTrue(demo_crr_item_1.group_id.commission_ids) # count related agents - demo_cig_spain._compute_agents_count() - self.assertEqual(demo_cig_spain.agents_count, 2) + demo_cig_italy._compute_agents_count() + self.assertEqual(demo_cig_italy.agents_count, 1) # if commission is not type of restricted then CI must have no group demo_crr_item_1.commission_id = self.env.ref(