diff options
| author | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-05-31 11:16:02 +0530 |
|---|---|---|
| committer | Paramjit Singh Sahota <psa@tinyerp.com> | 2013-05-31 11:16:02 +0530 |
| commit | 327224d80ac43379e8a9b71d6ffa8aa2899fffa1 (patch) | |
| tree | 51d1130c70116f4de7a1a770c0809ada4709b5c2 /addons/project_issue/project_issue_view.xml | |
| parent | 43954cc5071f70b90fa206023969fb6cfda31abb (diff) | |
[IMP] Added a new action for the res_partner forms Issues buttons to pass only the partner_id and not used the existing bcz itz passing the project_id which is not needed in res_partner's form view
And changes the sequence of buttons
bzr revid: psa@tinyerp.com-20130531054602-c3c8jnt8dhvut6w7
Diffstat (limited to 'addons/project_issue/project_issue_view.xml')
| -rw-r--r-- | addons/project_issue/project_issue_view.xml | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml index e3686cca905..280d0178a8a 100644 --- a/addons/project_issue/project_issue_view.xml +++ b/addons/project_issue/project_issue_view.xml @@ -367,17 +367,36 @@ </field> </record> + <record id="act_res_partner_2_project_issue" model="ir.actions.act_window"> + <field name="res_model">project.issue</field> + <field name="view_type">form</field> + <field name="name">Issues</field> + <field name="view_mode">kanban,tree,form,calendar,graph</field> + <field name="context">{ + 'search_default_partner_id': active_id, + 'default_partner_id': active_id + } + </field> + <field name="help" type="html"> + <p> + The OpenERP issues tacker allows you to efficiantly manage things + like internal requests, software development bugs, customer + complaints, project troubles, material breakdowns, etc. + </p> + </field> + </record> + <!-- res.partner --> <record model="ir.ui.view" id="res_partner_issues_button_view"> <field name="name">res.partner.issues.button.view</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form" /> - <field name="priority" eval="40"/> + <field name="priority" eval="50"/> <field name="arch" type="xml"> <xpath expr="//div[@name='buttons']" position="inside"> <button class="oe_inline" type="action" string="Issues" attrs="{'invisible': [('customer', '=', False)]}" - name="%(act_project_project_2_project_issue_all)d" - context="{'search_default_partner_id': active_id, 'default_partner_id': active_id}" groups="project.group_project_user"/> + name="%(act_res_partner_2_project_issue)d" + groups="project.group_project_user"/> </xpath> </field> </record> |
