Browse Source

No longer dependent on partner_contact_personal_information_page

pull/197/head
Richard deMeester 9 years ago
parent
commit
f1cc3c5431
  1. 2
      partner_contact_in_several_companies/__openerp__.py
  2. 23
      partner_contact_in_several_companies/views/res_partner.xml

2
partner_contact_in_several_companies/__openerp__.py

@ -23,7 +23,7 @@
'installable': True,
'auto_install': False,
"depends": [
"partner_contact_personal_information_page",
"base"
],
"data": [
"views/res_partner.xml",

23
partner_contact_in_several_companies/views/res_partner.xml

@ -2,6 +2,25 @@
<odoo>
<data>
<!-- Declared the same in every module that may need it -->
<record id="base.personal_contact_information" model="ir.ui.view">
<field name="name">Personal information page for contacts form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="priority">2</field>
<field name="arch" type="xml">
<data>
<xpath expr="//page[@name='internal_notes']" position="after">
<page name="personal_information_page"
string="Personal Information"
attrs="{'invisible': [('is_company','=',True)]}">
<group name="personal_information_group"/>
</page>
</xpath>
</data>
</field>
</record>
<record id="view_res_partner_filter_contact" model="ir.ui.view">
<field name="name">res.partner.select.contact</field>
<field name="model">res.partner</field>
@ -140,10 +159,10 @@
</field>
</record>
<record id="view_res_partner_personal_information" model="ir.ui.view">
<record id="personal_contact_information" model="ir.ui.view">
<field name="name">Contacts in several partners: personal info</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information"/>
<field name="inherit_id" ref="base.personal_contact_information"/>
<field name="arch" type="xml">
<data>
<xpath expr="//page[@name='personal_information_page']/group[@name='personal_information_group']"

Loading…
Cancel
Save