diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/External%20Document.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/External%20Document.xml new file mode 100644 index 0000000000000000000000000000000000000000..8fb5ea5e227debe6a5b5cdb94762b6076c625f7b --- /dev/null +++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/External%20Document.xml @@ -0,0 +1,57 @@ +<type_roles> + <role id='Assignor'> + <property id='title'>Team Reviewer</property> + <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property> + <property id='condition'>python: not object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/publication/reviewer</multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Assignee'> + <property id='title'>Project Assignees</property> + <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property> + <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Project Associates</property> + <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property> + <property id='condition'>python: object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Assignor'> + <property id='title'>Project Reviewer</property> + <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property> + <property id='condition'>python: object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/project/director</multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Team Associates</property> + <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property> + <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>function</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Auditor'> + <property id='title'>Management</property> + <property id='description'>Management has to access anydocument in the system.</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/hq</multi_property> + </role> +</type_roles> \ No newline at end of file diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/ImageDocument.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/ImageDocument.xml new file mode 100644 index 0000000000000000000000000000000000000000..bc3f84ce4f02b6accbae854d1f62492c7dfee79f --- /dev/null +++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/ImageDocument.xml @@ -0,0 +1,57 @@ +<type_roles> + <role id='Assignor'> + <property id='title'>Team Reviewer</property> + <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property> + <property id='condition'>python:not object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/publication/reviewer</multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Assignee'> + <property id='title'>Project Assignees</property> + <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property> + <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Project Associates</property> + <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Assignor'> + <property id='title'>Project Reviewer</property> + <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/project/director</multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Team Associates</property> + <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property> + <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>function</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Auditor'> + <property id='title'>Management</property> + <property id='description'>Management has to access anydocument in the system.</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/hq</multi_property> + </role> +</type_roles> \ No newline at end of file diff --git a/bt5/erp5_dms/PortalTypeRolesTemplateItem/PdfDocument.xml b/bt5/erp5_dms/PortalTypeRolesTemplateItem/PdfDocument.xml new file mode 100644 index 0000000000000000000000000000000000000000..c3d7452b69e18e5907bfbbc2f46294e66cf51c88 --- /dev/null +++ b/bt5/erp5_dms/PortalTypeRolesTemplateItem/PdfDocument.xml @@ -0,0 +1,57 @@ +<type_roles> + <role id='Assignor'> + <property id='title'>Team Reviewer</property> + <property id='description'>The head of the team who is in charge of reviewing documents published by his team. He is granted special rights on documents produced by his team.</property> + <property id='condition'>python: not object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/publication/reviewer</multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Assignee'> + <property id='title'>Project Assignees</property> + <property id='description'>In a project collaborative document, all project members have a right to access and modify a document before release or publication.</property> + <property id='condition'>python:object.getSourceProject() and object.isMemberOf('classification/collaborative/project')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Project Associates</property> + <property id='description'>In a project document, all project members have a right to access the document before it is released or published.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Assignor'> + <property id='title'>Project Reviewer</property> + <property id='description'>The head of the project who is in charge of reviewing documents produced by the project before release or publication.</property> + <property id='condition'>python:object.getSourceProject()</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/project/director</multi_property> + <multi_property id='base_category'>source_project</multi_property> + </role> + <role id='Associate'> + <property id='title'>Team Associates</property> + <property id='description'>All team members have a right to access non restricted documents before their release or publication.</property> + <property id='condition'>python:not object.isMemberOf('classification/personnal/restricted')</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'></multi_property> + <multi_property id='base_category'>group</multi_property> + <multi_property id='base_category'>function</multi_property> + <multi_property id='base_category'>site</multi_property> + </role> + <role id='Auditor'> + <property id='title'>Management</property> + <property id='description'>Management has to access anydocument in the system.</property> + <property id='priority'>10</property> + <property id='base_category_script'>ERP5Type_getSecurityCategoryFromArrow</property> + <multi_property id='category'>function/hq</multi_property> + </role> +</type_roles> \ No newline at end of file diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision index 4b9bce48238e62028651de99e7f2b218771cd806..f79f5e337ea18102bf116113d489fb73bd210e37 100644 --- a/bt5/erp5_dms/bt/revision +++ b/bt5/erp5_dms/bt/revision @@ -1 +1 @@ -148 \ No newline at end of file +153 \ No newline at end of file diff --git a/bt5/erp5_dms/bt/template_portal_type_roles_list b/bt5/erp5_dms/bt/template_portal_type_roles_list index 7f34c4f3cdc98589b5755ce9aa12be58f0a8f616..07926528221485bf0dda8b8e828b8020ed804e50 100644 --- a/bt5/erp5_dms/bt/template_portal_type_roles_list +++ b/bt5/erp5_dms/bt/template_portal_type_roles_list @@ -1,6 +1,8 @@ DMS File -DMS Pdf File +External Document Graphic +ImageDocument +PdfDocument Presentation Spreadsheet Text \ No newline at end of file