Pedro
5 years ago
committed by
newtratip
12 changed files with 89 additions and 31 deletions
-
16partner_contact_lang/README.rst
-
2partner_contact_lang/__init__.py
-
8partner_contact_lang/__manifest__.py
-
2partner_contact_lang/i18n/partner_contact_lang.pot
-
2partner_contact_lang/models/__init__.py
-
15partner_contact_lang/models/res_partner.py
-
1partner_contact_lang/readme/CONTRIBUTORS.rst
-
3partner_contact_lang/readme/DESCRIPTION.rst
-
20partner_contact_lang/static/description/index.html
-
2partner_contact_lang/tests/__init__.py
-
8partner_contact_lang/tests/test_partner_contact_lang.py
-
41partner_contact_lang/views/res_partner_view.xml
@ -1,3 +1,3 @@ |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import models |
@ -1,14 +1,16 @@ |
|||
# Copyright 2016 Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com> |
|||
# Copyright 2017 Tecnativa - Vicent Cubells <vicent.cubells@tecnativa.com> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
# Copyright 2020 Pesol - Pedro Evaristo Gonzalez Sanchez <pedro.gonzalez@pesol.es> |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
{ |
|||
"name": "Manage language in contacts", |
|||
"version": "11.0.1.0.0", |
|||
"version": "13.0.1.0.0", |
|||
"category": "Sales", |
|||
"license": "AGPL-3", |
|||
"author": "Tecnativa," "Odoo Community Association (OCA)", |
|||
"website": "https://github.com/OCA/partner-contact/", |
|||
"depends": ["base",], |
|||
"depends": ["base"], |
|||
"data": ["views/res_partner_view.xml"], |
|||
"installable": True, |
|||
} |
@ -1,3 +1,3 @@ |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import res_partner |
@ -1,3 +1,3 @@ |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import test_partner_contact_lang |
@ -0,0 +1,41 @@ |
|||
<?xml version="1.0" encoding="utf-8" ?> |
|||
<odoo> |
|||
<!-- Copyright 2020 Pesol <pedro.gonzalez@pesol.es> |
|||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
|||
<record id="view_partner_form" model="ir.ui.view"> |
|||
<field name="name">view.partner.address.form.extension</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="priority">100</field> |
|||
<field name="inherit_id" ref="base.view_partner_form" /> |
|||
<field name="arch" type="xml"> |
|||
<xpath |
|||
expr="//field[@name='child_ids']/form/sheet/field[@name='lang']" |
|||
position="replace" |
|||
> |
|||
<field name="active_lang_count" invisible="1" /> |
|||
<group attrs="{'invisible': [('active_lang_count', '<=', 1)]}"> |
|||
<group> |
|||
<field name="lang" /> |
|||
</group> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
<record id="view_res_partner_filter" model="ir.ui.view"> |
|||
<field name="name">res.partner.filter.extension</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_res_partner_filter" /> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='parent_id']" position="after"> |
|||
<field name="lang" /> |
|||
</xpath> |
|||
<xpath expr="//group[@name='group_by']" position="inside"> |
|||
<filter |
|||
name="language" |
|||
string="Language" |
|||
context="{'group_by' : 'lang'}" |
|||
/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue