Browse Source

[IMP] partner_fax view (#682)

* [IMP] partner_fax view
pull/702/head
Maxime Chambreuil 6 years ago
committed by GitHub
parent
commit
a0b343c2db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      partner_fax/__manifest__.py
  2. 22
      partner_fax/views/res_partner.xml

2
partner_fax/__manifest__.py

@ -5,7 +5,7 @@
'name': 'Partner fax', 'name': 'Partner fax',
'category': 'Extra Tools', 'category': 'Extra Tools',
'summary': 'Add fax number on partner', 'summary': 'Add fax number on partner',
'version': '11.0.1.0.0',
'version': '11.0.1.1.0',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': 'Francesco Apruzzese, ' 'author': 'Francesco Apruzzese, '
'Odoo Community Association (OCA)', 'Odoo Community Association (OCA)',

22
partner_fax/views/res_partner.xml

@ -6,11 +6,9 @@
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_simple_form"/> <field name="inherit_id" ref="base.view_partner_simple_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<data>
<xpath expr="//field[@name='function']" position="after">
<field name="mobile" position="after">
<field name="fax"/> <field name="fax"/>
</xpath>
</data>
</field>
</field> </field>
</record> </record>
@ -19,11 +17,9 @@
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_short_form"/> <field name="inherit_id" ref="base.view_partner_short_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<data>
<xpath expr="//field[@name='function']" position="after">
<field name="fax" widget="phone"/>
</xpath>
</data>
<field name="mobile" position="after">
<field name="fax"/>
</field>
</field> </field>
</record> </record>
@ -32,11 +28,9 @@
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/> <field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<data>
<xpath expr="//field[@name='function']" position="after">
<field name="fax" widget="phone"/>
</xpath>
</data>
<field name="user_ids" position="before">
<field name="fax"/>
</field>
</field> </field>
</record> </record>

Loading…
Cancel
Save