Commit fd9e1032 authored by Vincent Pelletier's avatar Vincent Pelletier

Organisations representing agencies must have the "internal" role.

Create role/internal category.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30770 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28c965d0
......@@ -492,6 +492,8 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
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 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
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:
......
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