From 08139ea24dc77a45a3666798e32bfb318bab4e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Houz=C3=A9fa=20Abbasbhay?= Date: Wed, 3 Apr 2024 18:30:13 +0200 Subject: [PATCH 01/21] [IMP] web_timeline: Align to top instead of bottom This avoids somewhat ugly very large "Unassigned" first row. --- web_timeline/static/src/js/timeline_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_timeline/static/src/js/timeline_view.js b/web_timeline/static/src/js/timeline_view.js index 66acca98aaf7..9d9a5bc50ad2 100644 --- a/web_timeline/static/src/js/timeline_view.js +++ b/web_timeline/static/src/js/timeline_view.js @@ -128,7 +128,7 @@ odoo.define("web_timeline.TimelineView", function (require) { _preapre_vis_timeline_options: function (attrs) { return { groupOrder: "order", - orientation: "both", + orientation: {axis: "both", item: "top"}, selectable: true, multiselect: true, showCurrentTime: true, From 7a59f5ef4d040d309754855203418c98b81bdd8b Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 23 Apr 2024 17:17:04 +0200 Subject: [PATCH 02/21] [ADD] web_widget_pattern --- .../odoo/addons/web_widget_pattern | 1 + setup/web_widget_pattern/setup.py | 6 + .../web_widget_pattern_partner_autocomplete | 1 + .../setup.py | 6 + web_widget_pattern/README.rst | 118 +++++ web_widget_pattern/__init__.py | 1 + web_widget_pattern/__manifest__.py | 27 ++ web_widget_pattern/demo/res_partner_views.xml | 14 + web_widget_pattern/models/__init__.py | 1 + web_widget_pattern/models/base.py | 28 ++ web_widget_pattern/readme/CONTRIBUTORS.md | 1 + web_widget_pattern/readme/DESCRIPTION.md | 1 + web_widget_pattern/readme/ROADMAP.md | 3 + web_widget_pattern/readme/USAGE.md | 13 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 456 ++++++++++++++++++ .../static/src/autocomplete.esm.js | 15 + .../static/src/autocomplete.xml | 10 + .../static/src/char_field.esm.js | 37 ++ web_widget_pattern/static/src/char_field.xml | 9 + web_widget_pattern/tests/__init__.py | 1 + .../tests/test_web_widget_pattern.py | 14 + .../README.rst | 91 ++++ .../__init__.py | 1 + .../__manifest__.py | 28 ++ .../demo/res_partner_views.xml | 14 + .../models/__init__.py | 1 + .../models/base.py | 28 ++ .../readme/CONTRIBUTORS.md | 1 + .../readme/DESCRIPTION.md | 1 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 431 +++++++++++++++++ .../static/src/autocomplete.xml | 14 + 33 files changed, 1373 insertions(+) create mode 120000 setup/web_widget_pattern/odoo/addons/web_widget_pattern create mode 100644 setup/web_widget_pattern/setup.py create mode 120000 setup/web_widget_pattern_partner_autocomplete/odoo/addons/web_widget_pattern_partner_autocomplete create mode 100644 setup/web_widget_pattern_partner_autocomplete/setup.py create mode 100644 web_widget_pattern/README.rst create mode 100644 web_widget_pattern/__init__.py create mode 100644 web_widget_pattern/__manifest__.py create mode 100644 web_widget_pattern/demo/res_partner_views.xml create mode 100644 web_widget_pattern/models/__init__.py create mode 100644 web_widget_pattern/models/base.py create mode 100644 web_widget_pattern/readme/CONTRIBUTORS.md create mode 100644 web_widget_pattern/readme/DESCRIPTION.md create mode 100644 web_widget_pattern/readme/ROADMAP.md create mode 100644 web_widget_pattern/readme/USAGE.md create mode 100644 web_widget_pattern/static/description/icon.png create mode 100644 web_widget_pattern/static/description/index.html create mode 100644 web_widget_pattern/static/src/autocomplete.esm.js create mode 100644 web_widget_pattern/static/src/autocomplete.xml create mode 100644 web_widget_pattern/static/src/char_field.esm.js create mode 100644 web_widget_pattern/static/src/char_field.xml create mode 100644 web_widget_pattern/tests/__init__.py create mode 100644 web_widget_pattern/tests/test_web_widget_pattern.py create mode 100644 web_widget_pattern_partner_autocomplete/README.rst create mode 100644 web_widget_pattern_partner_autocomplete/__init__.py create mode 100644 web_widget_pattern_partner_autocomplete/__manifest__.py create mode 100644 web_widget_pattern_partner_autocomplete/demo/res_partner_views.xml create mode 100644 web_widget_pattern_partner_autocomplete/models/__init__.py create mode 100644 web_widget_pattern_partner_autocomplete/models/base.py create mode 100644 web_widget_pattern_partner_autocomplete/readme/CONTRIBUTORS.md create mode 100644 web_widget_pattern_partner_autocomplete/readme/DESCRIPTION.md create mode 100644 web_widget_pattern_partner_autocomplete/static/description/icon.png create mode 100644 web_widget_pattern_partner_autocomplete/static/description/index.html create mode 100644 web_widget_pattern_partner_autocomplete/static/src/autocomplete.xml diff --git a/setup/web_widget_pattern/odoo/addons/web_widget_pattern b/setup/web_widget_pattern/odoo/addons/web_widget_pattern new file mode 120000 index 000000000000..82db748bb271 --- /dev/null +++ b/setup/web_widget_pattern/odoo/addons/web_widget_pattern @@ -0,0 +1 @@ +../../../../web_widget_pattern \ No newline at end of file diff --git a/setup/web_widget_pattern/setup.py b/setup/web_widget_pattern/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/web_widget_pattern/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/setup/web_widget_pattern_partner_autocomplete/odoo/addons/web_widget_pattern_partner_autocomplete b/setup/web_widget_pattern_partner_autocomplete/odoo/addons/web_widget_pattern_partner_autocomplete new file mode 120000 index 000000000000..0a19bfd8261c --- /dev/null +++ b/setup/web_widget_pattern_partner_autocomplete/odoo/addons/web_widget_pattern_partner_autocomplete @@ -0,0 +1 @@ +../../../../web_widget_pattern_partner_autocomplete \ No newline at end of file diff --git a/setup/web_widget_pattern_partner_autocomplete/setup.py b/setup/web_widget_pattern_partner_autocomplete/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/web_widget_pattern_partner_autocomplete/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/web_widget_pattern/README.rst b/web_widget_pattern/README.rst new file mode 100644 index 000000000000..414be2b4b141 --- /dev/null +++ b/web_widget_pattern/README.rst @@ -0,0 +1,118 @@ +============== +Input patterns +============== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:049fefbca58070d1187e57e952f2eac13aa3aa4f636ca6c84e2ec8e67f4cd125 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/16.0/web_widget_pattern + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_pattern + :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/web&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to use +`patterns `__ +in text fields in the backend. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +You can either define a pattern in your Python source code on a field as +in + +.. code:: python + + my_field = fields.Char(pattern='[0-9]') + +or on view level as in + +.. code:: xml + + + +Demo data adds a pattern on the street2 field on partner forms to only +allow numbers. + +Known issues / Roadmap +====================== + +- allow to optionally validate fields against its pattern server side +- support text, url, email, phone, ... fields +- support using a pattern from a computed field + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Hunki Enterprises BV + +Contributors +------------ + +- Holger Brunn + (https://hunki-enteprises.com) + +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. + +.. |maintainer-hbrunn| image:: https://github.com/hbrunn.png?size=40px + :target: https://github.com/hbrunn + :alt: hbrunn + +Current `maintainer `__: + +|maintainer-hbrunn| + +This module is part of the `OCA/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_widget_pattern/__init__.py b/web_widget_pattern/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/web_widget_pattern/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/web_widget_pattern/__manifest__.py b/web_widget_pattern/__manifest__.py new file mode 100644 index 000000000000..75324cec712b --- /dev/null +++ b/web_widget_pattern/__manifest__.py @@ -0,0 +1,27 @@ +# Copyright 2024 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +{ + "name": "Input patterns", + "summary": "Allows to define a regex for validating input on the backend", + "version": "16.0.1.0.0", + "development_status": "Alpha", + "category": "Technical", + "website": "https://github.com/OCA/web", + "author": "Hunki Enterprises BV, Odoo Community Association (OCA)", + "maintainers": ["hbrunn"], + "license": "AGPL-3", + "depends": [ + "web", + ], + "data": [], + "demo": [ + "demo/res_partner_views.xml", + ], + "assets": { + "web.assets_backend": [ + "web_widget_pattern/static/src/*.xml", + "web_widget_pattern/static/src/*.esm.js", + ], + }, +} diff --git a/web_widget_pattern/demo/res_partner_views.xml b/web_widget_pattern/demo/res_partner_views.xml new file mode 100644 index 000000000000..becb50e84a0b --- /dev/null +++ b/web_widget_pattern/demo/res_partner_views.xml @@ -0,0 +1,14 @@ + + + + + res.partner + + + + [0-9]+ + + + + diff --git a/web_widget_pattern/models/__init__.py b/web_widget_pattern/models/__init__.py new file mode 100644 index 000000000000..0e44449338cf --- /dev/null +++ b/web_widget_pattern/models/__init__.py @@ -0,0 +1 @@ +from . import base diff --git a/web_widget_pattern/models/base.py b/web_widget_pattern/models/base.py new file mode 100644 index 000000000000..9f98f7252395 --- /dev/null +++ b/web_widget_pattern/models/base.py @@ -0,0 +1,28 @@ +# Copyright 2024 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +from odoo import api, fields, models + + +class Base(models.AbstractModel): + _inherit = "base" + + def _valid_field_parameter(self, field, name): + return super()._valid_field_parameter(field, name) or ( + name == "pattern" and isinstance(field, fields.Char) + ) + + @api.model + def _get_view_field_attributes(self): + return super()._get_view_field_attributes() + ["pattern"] + + @api.model + def fields_get(self, allfields=None, attributes=None): + result = super().fields_get(allfields=allfields, attributes=attributes) + if attributes is None or "pattern" in attributes: + for field_name, description in result.items(): + field = self._fields.get(field_name) + pattern = getattr(field, "pattern", None) + if pattern is not None: + description["pattern"] = pattern + return result diff --git a/web_widget_pattern/readme/CONTRIBUTORS.md b/web_widget_pattern/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..f94e7fa07c4e --- /dev/null +++ b/web_widget_pattern/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Holger Brunn \ (https://hunki-enteprises.com) diff --git a/web_widget_pattern/readme/DESCRIPTION.md b/web_widget_pattern/readme/DESCRIPTION.md new file mode 100644 index 000000000000..8aadddc78649 --- /dev/null +++ b/web_widget_pattern/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module allows to use [patterns](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern) in text fields in the backend. diff --git a/web_widget_pattern/readme/ROADMAP.md b/web_widget_pattern/readme/ROADMAP.md new file mode 100644 index 000000000000..83f2056eb8fb --- /dev/null +++ b/web_widget_pattern/readme/ROADMAP.md @@ -0,0 +1,3 @@ +- allow to optionally validate fields against its pattern server side +- support text, url, email, phone, ... fields +- support using a pattern from a computed field diff --git a/web_widget_pattern/readme/USAGE.md b/web_widget_pattern/readme/USAGE.md new file mode 100644 index 000000000000..e3446b818064 --- /dev/null +++ b/web_widget_pattern/readme/USAGE.md @@ -0,0 +1,13 @@ +You can either define a pattern in your Python source code on a field as in + +```python + my_field = fields.Char(pattern='[0-9]') +``` + +or on view level as in + +```xml + +``` + +Demo data adds a pattern on the street2 field on partner forms to only allow numbers. diff --git a/web_widget_pattern/static/description/icon.png b/web_widget_pattern/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WB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vs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/web_widget_pattern/static/description/index.html b/web_widget_pattern/static/description/index.html new file mode 100644 index 000000000000..44594b930da5 --- /dev/null +++ b/web_widget_pattern/static/description/index.html @@ -0,0 +1,456 @@ + + + + + + +Input patterns + + + +
+

Input patterns

+ + +

Alpha License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

This module allows to use +patterns +in text fields in the backend.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Usage

+

You can either define a pattern in your Python source code on a field as +in

+
+my_field = fields.Char(pattern='[0-9]')
+
+

or on view level as in

+
+<field name="my_field" pattern="[0-9]" />
+
+

Demo data adds a pattern on the street2 field on partner forms to only +allow numbers.

+
+
+

Known issues / Roadmap

+
    +
  • allow to optionally validate fields against its pattern server side
  • +
  • support text, url, email, phone, … fields
  • +
  • support using a pattern from a computed field
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Hunki Enterprises BV
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

hbrunn

+

This module is part of the OCA/web project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/web_widget_pattern/static/src/autocomplete.esm.js b/web_widget_pattern/static/src/autocomplete.esm.js new file mode 100644 index 000000000000..f305b041bcff --- /dev/null +++ b/web_widget_pattern/static/src/autocomplete.esm.js @@ -0,0 +1,15 @@ +/** @odoo-module **/ + +import {AutoComplete} from "@web/core/autocomplete/autocomplete"; + +const _extractProps = AutoComplete.extractProps; +AutoComplete.extractProps = ({attrs, field}) => { + return Object.assign(_extractProps({attrs, field}), { + pattern: attrs.pattern || field.pattern, + }); +}; + +AutoComplete.props = { + ...AutoComplete.props, + pattern: {type: String, optional: true}, +}; diff --git a/web_widget_pattern/static/src/autocomplete.xml b/web_widget_pattern/static/src/autocomplete.xml new file mode 100644 index 000000000000..e6e7fd19e2de --- /dev/null +++ b/web_widget_pattern/static/src/autocomplete.xml @@ -0,0 +1,10 @@ + + + + + + props.pattern + + + + diff --git a/web_widget_pattern/static/src/char_field.esm.js b/web_widget_pattern/static/src/char_field.esm.js new file mode 100644 index 000000000000..a96fb4a425f8 --- /dev/null +++ b/web_widget_pattern/static/src/char_field.esm.js @@ -0,0 +1,37 @@ +/** @odoo-module **/ + +import {CharField} from "@web/views/fields/char/char_field"; +import {_lt} from "@web/core/l10n/translation"; +import {patch} from "@web/core/utils/patch"; +import {sprintf} from "@web/core/utils/strings"; + +patch(CharField.prototype, "web_widget_pattern", { + parse(value) { + const result = this._super(...arguments); + const pattern = this.props.pattern; + if (pattern) { + const regex = new RegExp(pattern, "v"); + const match = regex.exec(result); + if (!match || match[0] !== value) { + throw new Error( + _lt( + sprintf("%s does not match required pattern %s", value, pattern) + ) + ); + } + } + return result; + }, +}); + +const _extractProps = CharField.extractProps; +CharField.extractProps = ({attrs, field}) => { + return Object.assign(_extractProps({attrs, field}), { + pattern: attrs.pattern || field.pattern, + }); +}; + +CharField.props = { + ...CharField.props, + pattern: {type: String, optional: true}, +}; diff --git a/web_widget_pattern/static/src/char_field.xml b/web_widget_pattern/static/src/char_field.xml new file mode 100644 index 000000000000..865e14df76bc --- /dev/null +++ b/web_widget_pattern/static/src/char_field.xml @@ -0,0 +1,9 @@ + + + + + + props.pattern + + + diff --git a/web_widget_pattern/tests/__init__.py b/web_widget_pattern/tests/__init__.py new file mode 100644 index 000000000000..5dad2ba9da1b --- /dev/null +++ b/web_widget_pattern/tests/__init__.py @@ -0,0 +1 @@ +from . import test_web_widget_pattern diff --git a/web_widget_pattern/tests/test_web_widget_pattern.py b/web_widget_pattern/tests/test_web_widget_pattern.py new file mode 100644 index 000000000000..614cbfd47180 --- /dev/null +++ b/web_widget_pattern/tests/test_web_widget_pattern.py @@ -0,0 +1,14 @@ +# Copyright 2024 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +from odoo.tests.common import TransactionCase + + +class TestWebWidgetPattern(TransactionCase): + def test_fields_get(self): + ResPartner = self.env["res.partner"] + ResPartner._fields["street2"].pattern = "[0-9]" + field_description = ResPartner.get_views( + [(self.env.ref("base.view_partner_form").id, "form")] + )["models"]["res.partner"]["street2"] + self.assertEqual(field_description["pattern"], "[0-9]") diff --git a/web_widget_pattern_partner_autocomplete/README.rst b/web_widget_pattern_partner_autocomplete/README.rst new file mode 100644 index 000000000000..a7b123a3bf7e --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/README.rst @@ -0,0 +1,91 @@ +===================================== +Input patterns (partner_autocomplete) +===================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:00907115352fe5d549cd9ac7171614e6280a2779b071818bbc2dffceb5a95c4b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/16.0/web_widget_pattern_partner_autocomplete + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_pattern_partner_autocomplete + :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/web&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Glue module to make web_widget_pattern work on partner autocomplete +fields + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Hunki Enterprises BV + +Contributors +------------ + +- Holger Brunn + (https://hunki-enteprises.com) + +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. + +.. |maintainer-hbrunn| image:: https://github.com/hbrunn.png?size=40px + :target: https://github.com/hbrunn + :alt: hbrunn + +Current `maintainer `__: + +|maintainer-hbrunn| + +This module is part of the `OCA/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_widget_pattern_partner_autocomplete/__init__.py b/web_widget_pattern_partner_autocomplete/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/web_widget_pattern_partner_autocomplete/__manifest__.py b/web_widget_pattern_partner_autocomplete/__manifest__.py new file mode 100644 index 000000000000..d5248ec47b5f --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/__manifest__.py @@ -0,0 +1,28 @@ +# Copyright 2024 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +{ + "name": "Input patterns (partner_autocomplete)", + "summary": "Allows to define a regex for validating input on the backend", + "version": "16.0.1.0.0", + "development_status": "Alpha", + "category": "Technical", + "website": "https://github.com/OCA/web", + "author": "Hunki Enterprises BV, Odoo Community Association (OCA)", + "maintainers": ["hbrunn"], + "license": "AGPL-3", + "depends": [ + "web_widget_pattern", + "partner_autocomplete", + ], + "auto_install": True, + "data": [], + "demo": [ + "demo/res_partner_views.xml", + ], + "assets": { + "web.assets_backend": [ + "web_widget_pattern/static/src/*.xml", + ], + }, +} diff --git a/web_widget_pattern_partner_autocomplete/demo/res_partner_views.xml b/web_widget_pattern_partner_autocomplete/demo/res_partner_views.xml new file mode 100644 index 000000000000..7b100635ff48 --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/demo/res_partner_views.xml @@ -0,0 +1,14 @@ + + + + + res.partner + + + + [A-Z]{2}[0-9]+ + + + + diff --git a/web_widget_pattern_partner_autocomplete/models/__init__.py b/web_widget_pattern_partner_autocomplete/models/__init__.py new file mode 100644 index 000000000000..0e44449338cf --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/models/__init__.py @@ -0,0 +1 @@ +from . import base diff --git a/web_widget_pattern_partner_autocomplete/models/base.py b/web_widget_pattern_partner_autocomplete/models/base.py new file mode 100644 index 000000000000..9f98f7252395 --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/models/base.py @@ -0,0 +1,28 @@ +# Copyright 2024 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +from odoo import api, fields, models + + +class Base(models.AbstractModel): + _inherit = "base" + + def _valid_field_parameter(self, field, name): + return super()._valid_field_parameter(field, name) or ( + name == "pattern" and isinstance(field, fields.Char) + ) + + @api.model + def _get_view_field_attributes(self): + return super()._get_view_field_attributes() + ["pattern"] + + @api.model + def fields_get(self, allfields=None, attributes=None): + result = super().fields_get(allfields=allfields, attributes=attributes) + if attributes is None or "pattern" in attributes: + for field_name, description in result.items(): + field = self._fields.get(field_name) + pattern = getattr(field, "pattern", None) + if pattern is not None: + description["pattern"] = pattern + return result diff --git a/web_widget_pattern_partner_autocomplete/readme/CONTRIBUTORS.md b/web_widget_pattern_partner_autocomplete/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..f94e7fa07c4e --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Holger Brunn \ (https://hunki-enteprises.com) diff --git a/web_widget_pattern_partner_autocomplete/readme/DESCRIPTION.md b/web_widget_pattern_partner_autocomplete/readme/DESCRIPTION.md new file mode 100644 index 000000000000..e50d0aa6dd0c --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/readme/DESCRIPTION.md @@ -0,0 +1 @@ +Glue module to make web\_widget\_pattern work on partner autocomplete fields diff --git a/web_widget_pattern_partner_autocomplete/static/description/icon.png b/web_widget_pattern_partner_autocomplete/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zf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KLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/web_widget_pattern_partner_autocomplete/static/description/index.html b/web_widget_pattern_partner_autocomplete/static/description/index.html new file mode 100644 index 000000000000..3e58a2ad62e3 --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/static/description/index.html @@ -0,0 +1,431 @@ + + + + + + +Input patterns (partner_autocomplete) + + + +
+

Input patterns (partner_autocomplete)

+ + +

Alpha License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

Glue module to make web_widget_pattern work on partner autocomplete +fields

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Hunki Enterprises BV
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

hbrunn

+

This module is part of the OCA/web project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/web_widget_pattern_partner_autocomplete/static/src/autocomplete.xml b/web_widget_pattern_partner_autocomplete/static/src/autocomplete.xml new file mode 100644 index 000000000000..3af382e0abee --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/static/src/autocomplete.xml @@ -0,0 +1,14 @@ + + + + + + props.pattern + + + + From 70efc5aedbc76f12760c3a9ae5b604803ca6ce55 Mon Sep 17 00:00:00 2001 From: hda Date: Thu, 16 May 2024 14:21:44 +0200 Subject: [PATCH 03/21] [FIX] web_field_tooltip: ir.model and ir.model.fields access if not admin --- .../security/ir_model_access.xml | 20 +++++++++++++++++++ .../views/ir_model_fields_tooltip.xml | 6 +++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/web_field_tooltip/security/ir_model_access.xml b/web_field_tooltip/security/ir_model_access.xml index df6dfbc0f792..d9c36df9899b 100644 --- a/web_field_tooltip/security/ir_model_access.xml +++ b/web_field_tooltip/security/ir_model_access.xml @@ -23,4 +23,24 @@ + + ir.model access reader + + + + + + + + + + ir.model.fields access reader + + + + + + + + diff --git a/web_field_tooltip/views/ir_model_fields_tooltip.xml b/web_field_tooltip/views/ir_model_fields_tooltip.xml index ffa37fbf7f01..892d98391184 100644 --- a/web_field_tooltip/views/ir_model_fields_tooltip.xml +++ b/web_field_tooltip/views/ir_model_fields_tooltip.xml @@ -18,10 +18,14 @@ - + From 5aead72bedb079c4a6200169bd0952af18de5976 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Sat, 18 May 2024 17:47:11 +0000 Subject: [PATCH 04/21] [UPD] Update web_widget_pattern.pot --- .../i18n/web_widget_pattern.pot | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web_widget_pattern/i18n/web_widget_pattern.pot diff --git a/web_widget_pattern/i18n/web_widget_pattern.pot b/web_widget_pattern/i18n/web_widget_pattern.pot new file mode 100644 index 000000000000..d82ead953139 --- /dev/null +++ b/web_widget_pattern/i18n/web_widget_pattern.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_widget_pattern +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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: web_widget_pattern +#: model:ir.model,name:web_widget_pattern.model_base +msgid "Base" +msgstr "" From 8a7aacaabe5668ee4e4a7d3c38776ba6583e24fe Mon Sep 17 00:00:00 2001 From: oca-ci Date: Sat, 18 May 2024 17:47:11 +0000 Subject: [PATCH 05/21] [UPD] Update web_widget_pattern_partner_autocomplete.pot --- ...eb_widget_pattern_partner_autocomplete.pot | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web_widget_pattern_partner_autocomplete/i18n/web_widget_pattern_partner_autocomplete.pot diff --git a/web_widget_pattern_partner_autocomplete/i18n/web_widget_pattern_partner_autocomplete.pot b/web_widget_pattern_partner_autocomplete/i18n/web_widget_pattern_partner_autocomplete.pot new file mode 100644 index 000000000000..032eb7c25e54 --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/i18n/web_widget_pattern_partner_autocomplete.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_widget_pattern_partner_autocomplete +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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: web_widget_pattern_partner_autocomplete +#: model:ir.model,name:web_widget_pattern_partner_autocomplete.model_base +msgid "Base" +msgstr "" From 0e1de5c2bd1bb7a466eb96471559138f5abcc002 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sat, 18 May 2024 17:51:24 +0000 Subject: [PATCH 06/21] [BOT] post-merge updates --- README.md | 2 ++ setup/_metapackage/VERSION.txt | 2 +- setup/_metapackage/setup.py | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76d5378099fc..9dd1f52dd909 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,8 @@ addon | version | maintainers | summary [web_widget_mpld3_chart](web_widget_mpld3_chart/) | 16.0.1.0.0 | [![JordiBForgeFlow](https://github.com/JordiBForgeFlow.png?size=30px)](https://github.com/JordiBForgeFlow) [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | This widget allows to display charts using MPLD3 library. [web_widget_numeric_step](web_widget_numeric_step/) | 16.0.1.1.3 | [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Web Widget Numeric Step [web_widget_open_tab](web_widget_open_tab/) | 16.0.2.0.0 | | Allow to open record from trees on new tab from tree views +[web_widget_pattern](web_widget_pattern/) | 16.0.1.0.0 | [![hbrunn](https://github.com/hbrunn.png?size=30px)](https://github.com/hbrunn) | Allows to define a regex for validating input on the backend +[web_widget_pattern_partner_autocomplete](web_widget_pattern_partner_autocomplete/) | 16.0.1.0.0 | [![hbrunn](https://github.com/hbrunn.png?size=30px)](https://github.com/hbrunn) | Allows to define a regex for validating input on the backend [web_widget_plotly_chart](web_widget_plotly_chart/) | 16.0.1.0.0 | [![robyf70](https://github.com/robyf70.png?size=30px)](https://github.com/robyf70) | Allow to draw plotly charts. [web_widget_x2many_2d_matrix](web_widget_x2many_2d_matrix/) | 16.0.1.1.3 | [![ChrisOForgeFlow](https://github.com/ChrisOForgeFlow.png?size=30px)](https://github.com/ChrisOForgeFlow) | Show list fields as a matrix diff --git a/setup/_metapackage/VERSION.txt b/setup/_metapackage/VERSION.txt index e26153f2cbd2..979de9b9ce25 100644 --- a/setup/_metapackage/VERSION.txt +++ b/setup/_metapackage/VERSION.txt @@ -1 +1 @@ -16.0.20240415.1 \ No newline at end of file +16.0.20240518.0 \ No newline at end of file diff --git a/setup/_metapackage/setup.py b/setup/_metapackage/setup.py index 1a71ceeb3699..b2f15042cf2d 100644 --- a/setup/_metapackage/setup.py +++ b/setup/_metapackage/setup.py @@ -58,6 +58,8 @@ 'odoo-addon-web_widget_mpld3_chart>=16.0dev,<16.1dev', 'odoo-addon-web_widget_numeric_step>=16.0dev,<16.1dev', 'odoo-addon-web_widget_open_tab>=16.0dev,<16.1dev', + 'odoo-addon-web_widget_pattern>=16.0dev,<16.1dev', + 'odoo-addon-web_widget_pattern_partner_autocomplete>=16.0dev,<16.1dev', 'odoo-addon-web_widget_plotly_chart>=16.0dev,<16.1dev', 'odoo-addon-web_widget_x2many_2d_matrix>=16.0dev,<16.1dev', ], From aa0d32aff2f7b4b580dc4051bbb429ed2cce36f1 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sat, 18 May 2024 18:15:19 +0000 Subject: [PATCH 07/21] [BOT] post-merge updates --- README.md | 2 +- web_field_tooltip/README.rst | 2 +- web_field_tooltip/__manifest__.py | 2 +- web_field_tooltip/static/description/index.html | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9dd1f52dd909..9cbfef3e7ba3 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ addon | version | maintainers | summary [web_domain_field](web_domain_field/) | 16.0.1.0.1 | | Use computed field as domain [web_environment_ribbon](web_environment_ribbon/) | 16.0.1.0.0 | | Web Environment Ribbon [web_field_numeric_formatting](web_field_numeric_formatting/) | 16.0.1.0.0 | | Allow to render float and integer fields without thousands separator -[web_field_tooltip](web_field_tooltip/) | 16.0.1.0.0 | | Displays customizable tooltips for fields +[web_field_tooltip](web_field_tooltip/) | 16.0.1.1.0 | | Displays customizable tooltips for fields [web_group_expand](web_group_expand/) | 16.0.1.0.0 | | Group Expand Buttons [web_help](web_help/) | 16.0.2.0.0 | | Help Framework [web_hide_field_with_key](web_hide_field_with_key/) | 16.0.1.0.1 | [![franzpoize](https://github.com/franzpoize.png?size=30px)](https://github.com/franzpoize) | Hide fields for models diff --git a/web_field_tooltip/README.rst b/web_field_tooltip/README.rst index 2a94e2111db5..b7824d4982ee 100644 --- a/web_field_tooltip/README.rst +++ b/web_field_tooltip/README.rst @@ -7,7 +7,7 @@ Web Field Tooltip !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:6a4fafacb03368529d861e303732dce4c182ee511090cb4fd9ca04d67347bae0 + !! source digest: sha256:8bed9817234b31b15cec1799f3a9608a3974db3a8263995e3e9e3605c546a14d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/web_field_tooltip/__manifest__.py b/web_field_tooltip/__manifest__.py index 93fc08581c5f..f017b1a9bcf7 100644 --- a/web_field_tooltip/__manifest__.py +++ b/web_field_tooltip/__manifest__.py @@ -6,7 +6,7 @@ "name": "Web Field Tooltip", "summary": """ Displays customizable tooltips for fields""", - "version": "16.0.1.0.0", + "version": "16.0.1.1.0", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", diff --git a/web_field_tooltip/static/description/index.html b/web_field_tooltip/static/description/index.html index 31cf2edd5bfd..8bda6bfbf853 100644 --- a/web_field_tooltip/static/description/index.html +++ b/web_field_tooltip/static/description/index.html @@ -1,4 +1,3 @@ - @@ -367,7 +366,7 @@

Web Field Tooltip

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:6a4fafacb03368529d861e303732dce4c182ee511090cb4fd9ca04d67347bae0 +!! source digest: sha256:8bed9817234b31b15cec1799f3a9608a3974db3a8263995e3e9e3605c546a14d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module gives the possibility to add tooltips next to fields labels on any From 244c25df2f0db5adc727f968068317fbfa363df6 Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 20 May 2024 11:55:59 +0000 Subject: [PATCH 08/21] Added translation using Weblate (Italian) --- .../i18n/it.po | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 web_widget_pattern_partner_autocomplete/i18n/it.po diff --git a/web_widget_pattern_partner_autocomplete/i18n/it.po b/web_widget_pattern_partner_autocomplete/i18n/it.po new file mode 100644 index 000000000000..42282094917d --- /dev/null +++ b/web_widget_pattern_partner_autocomplete/i18n/it.po @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_widget_pattern_partner_autocomplete +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\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: web_widget_pattern_partner_autocomplete +#: model:ir.model,name:web_widget_pattern_partner_autocomplete.model_base +msgid "Base" +msgstr "" From 09ba514c5583d01bbfb155b729ad5a0a8d161021 Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 20 May 2024 11:56:15 +0000 Subject: [PATCH 09/21] Added translation using Weblate (Italian) --- web_widget_pattern/i18n/it.po | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 web_widget_pattern/i18n/it.po diff --git a/web_widget_pattern/i18n/it.po b/web_widget_pattern/i18n/it.po new file mode 100644 index 000000000000..29a6ea02287a --- /dev/null +++ b/web_widget_pattern/i18n/it.po @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_widget_pattern +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\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: web_widget_pattern +#: model:ir.model,name:web_widget_pattern.model_base +msgid "Base" +msgstr "" From 3a5b1fbbedefec444b8168ba05d7bbef78c9662c Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 20 May 2024 11:16:54 +0000 Subject: [PATCH 10/21] Translated using Weblate (Italian) Currently translated at 100.0% (6 of 6 strings) Translation: web-16.0/web-16.0-web_widget_open_tab Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_open_tab/it/ --- web_widget_open_tab/i18n/it.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_widget_open_tab/i18n/it.po b/web_widget_open_tab/i18n/it.po index cdb3b381d630..f748660ab977 100644 --- a/web_widget_open_tab/i18n/it.po +++ b/web_widget_open_tab/i18n/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2023-11-27 11:34+0000\n" +"PO-Revision-Date: 2024-05-20 13:38+0000\n" "Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" @@ -24,7 +24,7 @@ msgstr "Aggiungi campo apri linguetta" #. module: web_widget_open_tab #: model:ir.model.fields,help:web_widget_open_tab.field_ir_model__add_open_tab_field msgid "Adds open-tab field in list views." -msgstr "Aggiunge campo apri linguetTa nella viste elenco." +msgstr "Aggiunge campo apri linguetta nella viste elenco." #. module: web_widget_open_tab #: model:ir.model,name:web_widget_open_tab.model_base From f14963723405a1c9581ed14c5218c419ca754158 Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 20 May 2024 12:04:40 +0000 Subject: [PATCH 11/21] Translated using Weblate (Italian) Currently translated at 100.0% (1 of 1 strings) Translation: web-16.0/web-16.0-web_widget_pattern_partner_autocomplete Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_pattern_partner_autocomplete/it/ --- web_widget_pattern_partner_autocomplete/i18n/it.po | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web_widget_pattern_partner_autocomplete/i18n/it.po b/web_widget_pattern_partner_autocomplete/i18n/it.po index 42282094917d..1a49ee507bb0 100644 --- a/web_widget_pattern_partner_autocomplete/i18n/it.po +++ b/web_widget_pattern_partner_autocomplete/i18n/it.po @@ -6,15 +6,17 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-05-20 13:38+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\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: web_widget_pattern_partner_autocomplete #: model:ir.model,name:web_widget_pattern_partner_autocomplete.model_base msgid "Base" -msgstr "" +msgstr "Base" From c6ed435003b95951ee9b56f3b33e7d6966b0f0fa Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 20 May 2024 11:57:04 +0000 Subject: [PATCH 12/21] Translated using Weblate (Italian) Currently translated at 100.0% (1 of 1 strings) Translation: web-16.0/web-16.0-web_widget_pattern Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_pattern/it/ --- web_widget_pattern/i18n/it.po | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web_widget_pattern/i18n/it.po b/web_widget_pattern/i18n/it.po index 29a6ea02287a..05893cedbe63 100644 --- a/web_widget_pattern/i18n/it.po +++ b/web_widget_pattern/i18n/it.po @@ -6,15 +6,17 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-05-20 13:38+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\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: web_widget_pattern #: model:ir.model,name:web_widget_pattern.model_base msgid "Base" -msgstr "" +msgstr "Base" From 67bcf0959f0f9b741a5d952c2d447b9f4b3b9c68 Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Tue, 21 May 2024 00:32:02 +0000 Subject: [PATCH 13/21] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (2 of 2 strings) Translation: web-16.0/web-16.0-web_refresher Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_refresher/pt_BR/ --- web_refresher/i18n/pt_BR.po | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/web_refresher/i18n/pt_BR.po b/web_refresher/i18n/pt_BR.po index 8fe58e4993e0..c31147542c27 100644 --- a/web_refresher/i18n/pt_BR.po +++ b/web_refresher/i18n/pt_BR.po @@ -1,13 +1,30 @@ +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-05-21 03:07+0000\n" +"PO-Revision-Date: 2024-05-21 03:07+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: LANGUAGE \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: ENCODING\n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.17\n" + #. module: web_refresher #. odoo-javascript #: code:addons/web_refresher/static/src/xml/refresher.xml:0 #, python-format msgid "Refresh" -msgstr "" +msgstr "Atualizar" #. module: web_refresher #. odoo-javascript #: code:addons/web_refresher/static/src/xml/refresher.xml:0 #, python-format msgid "Refresher" -msgstr "" +msgstr "Atualização" From 5c425badd13fdc565a6ae04902c23d2fb7f54708 Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Tue, 21 May 2024 00:30:00 +0000 Subject: [PATCH 14/21] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (19 of 19 strings) Translation: web-16.0/web-16.0-web_notify Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify/pt_BR/ --- web_notify/i18n/pt_BR.po | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web_notify/i18n/pt_BR.po b/web_notify/i18n/pt_BR.po index d015a880c010..e9b212144872 100644 --- a/web_notify/i18n/pt_BR.po +++ b/web_notify/i18n/pt_BR.po @@ -9,10 +9,11 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-06-22 08:27+0000\n" -"PO-Revision-Date: 2023-11-09 13:36+0000\n" -"Last-Translator: Adriano Prado \n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" -"teams/23907/pt_BR/)\n" +"PO-Revision-Date: 2024-05-21 03:08+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -71,7 +72,7 @@ msgstr "Notificar o nome do canal de alerta" #: code:addons/web_notify/static/src/js/services/notification_services.esm.js:0 #, python-format msgid "Open" -msgstr "" +msgstr "Aberto" #. module: web_notify #. odoo-python From 141ce89d359aa69a0190276753a4b4c37ee5fcc7 Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Tue, 21 May 2024 00:32:32 +0000 Subject: [PATCH 15/21] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (1 of 1 strings) Translation: web-16.0/web-16.0-web_widget_x2many_2d_matrix Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_x2many_2d_matrix/pt_BR/ --- web_widget_x2many_2d_matrix/i18n/pt_BR.po | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web_widget_x2many_2d_matrix/i18n/pt_BR.po b/web_widget_x2many_2d_matrix/i18n/pt_BR.po index 67be4e335815..1bd56f08b5f0 100644 --- a/web_widget_x2many_2d_matrix/i18n/pt_BR.po +++ b/web_widget_x2many_2d_matrix/i18n/pt_BR.po @@ -8,8 +8,9 @@ msgstr "" "Project-Id-Version: web (8.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-03-11 02:18+0000\n" -"PO-Revision-Date: 2019-09-03 01:23+0000\n" -"Last-Translator: Rodrigo Macedo \n" +"PO-Revision-Date: 2024-05-21 03:08+0000\n" +"Last-Translator: Rodrigo Macedo \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-web-8-0/" "language/pt_BR/)\n" "Language: pt_BR\n" @@ -17,14 +18,14 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.8\n" +"X-Generator: Weblate 4.17\n" #. module: web_widget_x2many_2d_matrix #. odoo-javascript #: code:addons/web_widget_x2many_2d_matrix/static/src/components/x2many_2d_matrix_renderer/x2many_2d_matrix_renderer.xml:0 #, python-format msgid "Nothing to display." -msgstr "" +msgstr "Nada a exibir." #, python-format #~ msgid "Sorry no matrix data to display." From 173138fccdbcb378ca82160b98075de1d05a34e4 Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Tue, 21 May 2024 00:30:46 +0000 Subject: [PATCH 16/21] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (20 of 20 strings) Translation: web-16.0/web-16.0-web_pwa_oca Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_pwa_oca/pt_BR/ --- web_pwa_oca/i18n/pt_BR.po | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web_pwa_oca/i18n/pt_BR.po b/web_pwa_oca/i18n/pt_BR.po index 6b50c3b1ece1..a3f822afbe7c 100644 --- a/web_pwa_oca/i18n/pt_BR.po +++ b/web_pwa_oca/i18n/pt_BR.po @@ -6,20 +6,21 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2022-02-01 20:33+0000\n" -"Last-Translator: Rodrigo Macedo \n" +"PO-Revision-Date: 2024-05-21 03:08+0000\n" +"Last-Translator: Rodrigo Macedo \n" "Language-Team: none\n" "Language: pt_BR\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.3.2\n" +"X-Generator: Weblate 4.17\n" #. module: web_pwa_oca #: model_terms:ir.ui.view,arch_db:web_pwa_oca.res_config_settings_view_form msgid "" -msgstr "" +msgstr "" #. module: web_pwa_oca #: model:ir.model.fields,field_description:web_pwa_oca.field_res_config_settings__pwa_background_color From 6354d68c1e891720884a54183fb6129ae0f12fe5 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 21 May 2024 17:38:17 +0000 Subject: [PATCH 17/21] [BOT] post-merge updates --- README.md | 2 +- web_timeline/README.rst | 2 +- web_timeline/__manifest__.py | 2 +- web_timeline/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9cbfef3e7ba3..82b249eb37de 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ addon | version | maintainers | summary [web_send_message_popup](web_send_message_popup/) | 16.0.1.0.0 | | Web Send Message as Popup [web_sheet_full_width](web_sheet_full_width/) | 16.0.1.0.0 | | Use the whole available screen width when displaying sheets [web_theme_classic](web_theme_classic/) | 16.0.1.0.2 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Contrasted style on fields to improve the UI. -[web_timeline](web_timeline/) | 16.0.1.1.1 | [![tarteo](https://github.com/tarteo.png?size=30px)](https://github.com/tarteo) | Interactive visualization chart to show events in time +[web_timeline](web_timeline/) | 16.0.1.1.2 | [![tarteo](https://github.com/tarteo.png?size=30px)](https://github.com/tarteo) | Interactive visualization chart to show events in time [web_touchscreen](web_touchscreen/) | 16.0.1.0.1 | [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) [![rafaelbn](https://github.com/rafaelbn.png?size=30px)](https://github.com/rafaelbn) | UX improvements for touch screens [web_tree_duplicate](web_tree_duplicate/) | 16.0.1.0.1 | [![tarteo](https://github.com/tarteo.png?size=30px)](https://github.com/tarteo) | Duplicate records directly from the tree view. [web_tree_many2one_clickable](web_tree_many2one_clickable/) | 16.0.1.0.0 | | Open the linked resource when clicking on their name diff --git a/web_timeline/README.rst b/web_timeline/README.rst index c3f6d0159ab9..285516b268eb 100644 --- a/web_timeline/README.rst +++ b/web_timeline/README.rst @@ -7,7 +7,7 @@ Web timeline !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a85ee9636f4a2040dc7f8c7619f8390c505e3c4df95c49f55a3a86240bdc90d7 + !! source digest: sha256:c8c5da5c7631fad4d64b447787e487826952622707762815d1166990b565fcd0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/web_timeline/__manifest__.py b/web_timeline/__manifest__.py index 753e2f5905cd..4fb09bfdfa26 100644 --- a/web_timeline/__manifest__.py +++ b/web_timeline/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Web timeline", "summary": "Interactive visualization chart to show events in time", - "version": "16.0.1.1.1", + "version": "16.0.1.1.2", "development_status": "Production/Stable", "author": "ACSONE SA/NV, " "Tecnativa, " diff --git a/web_timeline/static/description/index.html b/web_timeline/static/description/index.html index 7281077d7854..6d389b88f30c 100644 --- a/web_timeline/static/description/index.html +++ b/web_timeline/static/description/index.html @@ -366,7 +366,7 @@

Web timeline

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

Production/Stable License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

Define a new view displaying events in an interactive visualization chart.

From 95de524101db6c462cf536ab48da757ba628839f Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Wed, 22 May 2024 00:31:17 +0000 Subject: [PATCH 18/21] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (4 of 4 strings) Translation: web-16.0/web-16.0-web_advanced_search Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_advanced_search/pt_BR/ --- web_advanced_search/i18n/pt_BR.po | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/web_advanced_search/i18n/pt_BR.po b/web_advanced_search/i18n/pt_BR.po index 1409e0369543..88e232741598 100644 --- a/web_advanced_search/i18n/pt_BR.po +++ b/web_advanced_search/i18n/pt_BR.po @@ -9,37 +9,38 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-01-03 03:49+0000\n" -"PO-Revision-Date: 2019-08-30 15:23+0000\n" -"Last-Translator: Rodrigo Macedo \n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" -"teams/23907/pt_BR/)\n" +"PO-Revision-Date: 2024-05-22 03:11+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" "Language: pt_BR\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 3.8\n" +"X-Generator: Weblate 4.17\n" #. module: web_advanced_search #. odoo-javascript #: code:addons/web_advanced_search/static/src/js/utils.esm.js:0 #, python-format msgid " and " -msgstr "" +msgstr " e " #. module: web_advanced_search #. odoo-javascript #: code:addons/web_advanced_search/static/src/js/utils.esm.js:0 #, python-format msgid " is not " -msgstr "" +msgstr " não é " #. module: web_advanced_search #. odoo-javascript #: code:addons/web_advanced_search/static/src/js/utils.esm.js:0 #, python-format msgid " or " -msgstr "" +msgstr " ou " #. module: web_advanced_search #. odoo-javascript From c7b154823e571c1c28de5921e935b6b67f906ec2 Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Wed, 22 May 2024 00:25:39 +0000 Subject: [PATCH 19/21] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (6 of 6 strings) Translation: web-16.0/web-16.0-web_widget_open_tab Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_widget_open_tab/pt_BR/ --- web_widget_open_tab/i18n/pt_BR.po | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/web_widget_open_tab/i18n/pt_BR.po b/web_widget_open_tab/i18n/pt_BR.po index 7929867698c9..6641f66e0b09 100644 --- a/web_widget_open_tab/i18n/pt_BR.po +++ b/web_widget_open_tab/i18n/pt_BR.po @@ -6,44 +6,47 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2024-05-22 03:13+0000\n" +"Last-Translator: Rodrigo Macedo \n" "Language-Team: none\n" "Language: pt_BR\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: web_widget_open_tab #: model:ir.model.fields,field_description:web_widget_open_tab.field_ir_model__add_open_tab_field msgid "Add Open Tab Field" -msgstr "" +msgstr "Adicionar campo de guia aberta" #. module: web_widget_open_tab #: model:ir.model.fields,help:web_widget_open_tab.field_ir_model__add_open_tab_field msgid "Adds open-tab field in list views." -msgstr "" +msgstr "Adiciona campo de aba aberta em visualizações de lista." #. module: web_widget_open_tab #: model:ir.model,name:web_widget_open_tab.model_base msgid "Base" -msgstr "" +msgstr "Base" #. module: web_widget_open_tab #. odoo-javascript #: code:addons/web_widget_open_tab/static/src/js/open_tab_widget.esm.js:0 #, python-format msgid "Click to open on new tab" -msgstr "" +msgstr "Clique para abrir em uma nova aba" #. module: web_widget_open_tab #: model:ir.model,name:web_widget_open_tab.model_ir_model msgid "Models" -msgstr "" +msgstr "Modelos" #. module: web_widget_open_tab #. odoo-javascript #: code:addons/web_widget_open_tab/static/src/js/open_tab_widget.esm.js:0 #, python-format msgid "Open Tab" -msgstr "" +msgstr "Abrir aba" From 4f758fca5acb81354ecb7d454a3906ab81b9742c Mon Sep 17 00:00:00 2001 From: pilarvargas-tecnativa Date: Wed, 22 May 2024 12:28:57 +0200 Subject: [PATCH 20/21] [FIX] web_responsive: Remove unnecessary media query Remove unnecessary media query as odoo has support for long titles. This style causes an error in the layout of the affected views. --- .../static/src/legacy/scss/web_responsive.scss | 9 --------- 1 file changed, 9 deletions(-) diff --git a/web_responsive/static/src/legacy/scss/web_responsive.scss b/web_responsive/static/src/legacy/scss/web_responsive.scss index c1192a24a550..a007e3a080f1 100644 --- a/web_responsive/static/src/legacy/scss/web_responsive.scss +++ b/web_responsive/static/src/legacy/scss/web_responsive.scss @@ -5,15 +5,6 @@ $chatter_zone_width: 35% !important; -// Support for long titles -@include media-breakpoint-up(md) { - .o_form_view .oe_button_box + .oe_title, - .o_form_view .oe_button_box + .oe_avatar + .oe_title { - /* Button-box has a hardcoded width of 132px per button and have three columns */ - width: calc(100% - 450px); - } -} - // Scroll all but top bar html .o_web_client .o_action_manager .o_action { @include media-breakpoint-down(sm) { From 62542a61632e7dfa4e25c2d17f462c1473620e43 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 22 May 2024 18:20:16 +0000 Subject: [PATCH 21/21] [BOT] post-merge updates --- README.md | 2 +- web_responsive/README.rst | 2 +- web_responsive/__manifest__.py | 2 +- web_responsive/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 82b249eb37de..b57fd028bbc8 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ addon | version | maintainers | summary [web_pwa_oca](web_pwa_oca/) | 16.0.1.0.0 | [![eLBati](https://github.com/eLBati.png?size=30px)](https://github.com/eLBati) | Make Odoo a PWA [web_refresher](web_refresher/) | 16.0.3.1.0 | | Web Refresher [web_remember_tree_column_width](web_remember_tree_column_width/) | 16.0.1.0.2 | [![frahikLV](https://github.com/frahikLV.png?size=30px)](https://github.com/frahikLV) [![luisg123v](https://github.com/luisg123v.png?size=30px)](https://github.com/luisg123v) [![cuongnmtm](https://github.com/cuongnmtm.png?size=30px)](https://github.com/cuongnmtm) | Remember the tree columns' widths across sessions. -[web_responsive](web_responsive/) | 16.0.1.2.8 | [![Tardo](https://github.com/Tardo.png?size=30px)](https://github.com/Tardo) [![SplashS](https://github.com/SplashS.png?size=30px)](https://github.com/SplashS) | Responsive web client, community-supported +[web_responsive](web_responsive/) | 16.0.1.2.9 | [![Tardo](https://github.com/Tardo.png?size=30px)](https://github.com/Tardo) [![SplashS](https://github.com/SplashS.png?size=30px)](https://github.com/SplashS) | Responsive web client, community-supported [web_save_discard_button](web_save_discard_button/) | 16.0.1.0.2 | [![synconics](https://github.com/synconics.png?size=30px)](https://github.com/synconics) | Save & Discard Buttons [web_search_with_and](web_search_with_and/) | 16.0.1.0.0 | | Use AND conditions on omnibar search [web_select_all_companies](web_select_all_companies/) | 16.0.1.0.1 | | Allows you to select all companies in one click. diff --git a/web_responsive/README.rst b/web_responsive/README.rst index f319adf98f44..eedc993e2bdc 100644 --- a/web_responsive/README.rst +++ b/web_responsive/README.rst @@ -7,7 +7,7 @@ Web Responsive !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:2298d7815c3cbbeabc5d229947ab1f84dd165feaedc6cd64343ed5ef4d1dae34 + !! source digest: sha256:49b883eb83cfbbb67148ec57e25af4ff3aa2707f4d6132f608ee917a40bbb6d4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/web_responsive/__manifest__.py b/web_responsive/__manifest__.py index 8cfcd7f23baf..1d30f689e50b 100644 --- a/web_responsive/__manifest__.py +++ b/web_responsive/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Web Responsive", "summary": "Responsive web client, community-supported", - "version": "16.0.1.2.8", + "version": "16.0.1.2.9", "category": "Website", "website": "https://github.com/OCA/web", "author": "LasLabs, Tecnativa, ITerra, Onestein, " diff --git a/web_responsive/static/description/index.html b/web_responsive/static/description/index.html index ef3bb94db258..63e62f8f74d1 100644 --- a/web_responsive/static/description/index.html +++ b/web_responsive/static/description/index.html @@ -366,7 +366,7 @@

Web Responsive

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:2298d7815c3cbbeabc5d229947ab1f84dd165feaedc6cd64343ed5ef4d1dae34 +!! source digest: sha256:49b883eb83cfbbb67148ec57e25af4ff3aa2707f4d6132f608ee917a40bbb6d4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Production/Stable License: LGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module adds responsiveness to web backend.