diff options
| author | Fabien Pinckaers <fp@tinyerp.com> | 2010-01-26 20:44:40 +0100 |
|---|---|---|
| committer | Fabien Pinckaers <fp@tinyerp.com> | 2010-01-26 20:44:40 +0100 |
| commit | f09a07529dd2dfad1f1e1546206591cbebc963ac (patch) | |
| tree | a70b27de092b134b7ee51c0668ee951eaadaeb22 /addons/document_change/document_change_view.xml | |
| parent | 54caf2f1877315853304512415fdbf5843712942 (diff) | |
merge
bzr revid: fp@tinyerp.com-20100126194440-qngp7q3ve058jowl
Diffstat (limited to 'addons/document_change/document_change_view.xml')
| -rw-r--r-- | addons/document_change/document_change_view.xml | 482 |
1 files changed, 232 insertions, 250 deletions
diff --git a/addons/document_change/document_change_view.xml b/addons/document_change/document_change_view.xml index 536f173ba39..6b56c25d38b 100644 --- a/addons/document_change/document_change_view.xml +++ b/addons/document_change/document_change_view.xml @@ -2,40 +2,37 @@ <openerp> <data> - <menuitem name="Process Changes" icon="terp-stock" id="menu_process_changes"/> - - <menuitem name="Process Changes" id="menu_document_process_changes" parent="menu_process_changes"/> - <menuitem name="Change Control" id="menu_change_control" parent="menu_process_changes"/> - <menuitem name="Reporting" id="menu_reporting" parent="menu_process_changes"/> - <menuitem name="Configuration" id="menu_configuration" parent="menu_process_changes"/> - - <!-- - Structure - --> + <menuitem name="Process Changes" icon="terp-stock" id="menu_process_changes"/> + + <menuitem name="Process Changes" id="menu_document_process_changes" parent="menu_process_changes"/> + <menuitem name="Change Control" id="menu_change_control" parent="menu_process_changes"/> + <menuitem name="Reporting" id="menu_reporting" parent="menu_process_changes"/> + <menuitem name="Configuration" id="menu_configuration" parent="menu_process_changes"/> + <record model="ir.ui.view" id="view_document_structure_form"> <field name="name">document.directory</field> <field name="model">document.directory</field> <field name="type">form</field> <field name="arch" type="xml"> - <form string="Structure"> - <field name="name"/> - <field name="parent_id"/> - </form> + <form string="Structure"> + <field name="name"/> + <field name="parent_id"/> + </form> </field> </record> - + <record model="ir.ui.view" id="view_document_structure_tree"> <field name="name">document.directory</field> <field name="model">document.directory</field> <field name="type">tree</field> <field name="arch" type="xml"> - <tree string="Structure"> - <field name="name"/> - <field name="parent_id"/> - </tree> + <tree string="Structure"> + <field name="name"/> + <field name="parent_id"/> + </tree> </field> </record> - + <record model="ir.actions.act_window" id="action_document_structure_form"> <field name="type">ir.actions.act_window</field> <field name="res_model">document.directory</field> @@ -57,27 +54,27 @@ </record> <menuitem name="Structure" id="menu_document_structure_config" parent="menu_configuration"/> <menuitem action="action_document_structure_form" id="menu_structure_form" parent="menu_document_structure_config"/> - - <act_window domain="[('structure_id', '=', active_id)]" - id="act_structure_process_changes" - name="Process Changes" - res_model="document.change.process" - src_model="document.directory"/> - - <!-- - Document Types - --> - <record model="ir.ui.view" id="view_document_type_form"> + + <act_window domain="[('structure_id', '=', active_id)]" + id="act_structure_process_changes" + name="Process Changes" + res_model="document.change.process" + src_model="document.directory"/> + + <!-- + Document Types + --> + <record model="ir.ui.view" id="view_document_type_form"> <field name="name">document.change.type.form</field> <field name="model">document.change.type</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Document Types"> <field name="name" select="1"/> - <field name="directory_id"/> - <field name ="template_document_id"/> + <field name="directory_id"/> + <field name ="template_document_id"/> <separator string="Associated Phase Types" colspan="4"/> - <field name="phase_type_ids" colspan="4" nolabel="1"/> + <field name="phase_type_ids" colspan="4" nolabel="1"/> </form> </field> </record> @@ -88,9 +85,9 @@ <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Document Types"> - <field name="name"/> - <field name="directory_id"/> - <field name ="template_document_id"/> + <field name="name"/> + <field name="directory_id"/> + <field name ="template_document_id"/> </tree> </field> </record> @@ -104,9 +101,9 @@ </record> <menuitem name="Documents" id="menu_document_type_config" parent="menu_configuration"/> <menuitem action="action_document_type_form" id="menu_document_type_form" parent="menu_document_type_config"/> - - <!-- - Phase Types + + <!-- + Phase Types --> <record model="ir.ui.view" id="view_process_phase_type_form"> <field name="name">document.change.process.phase.type.form</field> @@ -114,11 +111,11 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Phase Types"> - <group colspan="4" col="6"> - <field name="name" select="1" string="Phase Type"/> - <field name="sequence"/> - <field name="active"/> - </group> + <group colspan="4" col="6"> + <field name="name" select="1" string="Phase Type"/> + <field name="sequence"/> + <field name="active"/> + </group> <separator string="Associated Document Types" colspan="4"/> <field name="document_type_ids" colspan="4" nolabel="1"/> </form> @@ -131,7 +128,7 @@ <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Phase Types"> - <field name="sequence"/> + <field name="sequence" invisible="1"/> <field name="name" string="Phase Type"/> <field name="document_type_ids"/> </tree> @@ -145,10 +142,10 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> </record> - + <menuitem name="Process Changes" id="menu_process_changes_config" parent="menu_configuration"/> <menuitem action="action_process_phase_type_form" id="menu_phase_type_form" parent="menu_process_changes_config"/> - + <!-- Document Change Process Type --> <record model="ir.ui.view" id="view_change_process_type_form"> <field name="name">document.change.process.type.form</field> @@ -156,7 +153,7 @@ <field name="type">form</field> <field name="arch" type="xml"> <form string="Phase Types"> - <field name="name" select="1" string="Phase Type"/> + <field name="name" select="1" string="Phase Type"/> </form> </field> </record> @@ -179,11 +176,11 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> </record> - + <menuitem action="action_change_process_type_form" id="menu_change_process_type_form" parent="menu_process_changes_config"/> - - <!-- - Model of Changes + + <!-- + Model of Changes --> <record model="ir.ui.view" id="view_model_change_form"> <field name="name">document.change.process.model.form</field> @@ -193,7 +190,7 @@ <form string="Model of Changes"> <field name="name" select="1"/> <field name="sequence"/> - <separator string="Phase Type" colspan="4"/> + <separator string="Phase Type" colspan="4"/> <field name="phase_type_ids" colspan="4" nolabel="1"/> </form> </field> @@ -204,9 +201,9 @@ <field name="model">document.change.process.model</field> <field name="type">tree</field> <field name="arch" type="xml"> - <tree string="Model of Changes"> - <field name="sequence"/> - <field name="name"/> + <tree string="Model of Changes"> + <field name="sequence" invisible="1"/> + <field name="name"/> </tree> </field> </record> @@ -219,10 +216,10 @@ <field name="view_mode">tree,form</field> </record> <menuitem action="action_model_change_form" id="menu_model_change_form" parent="menu_process_changes_config"/> - - <!-- - Documents - --> + + <!-- + Documents + --> <record model="ir.ui.view" id="view_document_form"> <field name="name">ir.attachment.form</field> <field name="model">ir.attachment</field> @@ -240,16 +237,16 @@ </group> <separator string="Change Control" colspan="4"/> <group col="7" colspan="4"> - <field name="state" readonly="1"/> - <button name="button_propose" states="change_request" string="Propose Change" icon="gtk-apply"/> - <button name="button_confirm" states="change_propose" string="To Validate" icon="gtk-apply"/> + <field name="state" readonly="1"/> + <button name="button_propose" states="change_request" string="Propose Change" icon="gtk-apply"/> + <button name="button_confirm" states="change_propose" string="To Validate" icon="gtk-apply"/> <button name="button_validate" states="to_update" string="In Production" icon="gtk-apply"/> - <button name="button_request" states="cancel,in_production" string="Request Change" icon="gtk-media-play"/> - <button name="button_cancel" states="change_request,change_propose" string="Cancel" icon="gtk-cancel"/> + <button name="button_request" states="cancel,in_production" string="Request Change" icon="gtk-media-play"/> + <button name="button_cancel" states="change_request,change_propose" string="Cancel" icon="gtk-cancel"/> </group> <newline/> - <field name="target_document_id"/> - <field name="target"/> + <field name="target_document_id"/> + <field name="target"/> <newline/> <separator string="Change Note" colspan="4"/> <field colspan="4" name="description" nolabel="1"/> @@ -263,21 +260,21 @@ <field name="write_date" readonly="1"/> <field name="write_uid" readonly="1"/> </group> - - <field name="email_notification_ids" colspan="4" mode="tree, form" readonly="1" widget="one2many_list" nolabel="1"> - <tree string="Notifications"> - <field name="email"/> - <field name="create_date"/> - </tree> - <form string="Notifications"> - <field name="email"/> - <field name="create_date"/> - <field name="name" string="Subject" colspan="4"/> - <separator string="Description" colspan="4"/> + + <field name="email_notification_ids" colspan="4" mode="tree, form" readonly="1" widget="one2many_list" nolabel="1"> + <tree string="Notifications"> + <field name="email"/> + <field name="create_date"/> + </tree> + <form string="Notifications"> + <field name="email"/> + <field name="create_date"/> + <field name="name" string="Subject" colspan="4"/> + <separator string="Description" colspan="4"/> <field colspan="4" name="description" nolabel="1"/> - </form> - </field> - + </form> + </field> + </form> </field> </record> @@ -298,15 +295,15 @@ </field> </record> <record model="ir.ui.view" id="view_document_graph"> - <field name="name">ir.attachment.graph</field> - <field name="model">ir.attachment</field> - <field name="type">graph</field> - <field name="arch" type="xml"> - <graph string="Documents by type" type="bar" orientation="vertical"> - <field name="change_type_id"/> - <field name="name" operator="+"/> - </graph> - </field> + <field name="name">ir.attachment.graph</field> + <field name="model">ir.attachment</field> + <field name="type">graph</field> + <field name="arch" type="xml"> + <graph string="Documents by type" type="bar" orientation="vertical"> + <field name="change_type_id"/> + <field name="name" operator="+"/> + </graph> + </field> </record> <record model="ir.ui.view" id="view_document_search"> <field name="name">ir.attachment.search</field> @@ -315,18 +312,18 @@ <field name="priority" eval="1"/> <field name="arch" type="xml"> <search string="Documents"> - <group col="7" colspan="4"> - <filter domain="[('state','=','change_request')]" string="To Change" icon="gtk-apply"/> - <filter domain="[('state','=','to_update')]" string="To Validate" icon="gtk-execute"/> - <field name="change_type_id" string="Type of Documents" select="1"/> - <field name="parent_id" select="1"/> - <field name="create_uid" string="Owner" select="1"/> - </group> - <group expand="1" string="Group By..." col="20" colspan="4"> - <filter domain="[]" string="By Owner" icon="terp-hr" context="{'group_by':'create_uid'}" help="Documents by owner"/> - <filter domain="[]" string="By Directory" icon="terp-hr" context="{'group_by':'parent_id'}" help="Documents by directory"/> - <filter domain="[]" string="By Type of Documents" icon="terp-hr" context="{'group_by':'change_type_id'}" help="Documents by type"/> - </group> + <group col="7" colspan="4"> + <filter domain="[('state','=','change_request')]" string="To Change" icon="gtk-apply"/> + <filter domain="[('state','=','to_update')]" string="To Validate" icon="gtk-execute"/> + <field name="change_type_id" string="Type of Documents" select="1"/> + <field name="parent_id" select="1"/> + <field name="create_uid" string="Owner" select="1"/> + </group> + <group expand="1" string="Group By..." col="20" colspan="4"> + <filter domain="[]" string="By Owner" icon="terp-hr" context="{'group_by':'create_uid'}" help="Documents by owner"/> + <filter domain="[]" string="By Directory" icon="terp-hr" context="{'group_by':'parent_id'}" help="Documents by directory"/> + <filter domain="[]" string="By Type of Documents" icon="terp-hr" context="{'group_by':'change_type_id'}" help="Documents by type"/> + </group> </search> </field> </record> @@ -339,7 +336,7 @@ <field name="view_mode">tree,form</field> <field name="search_view_id" ref="view_document_search"/> </record> - + <record id="action_document_tree_view" model="ir.actions.act_window.view"> <field eval="1" name="sequence"/> <field name="view_mode">tree</field> @@ -359,7 +356,7 @@ <field name="act_window_id" ref="action_document_form"/> </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> @@ -370,7 +367,7 @@ <field name="domain">[('change_type_id','=',False)]</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> @@ -378,38 +375,38 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> <field name="view_id" ref="view_document_tree"/> - <field name="domain">[('state','=','to_update')]</field> + <field name="domain">[('state','=','to_update')]</field> </record> <menuitem action="action_document_to_update_form" id="menu_documents_to_update_form" parent="menu_change_control"/> - - <!-- - Phases - --> - <record model="ir.ui.view" id="view_process_phase_form"> + + <!-- + Phases + --> + <record model="ir.ui.view" id="view_process_phase_form"> <field name="name">document.change.process.phase.form</field> <field name="model">document.change.process.phase</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Phases"> - <group colspan="4" col="6"> - <field name="name" select="1"/> - <field name="process_id" string="Process Change"/> - <field name="sequence"/> - <newline/> - <field name="update_document" string="Update documents"/> - <field name="type" string="Type"/> - <field name="date_control" string="Control date" attrs="{'required':[('type','=','control_required')], 'invisible': [('type','!=','control_required')]}"/> - <field name="phase_type_id" string="Phase Type"/> - </group> - <separator colspan="4" string="Documents"/> + <group colspan="4" col="6"> + <field name="name" select="1"/> + <field name="process_id" string="Process Change"/> + <field name="sequence"/> + <newline/> + <field name="update_document" string="Update documents"/> + <field name="type" string="Type"/> + <field name="date_control" string="Control date" attrs="{'required':[('type','=','control_required')], 'invisible': [('type','!=','control_required')]}"/> + <field name="phase_type_id" string="Phase Type"/> + </group> + <separator colspan="4" string="Documents"/> <field name="phase_document_ids" colspan="4" nolabel="1"/> <newline/> <group col="5" colspan="4"> - <field name="state"/> - <button name="button_start" states="draft" string="Start" icon="gtk-go-forward"/> - <button name="button_confirm" states="in_process" string="To Validate" icon="gtk-execute"/> - <button name="button_end" states="to_validate" string="Done" icon="gtk-jump-to"/> - </group> + <field name="state"/> + <button name="button_start" states="draft" string="Start" icon="gtk-go-forward"/> + <button name="button_confirm" states="in_process" string="To Validate" icon="gtk-execute"/> + <button name="button_end" states="to_validate" string="Done" icon="gtk-jump-to"/> + </group> </form> </field> </record> @@ -420,7 +417,7 @@ <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Phases"> - <field name="sequence"/> + <field name="sequence" invisible="1"/> <field name="name"/> </tree> </field> @@ -433,104 +430,89 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> </record> - <menuitem action="action_process_phase_form" id="menu_phases_form" parent="menu_document_process_changes"/> + <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"> + <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','=','to_validate')]</field> - </record> - <menuitem action="action_process_phase_form_validate" id="menu_phases_to_validate_form" parent="menu_change_control"/> - - <act_window domain="[('process_phase_id', '=', active_id)]" - id="act_documents_phases" - name="Documents" - res_model="ir.attachment" - src_model="document.change.process.phase"/> - - <!-- - Process Change - --> - <record model="ir.ui.view" id="view_process_form"> + </record> + <menuitem action="action_process_phase_form_validate" id="menu_phases_to_validate_form" parent="menu_change_control"/> + + <act_window domain="[('process_phase_id', '=', active_id)]" + id="act_documents_phases" + name="Documents" + res_model="ir.attachment" + src_model="document.change.process.phase"/> + + <!-- + Process Change + --> + <record model="ir.ui.view" id="view_process_form"> <field name="name">document.change.process.form</field> <field name="model">document.change.process</field> <field name="type">form</field> <field name="arch" type="xml"> - <form string="Process Change"> + <form string="Process Change"> <group colspan="4" col="6"> - <field name="name"/> - <field name="structure_id"/> - <field name="pending_directory_id"/> - </group> + <field name="name"/> + <field name="structure_id"/> + <field name="pending_directory_id"/> + </group> <group colspan="4" col="5"> - <field name="process_type_id" widget="selection"/> + <field name="process_type_id" widget="selection"/> <field name="process_model_id" widget="selection"/> - <button name="generate_phases" string="Generate Phases" type="object" icon="gtk-convert" /> + <button name="generate_phases" string="Generate Phases" type="object" icon="gtk-convert" /> </group> - <group colspan="4"> + <group colspan="4"> <field name="description" colspan="4"/> </group> <notebook colspan="4"> - <page string="Process Definition"> - <group col="2" colspan="2"> - <separator string="Responsibles" colspan="2"/> - <field name="user_id"/> - </group> - <group col="2" colspan="2"> - <separator string="Dates" colspan="2"/> - <field name="create_date"/> - <field name="latest_modified_date"/> - <field name="date_expected"/> - </group> - <newline /> - <separator colspan="4" string="Change Description"/> - <field name="change_description" colspan="4" nolabel="1"/> - <newline/> - <group col="6" colspan="4"> - <field name="state"/> - <button name="button_start" states="draft,pending" string="Start" icon="gtk-go-forward"/> - <button name="button_confirm" states="in_progress" string="Validate" icon="gtk-execute"/> - <button name="button_pending" states="in_progress" string="Pending" icon="gtk-media-pause"/> - <button name="button_done" states="to_validate" string="Done" icon="gtk-jump-to"/> - </group> - </page> - <page string="Phases"> - <field name="process_phase_ids" mode="tree,form" widget="one2many_list" nolabel="1"> - <tree string="Process Phases" editable="True"> - <field name="sequence"/> - <field name="name"/> - <field name="type"/> - <field name="phase_document_ids"/> - <field name="state"/> - </tree> - <form string="Process Phases"> - <field name="name"/> - <field name="sequence"/> - <field name="type"/> - <field name="phase_document_ids" colspan="4"/> - <field name="state"/> - </form> - </field> - </page> - <page string="Documents"> - <field name="process_document_ids" mode="tree,form" widget="one2many_list" nolabel="1"> - <tree string="Documents"> - <field name="process_phase_id"/> - <field name="name" string="Document"/> - <field name="state"/> - </tree> - <form string="Documents"> - <field name="process_phase_id"/> - <field name="name" string="Document"/> - <field name="state"/> - </form> - </field> - </page> - + <page string="Process Definition"> + <group col="2" colspan="2"> + <separator string="Responsibles" colspan="2"/> + <field name="user_id"/> + </group> + <group col="2" colspan="2"> + <separator string="Dates" colspan="2"/> + <field name="create_date"/> + <field name="latest_modified_date"/> + <field name="date_expected"/> + </group> + <newline /> + <separator colspan="4" string="Change Description"/> + <field name="change_description" colspan="4" nolabel="1"/> + <newline/> + <group col="6" colspan="4"> + <field name="state"/> + <button name="button_start" states="draft,pending" string="Start" icon="gtk-go-forward"/> + <button name="button_confirm" states="in_progress" string="Validate" icon="gtk-execute"/> + <button name="button_pending" states="in_progress" string="Pending" icon="gtk-media-pause"/> + <button name="button_done" states="to_validate" string="Done" icon="gtk-jump-to"/> + </group> + </page> + <page string="Phases"> + <field name="process_phase_ids" mode="tree,form" widget="one2many_list" nolabel="1"> + <tree string="Process Phases" editable="True"> + <field name="sequence" invisible="1"/> + <field name="name"/> + <field name="type"/> + <field name="phase_document_ids"/> + <field name="state"/> + </tree> + <form string="Process Phases"> + <field name="name"/> + <field name="sequence"/> + <field name="type"/> + <field name="phase_document_ids" colspan="4"/> + <field name="state"/> + </form> + </field> + </page> </notebook> </form> </field> @@ -549,46 +531,46 @@ <field name="current_phase_id" string="Current Phase"/> <field name="date_control" string="Date Control Point"/> <field name="process_model_id"/> - <field name="progress" string="Progress"/> + <field name="progress" string="Progress"/> <field name="process_document_ids" string="# Documents"/> </tree> </field> </record> <record model="ir.ui.view" id="view_process_graph"> - <field name="name">document.change.process.graph</field> - <field name="model">document.change.process</field> - <field name="type">graph</field> - <field name="arch" type="xml"> - <graph string="Process changes by month" type="bar" orientation="vertical"> - <field name="create_date"/> - <field name="process_document_ids" operator="+"/> - </graph> - </field> - </record> - <record model="ir.ui.view" id="view_process_serach"> + <field name="name">document.change.process.graph</field> + <field name="model">document.change.process</field> + <field name="type">graph</field> + <field name="arch" type="xml"> + <graph string="Process changes by month" type="bar" orientation="vertical"> + <field name="create_date"/> + <field name="process_document_ids" operator="+"/> + </graph> + </field> + </record> + <record model="ir.ui.view" id="view_process_serach"> <field name="name">document.change.process.search</field> <field name="model">document.change.process</field> <field name="type">search</field> <field name="priority" eval="1"/> <field name="arch" type="xml"> <search string="Process Changes"> - <group col="8" colspan="4"> - <filter domain="[('user_id','=',uid)]" string="My Process Changes" icon="gtk-execute" help="My Process Changes"/> - <filter domain="[('state','=','to_validate')]" string="To Validate" icon="gtk-apply" help="Process Changes to be validated"/> - <filter domain="[('state','=','in_progress')]" string="Late" icon="gtk-execute" help="Process changes having the next Phase to validate that is late"/> - <field name="name" string="Process Change Title" select="1"/> - <field name="process_type_id" select="1"/> - <field name="structure_id" select="1"/> - <field name="user_id" string="Owner" select="1"/> - </group> - <group expand="1" string="Group By..." col="20" colspan="4"> - <filter domain="[]" string="By Owner" icon="terp-hr" context="{'group_by':'user_id'}" help="Process Changes by owner"/> - <filter domain="[]" string="By Directory" icon="terp-hr" context="{'group_by':'structure_id'}" help="Process Changes by directory"/> - </group> + <group col="8" colspan="4"> + <filter domain="[('user_id','=',uid)]" string="My Process Changes" icon="gtk-execute" help="My Process Changes"/> + <filter domain="[('state','=','to_validate')]" string="To Validate" icon="gtk-apply" help="Process Changes to be validated"/> + <filter domain="[('state','=','in_progress')]" string="Late" icon="gtk-execute" help="Process changes having the next Phase to validate that is late"/> + <field name="name" string="Process Change Title" select="1"/> + <field name="process_type_id" select="1"/> + <field name="structure_id" select="1"/> + <field name="user_id" string="Owner" select="1"/> + </group> + <group expand="1" string="Group By..." col="20" colspan="4"> + <filter domain="[]" string="By Owner" icon="terp-hr" context="{'group_by':'user_id'}" help="Process Changes by owner"/> + <filter domain="[]" string="By Directory" icon="terp-hr" context="{'group_by':'structure_id'}" help="Process Changes by directory"/> + </group> </search> </field> </record> - + <record model="ir.actions.act_window" id="action_process_form"> <field name="type">ir.actions.act_window</field> <field name="res_model">document.change.process</field> @@ -598,7 +580,7 @@ <field name="search_view_id" ref="view_process_serach"/> </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> @@ -606,20 +588,20 @@ <field name="view_type">form</field> <field name="view_mode">tree,form</field> <field name="domain">[('state','=','to_validate')]</field> - </record> - <menuitem action="action_process_change_form_validate" id="menu_process_to_validate_form" parent="menu_change_control"/> - - <act_window domain="[('process_id', '=', active_id)]" - id="act_phase_change_process" - name="Phases" - res_model="document.change.process.phase" - src_model="document.change.process"/> - - <act_window domain="[('change_process_id', '=', active_id)]" - id="act_documents_change_process" - name="Documents" - res_model="ir.attachment" - src_model="document.change.process"/> - + </record> + <menuitem action="action_process_change_form_validate" id="menu_process_to_validate_form" parent="menu_change_control"/> + + <act_window domain="[('process_id', '=', active_id)]" + id="act_phase_change_process" + name="Phases" + res_model="document.change.process.phase" + src_model="document.change.process"/> + + <act_window domain="[('change_process_id', '=', active_id)]" + id="act_documents_change_process" + name="Documents" + res_model="ir.attachment" + src_model="document.change.process"/> + </data> </openerp> |
