Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9744268
[NEW] product_tier_validation: New module to validate the product.
Chandresh-OSI May 20, 2021
4c687fa
[FIX] Fixed the conflicts.
Chandresh-OSI Jun 4, 2021
495d4fb
[ADD] Added test cases in the module.
Chandresh-OSI Jun 4, 2021
e2f9687
[FIX] product_tier_validation: correct maintainers manifest key
dreispt Sep 24, 2021
910797a
[UPD] Update product_tier_validation.pot
oca-travis Sep 24, 2021
5fe0335
[UPD] README.rst
OCA-git-bot Sep 24, 2021
241e81a
[UPD] Update product_tier_validation.pot
oca-travis Nov 9, 2021
9f90efa
Move default states on product_state and product_tier_validation to d…
Oct 27, 2021
54384f6
product_tier_validation 14.0.1.1.0
OCA-git-bot Nov 25, 2021
ec680f8
[14.0][IMP] product_tier_validation: Simplify flow
rousseldenis Nov 25, 2021
67939d3
[14.0][IMP] product_tier_validation: Change to Beta
rousseldenis Nov 29, 2021
8d8f6a2
[UPD] README.rst
OCA-git-bot Dec 17, 2021
1ef8a1a
product_tier_validation 14.0.2.0.0
OCA-git-bot Dec 17, 2021
ecf16d6
[FIX] product_tier_validation: error on change stage for validated pr…
dreispt Mar 3, 2022
b9e3795
product_tier_validation 14.0.2.0.1
OCA-git-bot Mar 5, 2022
162cf47
[UPD] Update product_tier_validation.pot
oca-travis Apr 22, 2022
41dd3c9
[UPD] README.rst
OCA-git-bot Sep 3, 2023
86a62f8
[UPD] Update product_tier_validation.pot
Oct 29, 2023
a3e1fe6
Added translation using Weblate (Italian)
mymage Nov 2, 2023
23090a9
Translated using Weblate (Italian)
mymage Nov 2, 2023
7aa46a5
Translated using Weblate (Italian)
mymage Dec 6, 2023
30ed71c
Translated using Weblate (Italian)
mymage Dec 14, 2023
22e5e00
Translated using Weblate (Italian)
mymage Dec 22, 2023
f761d60
Translated using Weblate (Italian)
mymage Dec 22, 2023
0c96c64
Translated using Weblate (Italian)
mymage Dec 24, 2023
bd710bd
[14.0][IMP] action for many reject and validate tier
Kev-Roche Jan 9, 2024
a7d9902
Added translation using Weblate (Spanish)
Ivorra78 Jan 13, 2024
2ebbf78
Translated using Weblate (Spanish)
Ivorra78 Jan 13, 2024
6cbaabf
[UPD] Update product_tier_validation.pot
Jan 30, 2024
f5f94c5
Update translation files
weblate Jan 30, 2024
f1fccd0
Translated using Weblate (Italian)
mymage Feb 5, 2024
58bdd1b
[UPD] Update product_tier_validation.pot
Mar 11, 2024
2a4f3b3
[BOT] post-merge updates
OCA-git-bot Mar 11, 2024
a2f5bc6
Update translation files
weblate Mar 11, 2024
0a92b0c
Translated using Weblate (Italian)
mymage Mar 18, 2024
ab89c11
Translated using Weblate (Spanish)
Ivorra78 Mar 23, 2024
00ae205
[IMP] product_tier_validation: pre-commit auto fixes
Ricardo-MC Feb 14, 2025
334c117
[MIG] product_tier_validation: Migration to version 18.0
Ricardo-MC Feb 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions product_tier_validation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
=======================
Product Tier Validation
=======================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/18.0/product_tier_validation
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_tier_validation
: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/product-attribute&target_branch=18.0
:alt: Try me on Runboat

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

Adds an approval workflow to Products. The default rule requires new
Product to be approved before they can be used.

For this, the new Product record is kept as "Archived" until it is
approved.

**Table of contents**

.. contents::
:local:

Installation
============

This module depends on ``base_tier_validation``. You can find it at
`OCA/server-ux <https://github.com/OCA/server-ux>`__

Usage
=====

A regular user creates a new Product and sends it for approval:

1. Create a Product triggering at least one "Tier Definition". Product
will be in In Development state and marked as Archived until
approved.
2. Click on *Request Validation* button.
3. In the *Reviews* section, at the bottom of the form, inspect the
pending reviews and their status.

The approver reviews Products to approve:

1. Now select the filter "Needs my Approval" from Product list view.
2. Open the Product form to approve. It will display a "This Records
needs to be validated" banner, with "Validate" and "Reject" options.
3. The approver can change the state to "Normal". This will
automatically unarchive the record and make it available to be used.

The Approve/Reject actions do not automatically change the State. This
could be a future improvement.

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

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

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

Credits
=======

Authors
-------

* Open Source Integrators

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

- `Open Source Integrators <https://opensourceintegrators.com>`__.

- Chandresh Thakkar <cthakkar@opensourceintegrators.com>
- Daniel Reis <dreis@opensourceintegrators.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-dreispt| image:: https://github.com/dreispt.png?size=40px
:target: https://github.com/dreispt
:alt: dreispt

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-dreispt|

This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_tier_validation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions product_tier_validation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2021 Open Source Integrators
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
19 changes: 19 additions & 0 deletions product_tier_validation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2021 Open Source Integrators
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Product Tier Validation",
"summary": "Support a tier validation process for Products",
"version": "18.0.1.0.0",
"website": "https://github.com/OCA/product-attribute",
"category": "Products",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"maintainers": ["dreispt"],
"development_status": "Beta",
"depends": ["product_state", "base_tier_validation"],
"data": [
"data/tier_definition.xml",
"views/product_template_view.xml",
],
}
13 changes: 13 additions & 0 deletions product_tier_validation/data/tier_definition.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<odoo noupdate="1">
<record id="product_tier_definition" model="tier.definition">
<field name="name">Product Validation</field>
<field name="model_id" ref="product.model_product_template" />
<field name="review_type">group</field>
<field name="reviewer_group_id" ref="base.group_user" />
<field name="definition_type">domain</field>
<field
name="definition_domain"
>["|",["active","=",True],["active","=",False]]</field>
<field name="active">False</field>
</record>
</odoo>
135 changes: 135 additions & 0 deletions product_tier_validation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_tier_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-23 10:35+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: product_tier_validation
#: model:ir.actions.server,name:product_tier_validation.action_accept_product_validations
msgid "Accept Validations"
msgstr "Aceptar Validaciones"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__can_review
msgid "Can Review"
msgstr "Puede Revisar"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__display_name
#: model:ir.model.fields,field_description:product_tier_validation.field_tier_definition__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__has_comment
msgid "Has Comment"
msgstr "Tiene Comentario"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__id
#: model:ir.model.fields,field_description:product_tier_validation.field_tier_definition__id
msgid "ID"
msgstr "ID"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template____last_update
#: model:ir.model.fields,field_description:product_tier_validation.field_tier_definition____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__need_validation
msgid "Need Validation"
msgstr "Necesita Validación"

#. module: product_tier_validation
#: model_terms:ir.ui.view,arch_db:product_tier_validation.product_form_tier_filter
msgid "Needs an Approval"
msgstr "Necesita una Aprobación"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__next_review
msgid "Next Review"
msgstr "Siguiente Revisión"

#. module: product_tier_validation
#: model:ir.model,name:product_tier_validation.model_product_template
msgid "Product Template"
msgstr "Plantilla del Producto"

#. module: product_tier_validation
#: model:tier.definition,name:product_tier_validation.product_tier_definition
msgid "Product Validation"
msgstr "Validación de Producto"

#. module: product_tier_validation
#: model_terms:ir.ui.view,arch_db:product_tier_validation.product_form_tier_filter
msgid "Product(s) to Approve"
msgstr "Producto(s) a Aprobar"

#. module: product_tier_validation
#: model:ir.actions.server,name:product_tier_validation.action_reject_product_validations
msgid "Reject Validations"
msgstr "Rechazar Validaciones"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__rejected
msgid "Rejected"
msgstr "Rechazado/a"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__rejected_message
msgid "Rejected Message"
msgstr "Mensaje Rechazado"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__reviewer_ids
msgid "Reviewers"
msgstr "Revisores"

#. module: product_tier_validation
#: model:ir.model,name:product_tier_validation.model_tier_definition
msgid "Tier Definition"
msgstr "Definición del Nivel"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__tier_validation_before_write
msgid "Tier Validation Before Write"
msgstr "Validación de Niveles Antes de la Escritura"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__to_validate_message
msgid "To Validate Message"
msgstr "Para Validar el Mensaje"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__validated
msgid "Validated"
msgstr "Validado"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__validated_message
msgid "Validated Message"
msgstr "Mensaje Validado"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__validation_status
msgid "Validation Status"
msgstr "Estado de Validación"

#. module: product_tier_validation
#: model:ir.model.fields,field_description:product_tier_validation.field_product_template__review_ids
msgid "Validations"
msgstr "Validaciones"
Loading
Loading