[NEW] partner_complementary_data_view: create add-on
This commit is contained in:
18
partner_complementary_data_view/__manifest__.py
Normal file
18
partner_complementary_data_view/__manifest__.py
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Partner Complementary Contact Data View",
|
||||||
|
"summary": "Add extra_contact_ids in dedicated notebook page",
|
||||||
|
"version": "16.0.1.0.0",
|
||||||
|
"author": "Stéphan Sainléger",
|
||||||
|
"license": "AGPL-3",
|
||||||
|
"maintainer": "Elabore",
|
||||||
|
"category": "Partner Tools",
|
||||||
|
"website": "https://odoo-community.org/",
|
||||||
|
"depends": ["complementary_contact_data"],
|
||||||
|
"data": [
|
||||||
|
"views/res_partner_views.xml",
|
||||||
|
],
|
||||||
|
"auto_install": False,
|
||||||
|
"installable": True,
|
||||||
|
}
|
20
partner_complementary_data_view/views/res_partner_views.xml
Normal file
20
partner_complementary_data_view/views/res_partner_views.xml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<odoo>
|
||||||
|
<record id="view_partner_form_skills" model="ir.ui.view">
|
||||||
|
<field name="name">Add extra_contact_ids in dedicated notebook page</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="priority">99</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//field[@name='extra_contact_ids']" position="replace" />
|
||||||
|
<xpath expr="//notebook/page[1]" position="before">
|
||||||
|
<!-- page Social Networks -->
|
||||||
|
<page name="social" string="Social networks"
|
||||||
|
attrs="{'invisible': [('is_main_profile','=',False)]}">
|
||||||
|
<field name="extra_contact_ids" widget="contactInfoWidget" nolabel="True"
|
||||||
|
colspan="1" />
|
||||||
|
</page>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</odoo>
|
Reference in New Issue
Block a user