odoo-addon-base-view-inheritance-extension 17.0.1.0.2__py3-none-any.whl → 17.0.1.1.0__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.
@@ -1,3 +1,7 @@
1
+ .. image:: https://odoo-community.org/readme-banner-image
2
+ :target: https://odoo-community.org/get-involved?utm_source=readme
3
+ :alt: Odoo Community Association
4
+
1
5
  =========================
2
6
  Extended view inheritance
3
7
  =========================
@@ -7,13 +11,13 @@ Extended view inheritance
7
11
  !! This file is generated by oca-gen-addon-readme !!
8
12
  !! changes will be overwritten. !!
9
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:27191b04e1a7392892f0450c00e69e35976d78ed35b380c30359a4316f44f950
14
+ !! source digest: sha256:32445a96710100723618a7a88b44330e5d7bcad128b2ad3bcf08c3844ef7c3f7
11
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
16
 
13
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
14
18
  :target: https://odoo-community.org/page/development-status
15
19
  :alt: Mature
16
- .. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
20
+ .. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
17
21
  :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18
22
  :alt: License: LGPL-3
19
23
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
@@ -75,7 +79,7 @@ conditional changes**
75
79
  Known issues / Roadmap
76
80
  ======================
77
81
 
78
- - Support an ``eval`` attribute for our new node types.
82
+ - Support an ``eval`` attribute for our new node types.
79
83
 
80
84
  Bug Tracker
81
85
  ===========
@@ -98,14 +102,14 @@ Authors
98
102
  Contributors
99
103
  ------------
100
104
 
101
- - Holger Brunn <hbrunn@therp.nl>
102
- - Ronald Portier <rportier@therp.nl>
103
- - `Tecnativa <https://www.tecnativa.com>`__:
105
+ - Holger Brunn <hbrunn@therp.nl>
106
+ - Ronald Portier <rportier@therp.nl>
107
+ - `Tecnativa <https://www.tecnativa.com>`__:
104
108
 
105
- - Sergio Teruel
106
- - Carlos Dauden
109
+ - Sergio Teruel
110
+ - Carlos Dauden
107
111
 
108
- - Iván Todorovich <ivan.todorovich@camptocamp.com>
112
+ - Iván Todorovich <ivan.todorovich@camptocamp.com>
109
113
 
110
114
  Maintainers
111
115
  -----------
@@ -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": "17.0.1.0.2",
6
+ "version": "17.0.1.1.0",
7
7
  "development_status": "Mature",
8
8
  "author": "Therp BV,Odoo Community Association (OCA)",
9
9
  "license": "LGPL-3",
@@ -11,6 +11,5 @@
11
11
  "summary": "Adds more operators for view inheritance",
12
12
  "website": "https://github.com/OCA/server-tools",
13
13
  "depends": ["base"],
14
- "external_dependencies": {"python": ["astor"]},
15
14
  "demo": ["demo/ir_ui_view.xml"],
16
15
  }
@@ -4,15 +4,8 @@
4
4
  # Copyright 2023 Tecnativa - Carlos Dauden
5
5
  # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
6
6
  import ast
7
- import logging
8
7
  import re
9
8
 
10
- try:
11
- import astor
12
- except ImportError as err: # pragma: no cover
13
- _logger = logging.getLogger(__name__)
14
- _logger.debug(err)
15
-
16
9
  from lxml import etree
17
10
 
18
11
  from odoo import api, models
@@ -34,11 +27,8 @@ def ast_dict_update(source, update):
34
27
  raise TypeError("`update` must be an AST dict")
35
28
 
36
29
  def ast_key_eq(k1, k2):
37
- # python < 3.8 uses ast.Str; python >= 3.8 uses ast.Constant
38
- if type(k1) != type(k2):
30
+ if type(k1) is not type(k2):
39
31
  return False
40
- elif isinstance(k1, ast.Str):
41
- return k1.s == k2.s
42
32
  elif isinstance(k1, ast.Constant):
43
33
  return k1.value == k2.value
44
34
 
@@ -130,11 +120,7 @@ class IrUiView(models.Model):
130
120
  # Update node ast dict
131
121
  source_ast = ast_dict_update(source_ast, update_ast)
132
122
  # Dump the ast back to source
133
- # TODO: once odoo requires python >= 3.9; use `ast.unparse` instead
134
- node.attrib[attr_name] = astor.to_source(
135
- source_ast,
136
- pretty_source=lambda s: "".join(s).strip(),
137
- )
123
+ node.attrib[attr_name] = ast.unparse(source_ast).strip()
138
124
  return source
139
125
 
140
126
  @api.model
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
5
  <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
- <title>Extended view inheritance</title>
6
+ <title>README.rst</title>
7
7
  <style type="text/css">
8
8
 
9
9
  /*
@@ -360,16 +360,21 @@ ul.auto-toc {
360
360
  </style>
361
361
  </head>
362
362
  <body>
363
- <div class="document" id="extended-view-inheritance">
364
- <h1 class="title">Extended view inheritance</h1>
363
+ <div class="document">
365
364
 
365
+
366
+ <a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367
+ <img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368
+ </a>
369
+ <div class="section" id="extended-view-inheritance">
370
+ <h1>Extended view inheritance</h1>
366
371
  <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367
372
  !! This file is generated by oca-gen-addon-readme !!
368
373
  !! changes will be overwritten. !!
369
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:27191b04e1a7392892f0450c00e69e35976d78ed35b380c30359a4316f44f950
375
+ !! source digest: sha256:32445a96710100723618a7a88b44330e5d7bcad128b2ad3bcf08c3844ef7c3f7
371
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/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>
377
+ <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/license-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>
373
378
  <p>This module was written to make it simple to add custom operators for
374
379
  view inheritance.</p>
375
380
  <p><strong>Table of contents</strong></p>
@@ -387,7 +392,7 @@ view inheritance.</p>
387
392
  </ul>
388
393
  </div>
389
394
  <div class="section" id="usage">
390
- <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
395
+ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
391
396
  <p><strong>Change a python dictionary (context for example)</strong></p>
392
397
  <pre class="code xml literal-block">
393
398
  <span class="nt">&lt;field</span><span class="w"> </span><span class="na">position=</span><span class="s">&quot;attributes&quot;</span><span class="nt">&gt;</span><span class="w">
@@ -416,13 +421,13 @@ conditional changes</strong></p>
416
421
  </pre>
417
422
  </div>
418
423
  <div class="section" id="known-issues-roadmap">
419
- <h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
424
+ <h2><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h2>
420
425
  <ul class="simple">
421
426
  <li>Support an <tt class="docutils literal">eval</tt> attribute for our new node types.</li>
422
427
  </ul>
423
428
  </div>
424
429
  <div class="section" id="bug-tracker">
425
- <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
430
+ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
426
431
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
427
432
  In case of trouble, please check there if your issue has already been reported.
428
433
  If you spotted it first, help us to smash it by providing a detailed and welcomed
@@ -430,15 +435,15 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
430
435
  <p>Do not contact contributors directly about support or help with technical issues.</p>
431
436
  </div>
432
437
  <div class="section" id="credits">
433
- <h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
438
+ <h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
434
439
  <div class="section" id="authors">
435
- <h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
440
+ <h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
436
441
  <ul class="simple">
437
442
  <li>Therp BV</li>
438
443
  </ul>
439
444
  </div>
440
445
  <div class="section" id="contributors">
441
- <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
446
+ <h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
442
447
  <ul class="simple">
443
448
  <li>Holger Brunn &lt;<a class="reference external" href="mailto:hbrunn&#64;therp.nl">hbrunn&#64;therp.nl</a>&gt;</li>
444
449
  <li>Ronald Portier &lt;<a class="reference external" href="mailto:rportier&#64;therp.nl">rportier&#64;therp.nl</a>&gt;</li>
@@ -451,7 +456,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
451
456
  </ul>
452
457
  </div>
453
458
  <div class="section" id="maintainers">
454
- <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
459
+ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
455
460
  <p>This module is maintained by the OCA.</p>
456
461
  <a class="reference external image-reference" href="https://odoo-community.org">
457
462
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -464,5 +469,6 @@ promote its widespread use.</p>
464
469
  </div>
465
470
  </div>
466
471
  </div>
472
+ </div>
467
473
  </body>
468
474
  </html>
@@ -1,8 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-base_view_inheritance_extension
3
- Version: 17.0.1.0.2
3
+ Version: 17.0.1.1.0
4
4
  Requires-Python: >=3.10
5
- Requires-Dist: astor
6
5
  Requires-Dist: odoo>=17.0a,<17.1dev
7
6
  Summary: Adds more operators for view inheritance
8
7
  Home-page: https://github.com/OCA/server-tools
@@ -14,6 +13,11 @@ Classifier: Framework :: Odoo
14
13
  Classifier: Framework :: Odoo :: 17.0
15
14
  Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
16
15
  Classifier: Development Status :: 6 - Mature
16
+ Description-Content-Type: text/x-rst
17
+
18
+ .. image:: https://odoo-community.org/readme-banner-image
19
+ :target: https://odoo-community.org/get-involved?utm_source=readme
20
+ :alt: Odoo Community Association
17
21
 
18
22
  =========================
19
23
  Extended view inheritance
@@ -24,13 +28,13 @@ Extended view inheritance
24
28
  !! This file is generated by oca-gen-addon-readme !!
25
29
  !! changes will be overwritten. !!
26
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:27191b04e1a7392892f0450c00e69e35976d78ed35b380c30359a4316f44f950
31
+ !! source digest: sha256:32445a96710100723618a7a88b44330e5d7bcad128b2ad3bcf08c3844ef7c3f7
28
32
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
33
 
30
34
  .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
31
35
  :target: https://odoo-community.org/page/development-status
32
36
  :alt: Mature
33
- .. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
37
+ .. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
34
38
  :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
35
39
  :alt: License: LGPL-3
36
40
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
@@ -92,7 +96,7 @@ conditional changes**
92
96
  Known issues / Roadmap
93
97
  ======================
94
98
 
95
- - Support an ``eval`` attribute for our new node types.
99
+ - Support an ``eval`` attribute for our new node types.
96
100
 
97
101
  Bug Tracker
98
102
  ===========
@@ -115,14 +119,14 @@ Authors
115
119
  Contributors
116
120
  ------------
117
121
 
118
- - Holger Brunn <hbrunn@therp.nl>
119
- - Ronald Portier <rportier@therp.nl>
120
- - `Tecnativa <https://www.tecnativa.com>`__:
122
+ - Holger Brunn <hbrunn@therp.nl>
123
+ - Ronald Portier <rportier@therp.nl>
124
+ - `Tecnativa <https://www.tecnativa.com>`__:
121
125
 
122
- - Sergio Teruel
123
- - Carlos Dauden
126
+ - Sergio Teruel
127
+ - Carlos Dauden
124
128
 
125
- - Iván Todorovich <ivan.todorovich@camptocamp.com>
129
+ - Iván Todorovich <ivan.todorovich@camptocamp.com>
126
130
 
127
131
  Maintainers
128
132
  -----------
@@ -1,6 +1,6 @@
1
- odoo/addons/base_view_inheritance_extension/README.rst,sha256=4f9c3AUIYyU6HlzveQViR_fduzh1XRfJ9_axgA3S9J8,4035
1
+ odoo/addons/base_view_inheritance_extension/README.rst,sha256=PGPEk92OTHrGjEh32Hvf0VGpu5VYrwjyeFQ4gfRPXNo,4191
2
2
  odoo/addons/base_view_inheritance_extension/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/base_view_inheritance_extension/__manifest__.py,sha256=2apL8GYv42xbelusDybcD351TJJIfSP57z4W2Se-7fI,616
3
+ odoo/addons/base_view_inheritance_extension/__manifest__.py,sha256=G8AnrtezsjmCTvYNtQ6m0qqn3n-5uW5RdlDfYmF_-qI,564
4
4
  odoo/addons/base_view_inheritance_extension/demo/ir_ui_view.xml,sha256=MHPVOGOM6XnNOTsq0ylz1B5r0sPJpRKHLan3K2mZ6sA,1200
5
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=xFKkpPiT_RVTTR0H7ZzB2PW6M7aDhRzYhdiCoiRq6mY,1262
@@ -12,16 +12,16 @@ odoo/addons/base_view_inheritance_extension/i18n/it.po,sha256=UWxqdWqJePuJaQNGgQ
12
12
  odoo/addons/base_view_inheritance_extension/i18n/sl.po,sha256=EY6zKcR8nRRsfpjrKK2_CVqFXnUVPjSBOAkI4-voRYw,1265
13
13
  odoo/addons/base_view_inheritance_extension/i18n/tr.po,sha256=xaYd2V2mHhQIeLqUpsE4VL3mHbT0DQVNbT9_jCXLc0I,1272
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=VHSQYgX_NFf8lwA47ddzQ9n7Wje_pwD4gGB0hESK1hk,8239
15
+ odoo/addons/base_view_inheritance_extension/models/ir_ui_view.py,sha256=z2SRxWPxskpoOoFO3Qo6qnvzCMU4x6I0Whhb2s3v4vQ,7787
16
16
  odoo/addons/base_view_inheritance_extension/readme/CONTRIBUTORS.md,sha256=AplbG1Uhen3Vibr66YJ5c3DidJ2dCK6dWORzEOc_De8,212
17
17
  odoo/addons/base_view_inheritance_extension/readme/DESCRIPTION.md,sha256=TC-vXmaSQ5oo7nNl5jxSyurQiz2597hDzQirRGw73BI,88
18
18
  odoo/addons/base_view_inheritance_extension/readme/ROADMAP.md,sha256=79XqQ49EvpKp11-P-rimu8Mwklpwor3rkWKFPym9YbA,54
19
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=y-5kfFT27fbXeOOE4JhfLC4bW-R-6IlFByhTjFehla8,15519
21
+ odoo/addons/base_view_inheritance_extension/static/description/index.html,sha256=O8O6mIN0WiiL0Wp045jD0ZwbNUVCgoSYCdr_fBXOssA,15731
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=53qfa3zOJGfmzq282dgX_3kCBDEwT8Wrv5vTP2AwHxw,8635
24
- odoo_addon_base_view_inheritance_extension-17.0.1.0.2.dist-info/METADATA,sha256=D3x-Z0-Hvm2Q0rmA2QQNA6vnNpP_wy_-STNs5YQ6gKg,4653
25
- odoo_addon_base_view_inheritance_extension-17.0.1.0.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
26
- odoo_addon_base_view_inheritance_extension-17.0.1.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
27
- odoo_addon_base_view_inheritance_extension-17.0.1.0.2.dist-info/RECORD,,
24
+ odoo_addon_base_view_inheritance_extension-17.0.1.1.0.dist-info/METADATA,sha256=pRniSDBP3RSHmTbmnRUwMzNb8jiio0nstnCRMU3cgbQ,4825
25
+ odoo_addon_base_view_inheritance_extension-17.0.1.1.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
26
+ odoo_addon_base_view_inheritance_extension-17.0.1.1.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
27
+ odoo_addon_base_view_inheritance_extension-17.0.1.1.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: Whool 1.2
2
+ Generator: Whool 1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5