[ADD] document_change: Added actions and menuitems for Change Control. Improved a field.
bzr revid: uco@tinyerp.co.in-20100121105848-hfc6uz0k7bxgs8fj
This commit is contained in:
@@ -69,7 +69,7 @@ class doucment_change_process_phase(osv.osv):
|
||||
'date_control': fields.date('Control Date', select=True),
|
||||
'phase_ids':fields.many2one('document.change.process.phase','Phase Type'),
|
||||
'state': fields.selection([('draft', 'Draft'),('started', 'Started'),('validate', 'To Validate'), ('end', 'End')], 'Status', readonly=True),
|
||||
'phase_document_ids':fields.many2many('ir.attachment','Document','phase_document_rel','phase_id','document_id','Phase Type'),
|
||||
'phase_document_ids':fields.many2many('ir.attachment','phase_document_rel','phase_id','document_id','Document'),
|
||||
}
|
||||
doucment_change_process_phase()
|
||||
|
||||
|
||||
@@ -247,6 +247,28 @@
|
||||
</record>
|
||||
<menuitem action="action_document_form" id="menu_documents_form" parent="menu_document_process_changes"/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_document_without_type_form">
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">ir.attachment</field>
|
||||
<field name="name">Documents Without Type</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="view_document_tree"/>
|
||||
<field name="domain">[]</field>
|
||||
</record>
|
||||
<menuitem action="action_document_without_type_form" id="menu_documents_without_type_form" parent="menu_change_control"/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_document_to_update_form">
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">ir.attachment</field>
|
||||
<field name="name">Documents to Update</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="view_document_tree"/>
|
||||
<field name="domain">[]</field>
|
||||
</record>
|
||||
<menuitem action="action_document_to_update_form" id="menu_documents_to_update_form" parent="menu_change_control"/>
|
||||
|
||||
<!--
|
||||
Phases
|
||||
-->
|
||||
@@ -293,7 +315,16 @@
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem action="action_process_phase_form" id="menu_phases_form" parent="menu_document_process_changes"/>
|
||||
|
||||
|
||||
<record model="ir.actions.act_window" id="action_process_phase_form_validate">
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">document.change.process.phase</field>
|
||||
<field name="name">Phases to Validate</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[('state','=','draft')]</field>
|
||||
</record>
|
||||
<menuitem action="action_process_phase_form_validate" id="menu_phases_to_validate_form" parent="menu_change_control"/>
|
||||
<!--
|
||||
Process Change
|
||||
-->
|
||||
@@ -337,7 +368,7 @@
|
||||
<form string="Process Phases">
|
||||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
<field name="phase_document_ids"/>
|
||||
<field name="phase_document_ids" colspan="4"/>
|
||||
<field name="state"/>
|
||||
</form>
|
||||
</field>
|
||||
@@ -411,5 +442,15 @@
|
||||
<field name="view_mode">tree,form,calendar,graph</field>
|
||||
</record>
|
||||
<menuitem action="action_process_form" id="menu_process_changes_form" parent="menu_document_process_changes"/>
|
||||
|
||||
<record model="ir.actions.act_window" id="action_process_change_form_validate">
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">document.change.process</field>
|
||||
<field name="name">Process Changes to Validate</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">[('state','=','draft')]</field>
|
||||
</record>
|
||||
<menuitem action="action_process_change_form_validate" id="menu_process_to_validate_form" parent="menu_change_control"/>
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user