odoo-addon-base-view-inheritance-extension 16.0.1.1.0__py3-none-any.whl → 17.0.1.0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. odoo/addons/base_view_inheritance_extension/README.rst +39 -40
  2. odoo/addons/base_view_inheritance_extension/__manifest__.py +1 -1
  3. odoo/addons/base_view_inheritance_extension/i18n/base_view_inheritance_extension.pot +1 -6
  4. odoo/addons/base_view_inheritance_extension/models/ir_ui_view.py +1 -5
  5. odoo/addons/base_view_inheritance_extension/readme/CONTRIBUTORS.md +6 -0
  6. odoo/addons/base_view_inheritance_extension/readme/{DESCRIPTION.rst → DESCRIPTION.md} +2 -2
  7. odoo/addons/base_view_inheritance_extension/readme/ROADMAP.md +1 -0
  8. odoo/addons/base_view_inheritance_extension/readme/USAGE.md +32 -0
  9. odoo/addons/base_view_inheritance_extension/static/description/index.html +10 -10
  10. {odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info → odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info}/METADATA +46 -50
  11. {odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info → odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info}/RECORD +13 -13
  12. {odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info → odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info}/WHEEL +1 -1
  13. odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info/top_level.txt +1 -0
  14. odoo/addons/base_view_inheritance_extension/readme/CONTRIBUTORS.rst +0 -8
  15. odoo/addons/base_view_inheritance_extension/readme/ROADMAP.rst +0 -1
  16. odoo/addons/base_view_inheritance_extension/readme/USAGE.rst +0 -33
  17. odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info/top_level.txt +0 -1
@@ -7,7 +7,7 @@ Extended view inheritance
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:56c707d911c93aace4dc1593e4c0f7de5816cdf8883d581a9cfdf7d500b2de66
10
+ !! source digest: sha256:cc3eeb2e6514c28a74085cfaf6c72c75677d641778f0fcf248155f48600ac86f
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -17,19 +17,19 @@ Extended view inheritance
17
17
  :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18
18
  :alt: License: LGPL-3
19
19
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
20
- :target: https://github.com/OCA/server-tools/tree/16.0/base_view_inheritance_extension
20
+ :target: https://github.com/OCA/server-tools/tree/17.0/base_view_inheritance_extension
21
21
  :alt: OCA/server-tools
22
22
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
- :target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_view_inheritance_extension
23
+ :target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-base_view_inheritance_extension
24
24
  :alt: Translate me on Weblate
25
25
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
- :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=16.0
26
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
27
27
  :alt: Try me on Runboat
28
28
 
29
29
  |badge1| |badge2| |badge3| |badge4| |badge5|
30
30
 
31
- This module was written to make it simple to add custom operators for view
32
- inheritance.
31
+ This module was written to make it simple to add custom operators for
32
+ view inheritance.
33
33
 
34
34
  **Table of contents**
35
35
 
@@ -41,42 +41,41 @@ Usage
41
41
 
42
42
  **Change a python dictionary (context for example)**
43
43
 
44
+ .. code:: xml
44
45
 
45
- .. code-block:: xml
46
+ <field position="attributes">
47
+ <attribute name="context" operation="update">
48
+ {
49
+ "key": "value",
50
+ }
51
+ </attribute>
52
+ </field>
46
53
 
47
- <field position="attributes">
48
- <attribute name="context" operation="update">
49
- {
50
- "key": "value",
51
- }
52
- </attribute>
53
- </field>
54
-
55
-
56
- Note that views are subject to evaluation of xmlids anyways, so if you need
57
- to refer to some xmlid, say ``%(xmlid)s``.
54
+ Note that views are subject to evaluation of xmlids anyways, so if you
55
+ need to refer to some xmlid, say ``%(xmlid)s``.
58
56
 
59
57
  **Add text after and/or before than original**
60
58
 
61
- .. code-block:: xml
59
+ .. code:: xml
62
60
 
63
- <attribute name="$attribute" operation="text_add">
64
- $text_before {old_value} $text_after
65
- </attribute>
61
+ <attribute name="$attribute" operation="text_add">
62
+ $text_before {old_value} $text_after
63
+ </attribute>
66
64
 
67
- **Add domain with AND/OR join operator (AND if missed) allowing conditional changes**
65
+ **Add domain with AND/OR join operator (AND if missed) allowing
66
+ conditional changes**
68
67
 
69
- .. code-block:: xml
68
+ .. code:: xml
70
69
 
71
- <attribute name="$attribute" operation="domain_add"
72
- condition="$field_condition" join_operator="OR">
73
- $domain_to_add
74
- </attribute>
70
+ <attribute name="$attribute" operation="domain_add"
71
+ condition="$field_condition" join_operator="OR">
72
+ $domain_to_add
73
+ </attribute>
75
74
 
76
75
  Known issues / Roadmap
77
76
  ======================
78
77
 
79
- * Support an ``eval`` attribute for our new node types.
78
+ - Support an ``eval`` attribute for our new node types.
80
79
 
81
80
  Bug Tracker
82
81
  ===========
@@ -84,7 +83,7 @@ Bug Tracker
84
83
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
85
84
  In case of trouble, please check there if your issue has already been reported.
86
85
  If you spotted it first, help us to smash it by providing a detailed and welcomed
87
- `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_view_inheritance_extension%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
86
+ `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_view_inheritance_extension%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
88
87
 
89
88
  Do not contact contributors directly about support or help with technical issues.
90
89
 
@@ -92,24 +91,24 @@ Credits
92
91
  =======
93
92
 
94
93
  Authors
95
- ~~~~~~~
94
+ -------
96
95
 
97
96
  * Therp BV
98
97
 
99
98
  Contributors
100
- ~~~~~~~~~~~~
99
+ ------------
101
100
 
102
- * Holger Brunn <hbrunn@therp.nl>
103
- * Ronald Portier <rportier@therp.nl>
104
- * `Tecnativa <https://www.tecnativa.com>`_:
101
+ - Holger Brunn <hbrunn@therp.nl>
102
+ - Ronald Portier <rportier@therp.nl>
103
+ - `Tecnativa <https://www.tecnativa.com>`__:
105
104
 
106
- * Sergio Teruel
107
- * Carlos Dauden
105
+ - Sergio Teruel
106
+ - Carlos Dauden
108
107
 
109
- * Iván Todorovich <ivan.todorovich@camptocamp.com>
108
+ - Iván Todorovich <ivan.todorovich@camptocamp.com>
110
109
 
111
110
  Maintainers
112
- ~~~~~~~~~~~
111
+ -----------
113
112
 
114
113
  This module is maintained by the OCA.
115
114
 
@@ -121,6 +120,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
121
120
  mission is to support the collaborative development of Odoo features and
122
121
  promote its widespread use.
123
122
 
124
- This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/16.0/base_view_inheritance_extension>`_ project on GitHub.
123
+ This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/base_view_inheritance_extension>`_ project on GitHub.
125
124
 
126
125
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -3,7 +3,7 @@
3
3
  # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
4
4
  {
5
5
  "name": "Extended view inheritance",
6
- "version": "16.0.1.1.0",
6
+ "version": "17.0.1.0.0",
7
7
  "development_status": "Mature",
8
8
  "author": "Therp BV,Odoo Community Association (OCA)",
9
9
  "license": "LGPL-3",
@@ -4,7 +4,7 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: Odoo Server 16.0\n"
7
+ "Project-Id-Version: Odoo Server 17.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "Last-Translator: \n"
10
10
  "Language-Team: \n"
@@ -23,11 +23,6 @@ msgstr ""
23
23
  msgid "Phone numbers"
24
24
  msgstr ""
25
25
 
26
- #. module: base_view_inheritance_extension
27
- #: model:ir.model.fields,field_description:base_view_inheritance_extension.field_ir_ui_view__smart_search
28
- msgid "Smart Search"
29
- msgstr ""
30
-
31
26
  #. module: base_view_inheritance_extension
32
27
  #: model:ir.model,name:base_view_inheritance_extension.model_ir_ui_view
33
28
  msgid "View"
@@ -181,11 +181,7 @@ class IrUiView(models.Model):
181
181
  # in update mode the domain cause an invalid syntax error
182
182
  new_value = attribute_node.text.strip()
183
183
  if condition:
184
- new_value = "{condition} and {new_value} or {old_value}".format(
185
- condition=condition,
186
- new_value=new_value,
187
- old_value=old_value or [],
188
- )
184
+ new_value = f"{condition} and {new_value} or {old_value or []}"
189
185
  node.attrib[attribute_name] = new_value
190
186
  return source
191
187
 
@@ -0,0 +1,6 @@
1
+ - Holger Brunn \<<hbrunn@therp.nl>\>
2
+ - Ronald Portier \<<rportier@therp.nl>\>
3
+ - [Tecnativa](https://www.tecnativa.com):
4
+ - Sergio Teruel
5
+ - Carlos Dauden
6
+ - Iván Todorovich \<<ivan.todorovich@camptocamp.com>\>
@@ -1,2 +1,2 @@
1
- This module was written to make it simple to add custom operators for view
2
- inheritance.
1
+ This module was written to make it simple to add custom operators for
2
+ view inheritance.
@@ -0,0 +1 @@
1
+ - Support an `eval` attribute for our new node types.
@@ -0,0 +1,32 @@
1
+ **Change a python dictionary (context for example)**
2
+
3
+ ``` xml
4
+ <field position="attributes">
5
+ <attribute name="context" operation="update">
6
+ {
7
+ "key": "value",
8
+ }
9
+ </attribute>
10
+ </field>
11
+ ```
12
+
13
+ Note that views are subject to evaluation of xmlids anyways, so if you
14
+ need to refer to some xmlid, say `%(xmlid)s`.
15
+
16
+ **Add text after and/or before than original**
17
+
18
+ ``` xml
19
+ <attribute name="$attribute" operation="text_add">
20
+ $text_before {old_value} $text_after
21
+ </attribute>
22
+ ```
23
+
24
+ **Add domain with AND/OR join operator (AND if missed) allowing
25
+ conditional changes**
26
+
27
+ ``` xml
28
+ <attribute name="$attribute" operation="domain_add"
29
+ condition="$field_condition" join_operator="OR">
30
+ $domain_to_add
31
+ </attribute>
32
+ ```
@@ -1,4 +1,3 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
3
  <head>
@@ -367,11 +366,11 @@ ul.auto-toc {
367
366
  !! This file is generated by oca-gen-addon-readme !!
368
367
  !! changes will be overwritten. !!
369
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:56c707d911c93aace4dc1593e4c0f7de5816cdf8883d581a9cfdf7d500b2de66
369
+ !! source digest: sha256:cc3eeb2e6514c28a74085cfaf6c72c75677d641778f0fcf248155f48600ac86f
371
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
- <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/16.0/base_view_inheritance_extension"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_view_inheritance_extension"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
- <p>This module was written to make it simple to add custom operators for view
374
- inheritance.</p>
371
+ <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/17.0/base_view_inheritance_extension"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-base_view_inheritance_extension"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
+ <p>This module was written to make it simple to add custom operators for
373
+ view inheritance.</p>
375
374
  <p><strong>Table of contents</strong></p>
376
375
  <div class="contents local topic" id="contents">
377
376
  <ul class="simple">
@@ -398,15 +397,16 @@ inheritance.</p>
398
397
  </span><span class="nt">&lt;/attribute&gt;</span><span class="w">
399
398
  </span><span class="nt">&lt;/field&gt;</span>
400
399
  </pre>
401
- <p>Note that views are subject to evaluation of xmlids anyways, so if you need
402
- to refer to some xmlid, say <tt class="docutils literal">%(xmlid)s</tt>.</p>
400
+ <p>Note that views are subject to evaluation of xmlids anyways, so if you
401
+ need to refer to some xmlid, say <tt class="docutils literal">%(xmlid)s</tt>.</p>
403
402
  <p><strong>Add text after and/or before than original</strong></p>
404
403
  <pre class="code xml literal-block">
405
404
  <span class="nt">&lt;attribute</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;$attribute&quot;</span><span class="w"> </span><span class="na">operation=</span><span class="s">&quot;text_add&quot;</span><span class="nt">&gt;</span><span class="w">
406
405
  </span>$text_before<span class="w"> </span>{old_value}<span class="w"> </span>$text_after<span class="w">
407
406
  </span><span class="nt">&lt;/attribute&gt;</span>
408
407
  </pre>
409
- <p><strong>Add domain with AND/OR join operator (AND if missed) allowing conditional changes</strong></p>
408
+ <p><strong>Add domain with AND/OR join operator (AND if missed) allowing
409
+ conditional changes</strong></p>
410
410
  <pre class="code xml literal-block">
411
411
  <span class="nt">&lt;attribute</span><span class="w"> </span><span class="na">name=</span><span class="s">&quot;$attribute&quot;</span><span class="w"> </span><span class="na">operation=</span><span class="s">&quot;domain_add&quot;</span><span class="w">
412
412
  </span><span class="na">condition=</span><span class="s">&quot;$field_condition&quot;</span><span class="w"> </span><span class="na">join_operator=</span><span class="s">&quot;OR&quot;</span><span class="nt">&gt;</span><span class="w">
@@ -425,7 +425,7 @@ to refer to some xmlid, say <tt class="docutils literal">%(xmlid)s</tt>.</p>
425
425
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
426
426
  In case of trouble, please check there if your issue has already been reported.
427
427
  If you spotted it first, help us to smash it by providing a detailed and welcomed
428
- <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20base_view_inheritance_extension%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
428
+ <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20base_view_inheritance_extension%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
429
429
  <p>Do not contact contributors directly about support or help with technical issues.</p>
430
430
  </div>
431
431
  <div class="section" id="credits">
@@ -456,7 +456,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
456
456
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
457
457
  mission is to support the collaborative development of Odoo features and
458
458
  promote its widespread use.</p>
459
- <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/base_view_inheritance_extension">OCA/server-tools</a> project on GitHub.</p>
459
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/17.0/base_view_inheritance_extension">OCA/server-tools</a> project on GitHub.</p>
460
460
  <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
461
461
  </div>
462
462
  </div>
@@ -1,20 +1,19 @@
1
1
  Metadata-Version: 2.1
2
- Name: odoo-addon-base-view-inheritance-extension
3
- Version: 16.0.1.1.0
2
+ Name: odoo-addon-base_view_inheritance_extension
3
+ Version: 17.0.1.0.0.2
4
+ Requires-Python: >=3.10
5
+ Requires-Dist: astor
6
+ Requires-Dist: odoo>=17.0a,<17.1dev
4
7
  Summary: Adds more operators for view inheritance
5
8
  Home-page: https://github.com/OCA/server-tools
9
+ License: LGPL-3
6
10
  Author: Therp BV,Odoo Community Association (OCA)
7
11
  Author-email: support@odoo-community.org
8
- License: LGPL-3
9
- Platform: UNKNOWN
10
12
  Classifier: Programming Language :: Python
11
13
  Classifier: Framework :: Odoo
12
- Classifier: Framework :: Odoo :: 16.0
14
+ Classifier: Framework :: Odoo :: 17.0
13
15
  Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
14
16
  Classifier: Development Status :: 6 - Mature
15
- Requires-Python: >=3.10
16
- Requires-Dist: astor
17
- Requires-Dist: odoo <16.1dev,>=16.0a
18
17
 
19
18
  =========================
20
19
  Extended view inheritance
@@ -25,7 +24,7 @@ Extended view inheritance
25
24
  !! This file is generated by oca-gen-addon-readme !!
26
25
  !! changes will be overwritten. !!
27
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
- !! source digest: sha256:56c707d911c93aace4dc1593e4c0f7de5816cdf8883d581a9cfdf7d500b2de66
27
+ !! source digest: sha256:cc3eeb2e6514c28a74085cfaf6c72c75677d641778f0fcf248155f48600ac86f
29
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
29
 
31
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
@@ -35,19 +34,19 @@ Extended view inheritance
35
34
  :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
36
35
  :alt: License: LGPL-3
37
36
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
38
- :target: https://github.com/OCA/server-tools/tree/16.0/base_view_inheritance_extension
37
+ :target: https://github.com/OCA/server-tools/tree/17.0/base_view_inheritance_extension
39
38
  :alt: OCA/server-tools
40
39
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
41
- :target: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-base_view_inheritance_extension
40
+ :target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-base_view_inheritance_extension
42
41
  :alt: Translate me on Weblate
43
42
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
44
- :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=16.0
43
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
45
44
  :alt: Try me on Runboat
46
45
 
47
46
  |badge1| |badge2| |badge3| |badge4| |badge5|
48
47
 
49
- This module was written to make it simple to add custom operators for view
50
- inheritance.
48
+ This module was written to make it simple to add custom operators for
49
+ view inheritance.
51
50
 
52
51
  **Table of contents**
53
52
 
@@ -59,42 +58,41 @@ Usage
59
58
 
60
59
  **Change a python dictionary (context for example)**
61
60
 
61
+ .. code:: xml
62
62
 
63
- .. code-block:: xml
64
-
65
- <field position="attributes">
66
- <attribute name="context" operation="update">
67
- {
68
- "key": "value",
69
- }
70
- </attribute>
71
- </field>
72
-
63
+ <field position="attributes">
64
+ <attribute name="context" operation="update">
65
+ {
66
+ "key": "value",
67
+ }
68
+ </attribute>
69
+ </field>
73
70
 
74
- Note that views are subject to evaluation of xmlids anyways, so if you need
75
- to refer to some xmlid, say ``%(xmlid)s``.
71
+ Note that views are subject to evaluation of xmlids anyways, so if you
72
+ need to refer to some xmlid, say ``%(xmlid)s``.
76
73
 
77
74
  **Add text after and/or before than original**
78
75
 
79
- .. code-block:: xml
76
+ .. code:: xml
80
77
 
81
- <attribute name="$attribute" operation="text_add">
82
- $text_before {old_value} $text_after
83
- </attribute>
78
+ <attribute name="$attribute" operation="text_add">
79
+ $text_before {old_value} $text_after
80
+ </attribute>
84
81
 
85
- **Add domain with AND/OR join operator (AND if missed) allowing conditional changes**
82
+ **Add domain with AND/OR join operator (AND if missed) allowing
83
+ conditional changes**
86
84
 
87
- .. code-block:: xml
85
+ .. code:: xml
88
86
 
89
- <attribute name="$attribute" operation="domain_add"
90
- condition="$field_condition" join_operator="OR">
91
- $domain_to_add
92
- </attribute>
87
+ <attribute name="$attribute" operation="domain_add"
88
+ condition="$field_condition" join_operator="OR">
89
+ $domain_to_add
90
+ </attribute>
93
91
 
94
92
  Known issues / Roadmap
95
93
  ======================
96
94
 
97
- * Support an ``eval`` attribute for our new node types.
95
+ - Support an ``eval`` attribute for our new node types.
98
96
 
99
97
  Bug Tracker
100
98
  ===========
@@ -102,7 +100,7 @@ Bug Tracker
102
100
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
103
101
  In case of trouble, please check there if your issue has already been reported.
104
102
  If you spotted it first, help us to smash it by providing a detailed and welcomed
105
- `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_view_inheritance_extension%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
103
+ `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20base_view_inheritance_extension%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
106
104
 
107
105
  Do not contact contributors directly about support or help with technical issues.
108
106
 
@@ -110,24 +108,24 @@ Credits
110
108
  =======
111
109
 
112
110
  Authors
113
- ~~~~~~~
111
+ -------
114
112
 
115
113
  * Therp BV
116
114
 
117
115
  Contributors
118
- ~~~~~~~~~~~~
116
+ ------------
119
117
 
120
- * Holger Brunn <hbrunn@therp.nl>
121
- * Ronald Portier <rportier@therp.nl>
122
- * `Tecnativa <https://www.tecnativa.com>`_:
118
+ - Holger Brunn <hbrunn@therp.nl>
119
+ - Ronald Portier <rportier@therp.nl>
120
+ - `Tecnativa <https://www.tecnativa.com>`__:
123
121
 
124
- * Sergio Teruel
125
- * Carlos Dauden
122
+ - Sergio Teruel
123
+ - Carlos Dauden
126
124
 
127
- * Iván Todorovich <ivan.todorovich@camptocamp.com>
125
+ - Iván Todorovich <ivan.todorovich@camptocamp.com>
128
126
 
129
127
  Maintainers
130
- ~~~~~~~~~~~
128
+ -----------
131
129
 
132
130
  This module is maintained by the OCA.
133
131
 
@@ -139,8 +137,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
139
137
  mission is to support the collaborative development of Odoo features and
140
138
  promote its widespread use.
141
139
 
142
- This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/16.0/base_view_inheritance_extension>`_ project on GitHub.
140
+ This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/base_view_inheritance_extension>`_ project on GitHub.
143
141
 
144
142
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
145
-
146
-
@@ -1,8 +1,8 @@
1
- odoo/addons/base_view_inheritance_extension/README.rst,sha256=s4SK60OIEUpRCYl5j3Lrr9n4-4OCelf2iFyY3pC7Tv4,4059
1
+ odoo/addons/base_view_inheritance_extension/README.rst,sha256=fdZDk9SE5ShC-08XrqHevheeem4_cyX8kB40NeXqdtc,4035
2
2
  odoo/addons/base_view_inheritance_extension/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/base_view_inheritance_extension/__manifest__.py,sha256=Ca1864xMAWhDjammHW65ShRb_59XN3XIMHQMTzG5jO4,616
3
+ odoo/addons/base_view_inheritance_extension/__manifest__.py,sha256=PSczUq_IZiBVrmXP1mZvBdICJAuYzoiv3VWAbHjI7aE,616
4
4
  odoo/addons/base_view_inheritance_extension/demo/ir_ui_view.xml,sha256=MHPVOGOM6XnNOTsq0ylz1B5r0sPJpRKHLan3K2mZ6sA,1200
5
- odoo/addons/base_view_inheritance_extension/i18n/base_view_inheritance_extension.pot,sha256=fs9N7L3F1tQYphJ4_BoE725z8zXA0ULVEIW4-qsQRTw,1031
5
+ odoo/addons/base_view_inheritance_extension/i18n/base_view_inheritance_extension.pot,sha256=B5ae18bfXVMomBlVh0Bf5Su6Q5urtlT2bKWa0Rav7UE,850
6
6
  odoo/addons/base_view_inheritance_extension/i18n/ca.po,sha256=7ncEf2XfOWoOIlU7jysZhKYtd1KEF7oUHABgxJeEm9Q,1443
7
7
  odoo/addons/base_view_inheritance_extension/i18n/de.po,sha256=yaXLt5LJ08bt1zv4h76aKSH0blNmlHOW8ZMI34VOix8,1364
8
8
  odoo/addons/base_view_inheritance_extension/i18n/es.po,sha256=iQy3KiLd16FHheppaA1xkRNV7uFkkBiNAGw7wlVIwYE,1458
@@ -12,16 +12,16 @@ odoo/addons/base_view_inheritance_extension/i18n/it.po,sha256=342XK5tLJJavpToQ_T
12
12
  odoo/addons/base_view_inheritance_extension/i18n/sl.po,sha256=YjMtgl3N0bkOH8ngh_FMy7m-vxpNXt12WWiHYSmnFhY,1446
13
13
  odoo/addons/base_view_inheritance_extension/i18n/tr.po,sha256=S3G6M2N5DNbiTpctuhlJ14hfKa_BJ_v0Ju-4cHu7eQQ,1453
14
14
  odoo/addons/base_view_inheritance_extension/models/__init__.py,sha256=SjKfc8ocbCImvP5DpGQbS0hWmQRYPjtzJdyio6TPII0,25
15
- odoo/addons/base_view_inheritance_extension/models/ir_ui_view.py,sha256=MGk_4Y-jJNky5SlwklDNRnJyztnng0EPpMffGXcv048,8191
16
- odoo/addons/base_view_inheritance_extension/readme/CONTRIBUTORS.rst,sha256=c9RfnEkKnqbGzA9LVlOz37yIL6hsprsap_73E5_kqyQ,204
17
- odoo/addons/base_view_inheritance_extension/readme/DESCRIPTION.rst,sha256=pamURJDYfLUcZtHl0ZvXTtzKO1LvHlhhYIND05AMzbk,88
18
- odoo/addons/base_view_inheritance_extension/readme/ROADMAP.rst,sha256=Cz02ovrYCAgtqjY3nTSnikVgWaKPcWLP-bsuJxCTlKw,56
19
- odoo/addons/base_view_inheritance_extension/readme/USAGE.rst,sha256=Hbr5TnkYHTP2Ek3PnlL1h7fL11hOX7tnoaOSObfh3Y8,835
15
+ odoo/addons/base_view_inheritance_extension/models/ir_ui_view.py,sha256=utESRn6fjo0Xt6YFlmM4yprEemfgpYYpBAsVjU3IVCU,8043
16
+ odoo/addons/base_view_inheritance_extension/readme/CONTRIBUTORS.md,sha256=AplbG1Uhen3Vibr66YJ5c3DidJ2dCK6dWORzEOc_De8,212
17
+ odoo/addons/base_view_inheritance_extension/readme/DESCRIPTION.md,sha256=TC-vXmaSQ5oo7nNl5jxSyurQiz2597hDzQirRGw73BI,88
18
+ odoo/addons/base_view_inheritance_extension/readme/ROADMAP.md,sha256=79XqQ49EvpKp11-P-rimu8Mwklpwor3rkWKFPym9YbA,54
19
+ odoo/addons/base_view_inheritance_extension/readme/USAGE.md,sha256=g7ZkBJmm4ldDD-tkQjlzW7WpvssmBi23Dj2KCUuxlug,748
20
20
  odoo/addons/base_view_inheritance_extension/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
21
- odoo/addons/base_view_inheritance_extension/static/description/index.html,sha256=loy9GN6OOMvPfMm6NupcLrEbYf0hfEIrM69gJinkL_k,15475
21
+ odoo/addons/base_view_inheritance_extension/static/description/index.html,sha256=NKB4v7yaNi9y-0p83FUCLRfuWHPZVtun_3ANMOUyh4E,15436
22
22
  odoo/addons/base_view_inheritance_extension/tests/__init__.py,sha256=kTcGsgnWhpM7vII3sEdNX5XVxDHHqRc5KdrxInG6GSw,51
23
23
  odoo/addons/base_view_inheritance_extension/tests/test_base_view_inheritance_extension.py,sha256=vl07csg7Q9ZNtlnOgnL3AiyNEo7OHpcSdhxULPZuV5k,8618
24
- odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info/METADATA,sha256=-2LxoLluRkOiFSDwsNRS_zutag5wmP_suaRYNK6Rc5E,4698
25
- odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
26
- odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
27
- odoo_addon_base_view_inheritance_extension-16.0.1.1.0.dist-info/RECORD,,
24
+ odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info/METADATA,sha256=-Npc5Ye-gyBwPyaEQhnBtOWfyS64aqfLsGwjaGHqn1k,4655
25
+ odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info/WHEEL,sha256=0WPb27lpWF0K4Majm_kVmkl1QxJZxoKxO5GGil8gPB4,81
26
+ odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
27
+ odoo_addon_base_view_inheritance_extension-17.0.1.0.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: Whool 0.5
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,8 +0,0 @@
1
- * Holger Brunn <hbrunn@therp.nl>
2
- * Ronald Portier <rportier@therp.nl>
3
- * `Tecnativa <https://www.tecnativa.com>`_:
4
-
5
- * Sergio Teruel
6
- * Carlos Dauden
7
-
8
- * Iván Todorovich <ivan.todorovich@camptocamp.com>
@@ -1 +0,0 @@
1
- * Support an ``eval`` attribute for our new node types.
@@ -1,33 +0,0 @@
1
- **Change a python dictionary (context for example)**
2
-
3
-
4
- .. code-block:: xml
5
-
6
- <field position="attributes">
7
- <attribute name="context" operation="update">
8
- {
9
- "key": "value",
10
- }
11
- </attribute>
12
- </field>
13
-
14
-
15
- Note that views are subject to evaluation of xmlids anyways, so if you need
16
- to refer to some xmlid, say ``%(xmlid)s``.
17
-
18
- **Add text after and/or before than original**
19
-
20
- .. code-block:: xml
21
-
22
- <attribute name="$attribute" operation="text_add">
23
- $text_before {old_value} $text_after
24
- </attribute>
25
-
26
- **Add domain with AND/OR join operator (AND if missed) allowing conditional changes**
27
-
28
- .. code-block:: xml
29
-
30
- <attribute name="$attribute" operation="domain_add"
31
- condition="$field_condition" join_operator="OR">
32
- $domain_to_add
33
- </attribute>