From af8d3d7579a4ceec5f531c9fbfdffa35cbebe595 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Fri, 25 Nov 2011 14:25:49 +0100
Subject: [PATCH] it is possible to have variation with multiple base
 application/contribution in payroll, remove the asserts

---
 product/ERP5/mixin/amount_generator.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/product/ERP5/mixin/amount_generator.py b/product/ERP5/mixin/amount_generator.py
index 95a6757720..0a0f2f5cbf 100644
--- a/product/ERP5/mixin/amount_generator.py
+++ b/product/ERP5/mixin/amount_generator.py
@@ -289,7 +289,6 @@ class AmountGeneratorMixin:
                                                   if x[:12] != 'base_amount/']))
         if variation_category_list:
           base_application_set.difference_update(variation_category_list)
-          assert len(base_application_set) == 1
         # property_dict may include
         #   resource - VAT service or a Component in MRP
         #              (if unset, the amount will only be used for reporting)
@@ -356,7 +355,6 @@ class AmountGeneratorMixin:
                                                   if x[:12] != 'base_amount/']))
         if variation_category_list:
           base_contribution_set.difference_update(variation_category_list)
-          assert len(base_contribution_set) == 1
         for base_contribution in base_contribution_set:
           base_amount.contribute(base_contribution, variation_category_list,
                                  quantity)
-- 
2.30.9