Commit 82c244da authored by Jérome Perrin's avatar Jérome Perrin

keep all preferences that have a site priority


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23630 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76a1c7a0
...@@ -216,9 +216,10 @@ class AccountingTestCase(ERP5TypeTestCase): ...@@ -216,9 +216,10 @@ class AccountingTestCase(ERP5TypeTestCase):
self.account_module.objectIds() if x not in ('bank', 'collected_vat', self.account_module.objectIds() if x not in ('bank', 'collected_vat',
'equity', 'fixed_assets', 'goods_purchase', 'goods_sales', 'equity', 'fixed_assets', 'goods_purchase', 'goods_sales',
'payable', 'receivable', 'refundable_vat', 'stocks',)]) 'payable', 'receivable', 'refundable_vat', 'stocks',)])
self.portal.portal_preferences.manage_delObjects([x for x in self.portal.portal_preferences.manage_delObjects([x.getId() for x in
self.portal.portal_preferences.objectIds() if x not in self.portal.portal_preferences.objectValues()
('accounting_zuite_preference', 'default_site_preference')]) if x.getId() not in ('accounting_zuite_preference', 'default_site_preference')
and x.getPriority() != Priority.SITE])
self.portal.portal_simulation.manage_delObjects(list( self.portal.portal_simulation.manage_delObjects(list(
self.portal.portal_simulation.objectIds())) self.portal.portal_simulation.objectIds()))
get_transaction().commit() get_transaction().commit()
...@@ -2271,7 +2272,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase): ...@@ -2271,7 +2272,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
self.pref = self.portal.portal_preferences.newContent( self.pref = self.portal.portal_preferences.newContent(
portal_type='Preference', preferred_section_category='group/vendor', portal_type='Preference', preferred_section_category='group/vendor',
preferred_accounting_transaction_section_category='group/vendor', preferred_accounting_transaction_section_category='group/vendor',
priority=3 ) priority=Priority.USER )
self.workflow_tool.doActionFor(self.pref, 'enable_action') self.workflow_tool.doActionFor(self.pref, 'enable_action')
self.login() self.login()
......
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