diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/Organisation_view/my_reference.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/Organisation_view/my_reference.xml index 7d9be4d11a92265d525d2b1819566e8f52eb130a..23b6b8e0386b8f2d182ae894c62dcdbf81fbe216 100644 --- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/Organisation_view/my_reference.xml +++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/Organisation_view/my_reference.xml @@ -265,18 +265,15 @@ <record id="2" aka="AAAAAAAAAAI="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:here.getRole()==\'registry\'</string> </value> + <value> <string>python: \'entreprise\' in here.getRole()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_egov/TestTemplateItem/testEGovMixin.py b/bt5/erp5_egov/TestTemplateItem/testEGovMixin.py index e61ecd63e40b4a6d66687a4bd743dd6e5f1407a3..e79f659e5bb920e3737ad1a3cdf45035035759ba 100644 --- a/bt5/erp5_egov/TestTemplateItem/testEGovMixin.py +++ b/bt5/erp5_egov/TestTemplateItem/testEGovMixin.py @@ -176,9 +176,9 @@ class TestEGovMixin(SecurityTestCase): module = self.getOrganisationModule() if len(module.getObjectIds()) == 0: self.createOneOrganisation(self.organisation_1_login, - role='registry/entreprise') + role='entreprise/siege') self.createOneOrganisation(self.organisation_2_login, - role='registry/entreprise') + role='entreprise/siege') # make this available to catalog get_transaction().commit() diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index 83981c0e3aabbb291048f2d619c53f3bb686f5c7..a6b4ce84014c146e09687bcb2615f45705efc402 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -175 \ No newline at end of file +176 \ No newline at end of file