Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d6b7343
[ADD] base_view_inheritance_extension
hbrunn Dec 18, 2016
ff46268
[base_view_inheritance_extension] Relicense to LGPL. (#4)
yajo Dec 23, 2016
bd2fe33
[MIG] base_view_inheritance_extension: Migration to 9.0
pedrobaeza Dec 23, 2016
ef05095
[8.0][ADD] Add list manipulation operations to base_view_inheritance_…
NL66278 Apr 4, 2017
b2ef6d8
[MIG] base_view_inheritance_extension to 10.0
lfreeke Aug 31, 2017
70e67bb
[FIX] don't break when an attribute node in an xpath makes the
hbrunn Oct 11, 2017
99a048d
[FIX] base_view_inheritance_extension: 2 things:
hbrunn Oct 11, 2017
3c20fa9
[MIG] base_view_inheritance_extension: Migration to 11.0
sergio-teruel Oct 26, 2018
b40abe9
[MIG] base_view_inheritance_extension: Migration to 12.0
rvalyi Mar 14, 2019
293ee72
Remove the "move" feature which is now native
alexis-via Mar 3, 2020
20f3106
[IMP] base_view_inheritance_extension: black, isort
sergio-teruel Mar 3, 2020
12138c0
[MIG] base_view_inheritance_extension: Migration to v13.0
sergio-teruel Mar 3, 2020
2a70078
FIX: add missing params on function apply_inheritance_specs
celm1990 Aug 21, 2020
df7efa9
[MIG] base_view_inheritance_extension to v14
alexis-via Nov 23, 2020
b102e16
Fix apply inheritance specs on views (pre_locate)
jcoux May 21, 2021
ac43c52
[IMP] base_view_inheritance_extension: real python_dict
ivantodorovich Nov 24, 2021
5e2f67a
[UPD] base_view_inheritance_extension: readme - deprecate list_add an…
ivantodorovich Nov 29, 2021
0b57acd
[MIG] base_view_inheritance_extension: Migration to 15.0
ivantodorovich Dec 13, 2021
ce0235f
[IMP] Update development_status Mature
cesar-tecnativa Jun 28, 2022
19f3ff8
Added translation using Weblate (Spanish (Argentina))
ibuioli Sep 4, 2022
bcc3bd3
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 4, 2022
4f81c22
[FIX] b_v_inheritance_extension: fix parsing of 'update' operation
sebalix Oct 24, 2022
d9332ae
[MIG] base_view_inheritance_extension: Migration to 16.0
etobella Dec 6, 2022
3c044e1
[MIG] base_view_inheritance_extension: Fix demo view
rven Dec 6, 2022
bc4c335
Translated using Weblate (Italian)
mymage Dec 20, 2022
199e407
Translated using Weblate (Croatian)
badbole Jan 3, 2023
05c5b61
Translated using Weblate (Spanish (Argentina))
ibuioli Jun 9, 2023
92381f1
Translated using Weblate (Spanish)
Ivorra78 Aug 25, 2023
628ee08
[IMP] base_view_inheritance_extension: Add new options domain_add and…
carlosdauden Feb 20, 2023
4e6537d
[FIX] base_view_inheritance_extension: Crash domain for elements with…
sergio-teruel Sep 7, 2023
5e70889
Translated using Weblate (Italian)
mymage Sep 21, 2023
f7603d6
[IMP] base_view_inheritance_extension: pre-commit auto fixes
alexis-via Dec 29, 2023
28199cf
[MIG] base_view_inheritance_extension to v17
alexis-via Dec 29, 2023
7d43436
[FIX] *: Pre-commit fixes
pedrobaeza May 2, 2024
af949b4
base_view_inheritance_extension: wrap import
simahawk Mar 1, 2022
6ea8d7d
[FIX] base_view_inheritance_extension: parse old value
renda-dev May 15, 2024
4186407
[MIG] base_view_inheritance_extension: Migration to 18.0
fredericgrall Oct 29, 2024
e0ab961
Update translation files
weblate Nov 25, 2024
e8d4f45
Update translation files
weblate Mar 16, 2025
73cd62b
[18.0][FIX]base_view_inheritance_extension: fix deprecation warning w…
BhaveshHeliconia Mar 21, 2025
5357f6b
Added translation using Weblate (Dutch)
bosd Apr 12, 2025
0d808cf
Translated using Weblate (Dutch)
bosd Nov 14, 2025
0ded25f
[IMP] base_view_inheritance_extension: drop unused dependency
vvrossem Aug 20, 2025
955672f
[MIG] base_view_inheritance_extension: Migration to 19.0
bizzappdev Dec 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 134 additions & 0 deletions base_view_inheritance_extension/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=========================
Extended view inheritance
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:cb2fb0b7f832559d24b4af1f66ac9d92258ed4cb2a2f32b5b1afaa3437f7b9eb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/19.0/base_view_inheritance_extension
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-base_view_inheritance_extension
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module was written to make it simple to add custom operators for
view inheritance.

**Table of contents**

.. contents::
:local:

Usage
=====

**Change a python dictionary (context for example)**

.. code:: xml

<field position="attributes">
<attribute name="context" operation="update">
{
"key": "value",
}
</attribute>
</field>

Note that views are subject to evaluation of xmlids anyways, so if you
need to refer to some xmlid, say ``%(xmlid)s``.

**Add text after and/or before than original**

.. code:: xml

<attribute name="$attribute" operation="text_add">
$text_before {old_value} $text_after
</attribute>

**Add domain with AND/OR join operator (AND if missed) allowing
conditional changes**

.. code:: xml

<attribute name="$attribute" operation="domain_add"
condition="$field_condition" join_operator="OR">
$domain_to_add
</attribute>

Known issues / Roadmap
======================

- Support an ``eval`` attribute for our new node types.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_view_inheritance_extension%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Therp BV

Contributors
------------

- Holger Brunn <[email protected]>
- Ronald Portier <[email protected]>
- `Tecnativa <https://www.tecnativa.com>`__:

- Sergio Teruel
- Carlos Dauden

- `Trobz <https://www.trobz.com>`__:

- Nhan Tran <[email protected]>

- Iván Todorovich <[email protected]>
- Frederic Grall <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/19.0/base_view_inheritance_extension>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions base_view_inheritance_extension/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions base_view_inheritance_extension/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2016 Therp BV <https://therp.nl>
# Copyright 2018 Tecnativa - Sergio Teruel
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Extended view inheritance",
"version": "19.0.1.0.0",
"development_status": "Mature",
"author": "Therp BV,Odoo Community Association (OCA)",
"license": "LGPL-3",
"category": "Hidden/Dependency",
"summary": "Adds more operators for view inheritance",
"website": "https://github.com/OCA/server-tools",
"depends": ["base"],
"demo": ["demo/ir_ui_view.xml"],
}
29 changes: 29 additions & 0 deletions base_view_inheritance_extension/demo/ir_ui_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_partner_simple_form" model="ir.ui.view">
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_simple_form" />
<field name="arch" type="xml">
<xpath expr="." position="attributes">
<attribute name="string">Partner form</attribute>
</xpath>
<field name="parent_id" position="attributes">
<attribute name="context" operation="update">
{
"default_email": "[email protected]",
"default_company_id": allowed_company_ids[0]
}
</attribute>
</field>
<!-- without operations, the standard handler should be called /-->
<field name="parent_id" position="attributes">
<attribute name="name">parent_id</attribute>
</field>
<form position="inside">
<notebook>
<page string="Phone numbers" name="phone_book" />
</notebook>
</form>
</field>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_view_inheritance_extension
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Partner form"
msgstr ""

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Phone numbers"
msgstr ""

#. module: base_view_inheritance_extension
#: model:ir.model.fields,field_description:base_view_inheritance_extension.field_ir_ui_view__smart_search
msgid "Smart Search"
msgstr ""

#. module: base_view_inheritance_extension
#: model:ir.model,name:base_view_inheritance_extension.model_ir_ui_view
msgid "View"
msgstr ""
45 changes: 45 additions & 0 deletions base_view_inheritance_extension/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_view_inheritance_extension
#
# Translators:
# Marc Tormo i Bochaca <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-19 17:59+0000\n"
"PO-Revision-Date: 2017-04-19 17:59+0000\n"
"Last-Translator: Marc Tormo i Bochaca <[email protected]>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Partner form"
msgstr "Empresa de "

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Phone numbers"
msgstr ""

#. module: base_view_inheritance_extension
#: model:ir.model.fields,field_description:base_view_inheritance_extension.field_ir_ui_view__smart_search
msgid "Smart Search"
msgstr ""

#. module: base_view_inheritance_extension
#: model:ir.model,name:base_view_inheritance_extension.model_ir_ui_view
msgid "View"
msgstr ""

#~ msgid "ir.ui.view"
#~ msgstr "ir.ui.view"

#~ msgid "A new page"
#~ msgstr "Una nova pàgina "
42 changes: 42 additions & 0 deletions base_view_inheritance_extension/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_view_inheritance_extension
#
# Translators:
# Niki Waibel <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-01 02:10+0000\n"
"PO-Revision-Date: 2017-12-01 02:10+0000\n"
"Last-Translator: Niki Waibel <[email protected]>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Partner form"
msgstr ""

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Phone numbers"
msgstr ""

#. module: base_view_inheritance_extension
#: model:ir.model.fields,field_description:base_view_inheritance_extension.field_ir_ui_view__smart_search
msgid "Smart Search"
msgstr ""

#. module: base_view_inheritance_extension
#: model:ir.model,name:base_view_inheritance_extension.model_ir_ui_view
msgid "View"
msgstr ""

#~ msgid "ir.ui.view"
#~ msgstr "ir.ui.view"
43 changes: 43 additions & 0 deletions base_view_inheritance_extension/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_view_inheritance_extension
#
# Translators:
# Pedro M. Baeza <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-12-01 02:10+0000\n"
"PO-Revision-Date: 2023-09-03 00:14+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Partner form"
msgstr "Formulario de socio"

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Phone numbers"
msgstr "Números de teléfono"

#. module: base_view_inheritance_extension
#: model:ir.model.fields,field_description:base_view_inheritance_extension.field_ir_ui_view__smart_search
msgid "Smart Search"
msgstr "Búsqueda inteligente"

#. module: base_view_inheritance_extension
#: model:ir.model,name:base_view_inheritance_extension.model_ir_ui_view
msgid "View"
msgstr "Vista"

#~ msgid "ir.ui.view"
#~ msgstr "ir.ui.view"
37 changes: 37 additions & 0 deletions base_view_inheritance_extension/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_view_inheritance_extension
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-06-09 16:09+0000\n"
"Last-Translator: Ignacio Buioli <[email protected]>\n"
"Language-Team: none\n"
"Language: es_AR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Partner form"
msgstr "Contacto desde"

#. module: base_view_inheritance_extension
#: model_terms:ir.ui.view,arch_db:base_view_inheritance_extension.view_partner_simple_form
msgid "Phone numbers"
msgstr "Números de teléfono"

#. module: base_view_inheritance_extension
#: model:ir.model.fields,field_description:base_view_inheritance_extension.field_ir_ui_view__smart_search
msgid "Smart Search"
msgstr "Búsqueda Inteligente"

#. module: base_view_inheritance_extension
#: model:ir.model,name:base_view_inheritance_extension.model_ir_ui_view
msgid "View"
msgstr "Vista"
Loading