document_change: add the security and set the role in workflow

bzr revid: sbh@tinyerp.com-20100125091603-4z1ywdjkiaf7f69j
This commit is contained in:
sbh (Open ERP)
2010-01-25 14:46:03 +05:30
parent 5391493107
commit f5fc231ae0
3 changed files with 13 additions and 1 deletions
+4 -1
View File
@@ -32,11 +32,14 @@
'website': 'http://www.openerp.com',
'depends': ['base', 'document_ftp','mail_gateway'],
'init_xml': ['document_change_data.xml'],
'update_xml': ['document_change_view.xml',
'update_xml': [
'security/crm_project_security.xml',
'document_change_view.xml',
'document_change_sequence.xml',
'document_change_workflow.xml',
'document_phase_workflow.xml',
'document_process_workflow.xml',
],
'demo_xml': [ ],
'installable': True,
@@ -46,6 +46,7 @@
<record id="tran_phase_confirm_to_end" model="workflow.transition">
<field name="act_from" ref="act_phase_confirm"/>
<field name="act_to" ref="act_phase_end"/>
<field name="role_id" ref="role_NPPI" />
<field name="signal">button_end</field>
</record>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">
<record model="res.roles" id="role_NPPI">
<field name="name">Document Change/ Phase Manager</field>
</record>
</data>
</openerp>