Add link to issues on partner form.
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
27
project_issue_extension/partner_view.xml
Normal file
27
project_issue_extension/partner_view.xml
Normal 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>
|
||||||
Reference in New Issue
Block a user