Browse Source

Migration partner_contact_birthdate partner_contact_gender part… (#315)

[MIG] Migration partner_contact_birthdate partner_contact_gender partner_contact_personal_information_page to v10
14.0
invitu 8 years ago
committed by newtratip
parent
commit
16f506f35f
  1. 4
      partner_contact_personal_information_page/__manifest__.py
  2. 10
      partner_contact_personal_information_page/views/res_partner.xml

4
partner_contact_personal_information_page/__manifest__.py

@ -4,7 +4,7 @@
{ {
"name": "Personal information page for contacts", "name": "Personal information page for contacts",
"summary": "Add a page to contacts form to put personal information", "summary": "Add a page to contacts form to put personal information",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"category": "Customer Relationship Management", "category": "Customer Relationship Management",
"website": "https://odoo-community.org/", "website": "https://odoo-community.org/",
"author": "Odoo Community Association (OCA)", "author": "Odoo Community Association (OCA)",
@ -17,7 +17,7 @@
], ],
"license": "AGPL-3", "license": "AGPL-3",
'application': False, 'application': False,
'installable': False,
'installable': True,
'auto_install': False, 'auto_install': False,
"depends": [ "depends": [
"base" "base"

10
partner_contact_personal_information_page/views/res_partner.xml

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<data>
<!-- Declared the same in every module that may need it --> <!-- Declared the same in every module that may need it -->
<record id="personal_information" model="ir.ui.view"> <record id="personal_information" model="ir.ui.view">
<field name="name">Personal information page for contacts form</field> <field name="name">Personal information page for contacts form</field>
@ -12,14 +10,12 @@
<data> <data>
<xpath expr="//page[@name='internal_notes']" position="after"> <xpath expr="//page[@name='internal_notes']" position="after">
<page name="personal_information_page" <page name="personal_information_page"
string="Personal Information"
attrs="{'invisible': [('is_company','=',True)]}">
string="Personal Information"
attrs="{'invisible': [('is_company','=',True)]}">
<group name="personal_information_group"/> <group name="personal_information_group"/>
</page> </page>
</xpath> </xpath>
</data> </data>
</field> </field>
</record> </record>
</data>
</odoo>
</odoo>
Loading…
Cancel
Save