Browse Source

Port of Birthdate

pull/243/head
Denis Leemann 9 years ago
parent
commit
903474ba26
  1. 2
      partner_contact_birthdate/__openerp__.py
  2. 23
      partner_contact_birthdate/views/res_partner.xml

2
partner_contact_birthdate/__openerp__.py

@ -9,7 +9,7 @@
"category": "Customer Relationship Management",
"website": "https://odoo-community.org/",
"depends": [
"partner_contact_personal_information_page",
"base",
],
"data": [
"views/res_partner.xml",

23
partner_contact_birthdate/views/res_partner.xml

@ -3,12 +3,30 @@
© 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. -->
<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_personal_information_birthdate_date" model="ir.ui.view">
<field name="name">Birthdate Date field</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="//group[@name='personal_information_group']">
@ -18,5 +36,4 @@
</field>
</record>
</data>
</odoo>
Loading…
Cancel
Save