Add link to issues on partner form.

This commit is contained in:
Alexis de Lattre
2014-04-23 16:32:54 +02:00
parent c33ef19086
commit 082c133128
2 changed files with 28 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
'data': [ 'data': [
'project_view.xml', 'project_view.xml',
'project_data.xml', 'project_data.xml',
'partner_view.xml',
], ],
'active': False, 'active': False,
} }

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">add.link.to.issues.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='buttons']" position="inside">
<button type="action"
string="Issues"
name="%(project_issue.act_project_project_2_project_issue_all)d"
context="{'search_default_partner_id': active_id}"/>
</xpath>
</field>
</record>
</data>
</openerp>