Browse Source

[ADD] search view + priority

16.0
RemiFr82 6 months ago
parent
commit
a2add7c529
  1. 13
      l10n_fr_department_state/views/res_partner.xml
  2. 1
      partner_contact_email2/views/res_partner.xml
  3. 1
      partner_contact_phones2/__manifest__.py
  4. 35
      partner_contact_phones2/views/res_partner.xml

13
l10n_fr_department_state/views/res_partner.xml

@ -5,6 +5,7 @@
<field name="name">res.partner.view.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority">82</field>
<field name="arch" type="xml">
<field name="state_id" position="attributes">
<attribute name="attrs">{'readonly':[('country_department_id','!=',False)]}</attribute>
@ -16,4 +17,16 @@
</field>
</record>
<record id="view_res_partner_filter_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.search.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="priority">82</field>
<field name="arch" type="xml">
<filter name="country_department_groupby" position="after">
<filter name="state_groupby" string="State" context="{'group_by': 'state_id'}" />
</filter>
</field>
</record>
</odoo>

1
partner_contact_email2/views/res_partner.xml

@ -5,6 +5,7 @@
<field name="name">res.partner.view.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority">18</field>
<field name="arch" type="xml">
<field name="email" position="after">
<field name="email2" widget="email" context="{'gravatar_image': True}" />

1
partner_contact_phones2/__manifest__.py

@ -25,6 +25,7 @@
# "external_dependencies": [],
"depends": [
"base",
"partner_fax",
],
"data": [
# Views

35
partner_contact_phones2/views/res_partner.xml

@ -1,10 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_partner_simple_form_inherit_fax" model="ir.ui.view">
<field name="name">res.partner.view.form.simple.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_simple_form" />
<field name="priority">18</field>
<field name="arch" type="xml">
<field name="phone" position="after">
<field name="phone2" widget="phone" />
</field>
<field name="mobile" position="after">
<field name="mobile2" widget="phone" />
<field name="fax" position="move" />
</field>
<field name="fax" position="attributes">
<attribute name="placeholder" value="" />
</field>
</field>
</record>
<record id="view_partner_form_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority">18</field>
<field name="arch" type="xml">
<field name="phone" position="after">
<field name="phone2" widget="phone" />
@ -12,6 +32,21 @@
<field name="mobile" position="after">
<field name="mobile2" widget="phone" />
</field>
<label for="email" position="before">
<field name="fax" placeholder="" position="move" />
</label>
<field name="fax" position="attributes">
<attribute name="placeholder" value="" />
</field>
<xpath expr="//field[@name='child_ids']/form//field[@name='phone']" position="after">
<field name="phone2" widget="phone" />
</xpath>
<xpath expr="//field[@name='child_ids']/form//field[@name='mobile']" position="after">
<field name="mobile2" widget="phone" />
</xpath>
<xpath expr="//field[@name='child_ids']/form//field[@name='fax']" position="attributes">
<attribute name="placeholder" value="" />
</xpath>
</field>
</record>
Loading…
Cancel
Save