Commit 459922bb authored by Mame Coumba Sall's avatar Mame Coumba Sall

use preferred section category instead of defined one

parent fe72381d
...@@ -57,7 +57,7 @@ getobject = portal.portal_catalog.getobject\n ...@@ -57,7 +57,7 @@ getobject = portal.portal_catalog.getobject\n
for x in portal.portal_simulation.getInventoryList(\n for x in portal.portal_simulation.getInventoryList(\n
portal_type=(\'Pay Sheet Cell\',\n portal_type=(\'Pay Sheet Cell\',\n
\'Pay Sheet Line\'),\n \'Pay Sheet Line\'),\n
section_category=\'group/demo_group\',\n section_category=portal.portal_preferences.getPreferredAccountingTransactionSectionCategory(),\n
group_by_resource=0,\n group_by_resource=0,\n
group_by_section=0,\n group_by_section=0,\n
group_by_mirror_section=1):\n group_by_mirror_section=1):\n
......
...@@ -91,6 +91,10 @@ class TestPayrollMixin(TestTradeModelLineMixin, ERP5ReportTestCase): ...@@ -91,6 +91,10 @@ class TestPayrollMixin(TestTradeModelLineMixin, ERP5ReportTestCase):
self.createCategories() self.createCategories()
self.fixed_quantity = self.setBaseAmountQuantityMethod('fixed_quantity', self.fixed_quantity = self.setBaseAmountQuantityMethod('fixed_quantity',
"return lambda *args, **kw: 1") "return lambda *args, **kw: 1")
default_pref = self.portal.portal_preferences.default_site_preference
if default_pref.getPreferenceState() == 'disabled':
default_pref.enable()
default_pref.setPreferredAccountingTransactionSectionCategory('group/demo_group')
self.setPayrollBaseAmountQuantityMethod("base_amount/payroll/base/contribution", self.setPayrollBaseAmountQuantityMethod("base_amount/payroll/base/contribution",
"""\ """\
def getBaseAmountQuantity(delivery_amount, base_application, def getBaseAmountQuantity(delivery_amount, base_application,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment