Skip to content

Commit 5725ea1

Browse files
committed
Merge PR #1028 into 18.0
Signed-off-by pedrobaeza
2 parents a463230 + a3cee52 commit 5725ea1

21 files changed

+1365
-0
lines changed
+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
============================
2+
Base Tier Validation Formula
3+
============================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:30cc4c107c35bd82290d5c45d91bed36c8ee05555a66524b8381fa67848c99ba
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Mature
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
20+
:target: https://github.com/OCA/server-ux/tree/18.0/base_tier_validation_formula
21+
:alt: OCA/server-ux
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_tier_validation_formula
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module includes the ability to define the tier definition domain
32+
and the tier reviewers using python code.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Usage
40+
=====
41+
42+
To define the domain, \* By python code choose the **Formula** option in
43+
the Definition field. \* By both domain and python code, choose the
44+
**Domain & Formula** option in the Definition field.
45+
46+
To define the reviewers by python code choose **Python Expression**
47+
option in the Validated by field.
48+
49+
Bug Tracker
50+
===========
51+
52+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
53+
In case of trouble, please check there if your issue has already been reported.
54+
If you spotted it first, help us to smash it by providing a detailed and welcomed
55+
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20base_tier_validation_formula%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
56+
57+
Do not contact contributors directly about support or help with technical issues.
58+
59+
Credits
60+
=======
61+
62+
Authors
63+
-------
64+
65+
* Creu Blanca
66+
67+
Contributors
68+
------------
69+
70+
- Enric Tobella <etobella@creublanca.es>
71+
72+
- Adrià Gil Sorribes <adria.gil@forgeflow.com>
73+
74+
- Pedro Gonzalez <pedro.gonzalez@pesol.es>
75+
76+
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
77+
78+
- `Trobz <https://trobz.com>`__:
79+
80+
- Hoang Diep <hoang@trobz.com>
81+
- Son Ho <sonhd@trobz.com>
82+
83+
Other credits
84+
-------------
85+
86+
The migration of this module from 15.0 to 16.0 was financially supported
87+
by Camptocamp
88+
89+
Maintainers
90+
-----------
91+
92+
This module is maintained by the OCA.
93+
94+
.. image:: https://odoo-community.org/logo.png
95+
:alt: Odoo Community Association
96+
:target: https://odoo-community.org
97+
98+
OCA, or the Odoo Community Association, is a nonprofit organization whose
99+
mission is to support the collaborative development of Odoo features and
100+
promote its widespread use.
101+
102+
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/18.0/base_tier_validation_formula>`_ project on GitHub.
103+
104+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2019 Creu Blanca
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Base Tier Validation Formula",
6+
"summary": """
7+
Formulas for Base tier validation""",
8+
"version": "18.0.1.0.0",
9+
"category": "Tools",
10+
"license": "AGPL-3",
11+
"development_status": "Mature",
12+
"author": "Creu Blanca,Odoo Community Association (OCA)",
13+
"website": "https://github.com/OCA/server-ux",
14+
"depends": ["base_tier_validation"],
15+
"data": ["views/tier_definition_view.xml"],
16+
"demo": [],
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_tier_validation_formula
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: base_tier_validation_formula
17+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__definition_type
18+
msgid "Definition"
19+
msgstr ""
20+
21+
#. module: base_tier_validation_formula
22+
#: model:ir.model.fields.selection,name:base_tier_validation_formula.selection__tier_definition__definition_type__domain_formula
23+
msgid "Domain & Formula"
24+
msgstr ""
25+
26+
#. module: base_tier_validation_formula
27+
#. odoo-python
28+
#: code:addons/base_tier_validation_formula/models/tier_review.py:0
29+
#: code:addons/base_tier_validation_formula/models/tier_validation.py:0
30+
#, python-format
31+
msgid ""
32+
"Error evaluating tier validation conditions.\n"
33+
" %s"
34+
msgstr ""
35+
36+
#. module: base_tier_validation_formula
37+
#: model:ir.model.fields.selection,name:base_tier_validation_formula.selection__tier_definition__definition_type__formula
38+
msgid "Formula"
39+
msgstr ""
40+
41+
#. module: base_tier_validation_formula
42+
#: model:ir.model.fields.selection,name:base_tier_validation_formula.selection__tier_definition__review_type__expression
43+
msgid "Python Expression"
44+
msgstr ""
45+
46+
#. module: base_tier_validation_formula
47+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__reviewer_expression
48+
msgid "Review Expression"
49+
msgstr ""
50+
51+
#. module: base_tier_validation_formula
52+
#. odoo-python
53+
#: code:addons/base_tier_validation_formula/models/tier_review.py:0
54+
#, python-format
55+
msgid "Reviewer python expression must return a res.users recordset."
56+
msgstr ""
57+
58+
#. module: base_tier_validation_formula
59+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_review__python_reviewer_ids
60+
msgid "Reviewers from Python expression"
61+
msgstr ""
62+
63+
#. module: base_tier_validation_formula
64+
#: model:ir.model,name:base_tier_validation_formula.model_tier_definition
65+
msgid "Tier Definition"
66+
msgstr ""
67+
68+
#. module: base_tier_validation_formula
69+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__python_code
70+
msgid "Tier Definition Expression"
71+
msgstr ""
72+
73+
#. module: base_tier_validation_formula
74+
#: model:ir.model,name:base_tier_validation_formula.model_tier_review
75+
msgid "Tier Review"
76+
msgstr ""
77+
78+
#. module: base_tier_validation_formula
79+
#: model:ir.model,name:base_tier_validation_formula.model_tier_validation
80+
msgid "Tier Validation (abstract)"
81+
msgstr ""
82+
83+
#. module: base_tier_validation_formula
84+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__review_type
85+
msgid "Validated by"
86+
msgstr ""
87+
88+
#. module: base_tier_validation_formula
89+
#: model:ir.model.fields,help:base_tier_validation_formula.field_tier_definition__reviewer_expression
90+
msgid ""
91+
"Write Python code that defines the reviewer. The result of executing the "
92+
"expression must be a res.users recordset."
93+
msgstr ""
94+
95+
#. module: base_tier_validation_formula
96+
#: model:ir.model.fields,help:base_tier_validation_formula.field_tier_definition__python_code
97+
msgid ""
98+
"Write Python code that defines when this tier confirmation will be needed. "
99+
"The result of executing the expresion must be a boolean."
100+
msgstr ""
+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_tier_validation_formula
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 13.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2021-03-16 11:46+0000\n"
10+
"Last-Translator: Ana Suárez <ana.suarez@qubiq.es>\n"
11+
"Language-Team: none\n"
12+
"Language: es\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: base_tier_validation_formula
20+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__definition_type
21+
msgid "Definition"
22+
msgstr "Definición"
23+
24+
#. module: base_tier_validation_formula
25+
#: model:ir.model.fields.selection,name:base_tier_validation_formula.selection__tier_definition__definition_type__domain_formula
26+
msgid "Domain & Formula"
27+
msgstr "Dominio & Fórmula"
28+
29+
#. module: base_tier_validation_formula
30+
#. odoo-python
31+
#: code:addons/base_tier_validation_formula/models/tier_review.py:0
32+
#: code:addons/base_tier_validation_formula/models/tier_validation.py:0
33+
#, python-format
34+
msgid ""
35+
"Error evaluating tier validation conditions.\n"
36+
" %s"
37+
msgstr ""
38+
"Error evaluando las condiciones de validación de nivel.\n"
39+
"%s"
40+
41+
#. module: base_tier_validation_formula
42+
#: model:ir.model.fields.selection,name:base_tier_validation_formula.selection__tier_definition__definition_type__formula
43+
msgid "Formula"
44+
msgstr "Fórmula"
45+
46+
#. module: base_tier_validation_formula
47+
#: model:ir.model.fields.selection,name:base_tier_validation_formula.selection__tier_definition__review_type__expression
48+
msgid "Python Expression"
49+
msgstr "Expresión Python"
50+
51+
#. module: base_tier_validation_formula
52+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__reviewer_expression
53+
msgid "Review Expression"
54+
msgstr "Expresión de Revisión"
55+
56+
#. module: base_tier_validation_formula
57+
#. odoo-python
58+
#: code:addons/base_tier_validation_formula/models/tier_review.py:0
59+
#, python-format
60+
msgid "Reviewer python expression must return a res.users recordset."
61+
msgstr ""
62+
"La expresión python del revisor debe retornar un conjunto de registros de "
63+
"res.users."
64+
65+
#. module: base_tier_validation_formula
66+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_review__python_reviewer_ids
67+
msgid "Reviewers from Python expression"
68+
msgstr "Revisores desde una expresión Python"
69+
70+
#. module: base_tier_validation_formula
71+
#: model:ir.model,name:base_tier_validation_formula.model_tier_definition
72+
msgid "Tier Definition"
73+
msgstr "Definición de Nivel"
74+
75+
#. module: base_tier_validation_formula
76+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__python_code
77+
msgid "Tier Definition Expression"
78+
msgstr "Expresión de Definición de Nivel"
79+
80+
#. module: base_tier_validation_formula
81+
#: model:ir.model,name:base_tier_validation_formula.model_tier_review
82+
msgid "Tier Review"
83+
msgstr "Definición de nivel"
84+
85+
#. module: base_tier_validation_formula
86+
#: model:ir.model,name:base_tier_validation_formula.model_tier_validation
87+
msgid "Tier Validation (abstract)"
88+
msgstr "Validación de Nivel (abstracto)"
89+
90+
#. module: base_tier_validation_formula
91+
#: model:ir.model.fields,field_description:base_tier_validation_formula.field_tier_definition__review_type
92+
msgid "Validated by"
93+
msgstr "Validado por"
94+
95+
#. module: base_tier_validation_formula
96+
#: model:ir.model.fields,help:base_tier_validation_formula.field_tier_definition__reviewer_expression
97+
msgid ""
98+
"Write Python code that defines the reviewer. The result of executing the "
99+
"expression must be a res.users recordset."
100+
msgstr ""
101+
"Escribe código Python que defina al revisor. El resultado de ejecutar la "
102+
"expresión debe devolver un conjunto de registros de res.users."
103+
104+
#. module: base_tier_validation_formula
105+
#: model:ir.model.fields,help:base_tier_validation_formula.field_tier_definition__python_code
106+
msgid ""
107+
"Write Python code that defines when this tier confirmation will be needed. "
108+
"The result of executing the expresion must be a boolean."
109+
msgstr ""
110+
"Escribe código Python que defina si la confirmación de nivel es necesaria. "
111+
"El resultado de ejecutar la expresión debe ser un booleano."
112+
113+
#~ msgid "Any user in a specific group."
114+
#~ msgstr "Cualquier usuario de un grupo específico."
115+
116+
#~ msgid "Domain"
117+
#~ msgstr "Dominio"
118+
119+
#~ msgid "Specific user"
120+
#~ msgstr "Usuario específico"

0 commit comments

Comments
 (0)