[Erp5-report] r30770 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 19 16:42:47 CET 2009
Author: vincent
Date: Thu Nov 19 16:42:44 2009
New Revision: 30770
URL: http://svn.erp5.org?rev=30770&view=rev
Log:
Organisations representing agencies must have the "internal" role.
Create role/internal category.
Modified:
erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=30770&r1=30769&r2=30770&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] Thu Nov 19 16:42:44 2009
@@ -492,6 +492,8 @@
self.variation_base_category = getattr(self.category_tool, 'quantity_unit')
self.unit = self.variation_base_category.newContent(id='unit', title='Unit')
+ self.category_tool.role.newContent(id='internal', portal_type='Category')
+
# add category for currency_exchange_type
self.currency_exchange_type = getattr(self.category_tool,'currency_exchange_type')
self.currency_exchange_type.newContent(id='sale')
@@ -583,6 +585,7 @@
site=site.getRelativeUrl(),
region=site_region_from_codification_dict.get(codification),
group='baobab',
+ role='internal',
function='banking')
site_reference = site_reference_from_codification_dict.get(codification)
if site_reference is not None:
More information about the Erp5-report
mailing list