Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
406870b
[11.0][ADD] Module purchase_request_tier_validation
AdriaGForgeFlow Feb 15, 2019
3e14a13
Added translation using Weblate (Spanish)
LoisRForgeFlow May 23, 2019
85cbb9e
Added translation using Weblate (Dutch)
May 29, 2019
6a810e8
[11.0][FIX] purchase_request_tier_validation
AdriaGForgeFlow Jun 13, 2019
dae76e3
[MIG] purchase_request_tier_validation: Migration to 12.0
HviorForgeFlow Jul 19, 2019
c05daa0
Added translation using Weblate (Spanish (Ecuador))
ovnicraft Nov 16, 2019
dee2e6a
[IMP] purchase_request_tier_validation: black, isort
HviorForgeFlow Jan 16, 2020
23d45dd
[MIG] purchase_request_tier_validation: Migration to 13.0
HviorForgeFlow Jan 16, 2020
8ffdba1
Added translation using Weblate (Chinese (Simplified))
dong-z Mar 23, 2020
686f672
Added translation using Weblate (Italian)
alessandro-fiorino May 29, 2020
9d62a26
[MIG] purchase_request_tier_validation: Migration to 14.0
SurachetS Nov 17, 2020
bd5f6ec
[14.0][FIX] purchase_request_tier_validation, manual_config = False
kittiu Dec 16, 2020
2fc176c
[14.0][FIX] purchase_request_tier_validation, cannot approve after va…
kittiu Jan 12, 2022
5b328d1
[MIG] purchase_request_tier_validation: Migration to 15.0
JasminSForgeFlow Feb 7, 2022
725d74f
[MIG] purchase_request_tier_validation: Migration to 16.0
Dec 6, 2022
1a32f16
Translated using Weblate (Italian)
mymage May 29, 2023
6cb7993
Translated using Weblate (Spanish)
Ivorra78 Aug 21, 2023
ae8edcd
Translated using Weblate (Italian)
mymage Dec 22, 2023
993f547
[IMP] purchase_request_tier_validation: pre-commit stuff
celm1990 Apr 17, 2024
beb6666
[MIG] purchase_request_tier_validation: Migration to 17.0
celm1990 Apr 17, 2024
4d77bfa
Translated using Weblate (Italian)
mymage Jun 18, 2024
2a58382
[MIG] purchase_request_tier_validation: Migration to 18.0
Quan-nhm Nov 4, 2024
fc71e0d
[MIG] purchase_request_tier_validation: Migration to 18.0
Quan-nhm Nov 4, 2024
db3e761
[UPD] Update purchase_request_tier_validation.pot
Feb 7, 2025
ad22174
[BOT] post-merge updates
OCA-git-bot Feb 7, 2025
48a73cb
[IMP] purchase_request_tier_validation: Leave the company_id field em…
victoralmau Mar 5, 2025
c56f011
[IMP] purchase_request_tier_validation: Change tier.definition data t…
victoralmau Mar 11, 2025
ee5b89e
[BOT] post-merge updates
OCA-git-bot Mar 14, 2025
c62e83a
[IMP] purchase_request_tier_validation: Hide Confirm button if the va…
victoralmau Mar 10, 2025
19e00e7
[BOT] post-merge updates
OCA-git-bot Mar 19, 2025
83f6c4e
Added translation using Weblate (Turkish)
bo-eska Apr 18, 2025
bf260b4
Translated using Weblate (Turkish)
bo-eska Apr 18, 2025
fc31266
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jun 24, 2025
dde2c2d
Translated using Weblate (Turkish)
bo-eska Oct 30, 2025
b272d78
[IMP] purchase_request_tier_validation: pre-commit auto fixes
Yusuke1998 Jan 30, 2026
617bf87
[MIG] purchase_request_tier_validation: Migration to 19.0
Yusuke1998 Jan 30, 2026
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
128 changes: 128 additions & 0 deletions purchase_request_tier_validation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================================
Purchase Request Tier Validation
================================

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

.. |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/license-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%2Ftier--validation-lightgray.png?logo=github
:target: https://github.com/OCA/tier-validation/tree/19.0/purchase_request_tier_validation
:alt: OCA/tier-validation
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/tier-validation-19-0/tier-validation-19-0-purchase_request_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/tier-validation&target_branch=19.0
:alt: Try me on Runboat

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

This module extends the functionality of Purchase Requests to support a
tier validation process.

**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>`__

Configuration
=============

A default tier is created allowing Purchase Request Manager to approve
Purchase Requests.

In addition, you may want to add more tiers, so:

1. Go to *Settings > Technical > Tier Validations > Tier Definition*.
2. Create as many tiers as you want for Purchase Order model.

Usage
=====

To use this module, you need to:

1. Create a Purchase Request triggering at least one "Tier Definition".
2. Click on *Request Validation* button.
3. Under the tab *Reviews* have a look to pending reviews and their
statuses.
4. Once all reviews are validated button to *Confirm* will be shown.

Additional features:

- You can filter the Purchase Request requesting your review through the
filter *Needs my Review*.
- User with rights to confirm the Purchase Request (validate all tiers
that would be generated) can directly do the operation, this is, there
is no need for her/him to request a validation.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/tier-validation/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/tier-validation/issues/new?body=module:%20purchase_request_tier_validation%0Aversion:%2019.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
-------

* ForgeFlow

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

- Adria Gil <adria.gil@forgeflow.com>
- `Komit <https://komit-consulting.com>`__:

- Quan.nhm <quan.nhm@komit-consulting.com>

Other credits
-------------

Images
~~~~~~

- Enric Tobella (logo)

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.

This module is part of the `OCA/tier-validation <https://github.com/OCA/tier-validation/tree/19.0/purchase_request_tier_validation>`_ project on GitHub.

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

from . import models
21 changes: 21 additions & 0 deletions purchase_request_tier_validation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2019-2020 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Purchase Request Tier Validation",
"summary": "Extends the functionality of Purchase Requests to "
"support a tier validation process.",
"version": "19.0.1.1.1",
"category": "Purchase Management",
"website": "https://github.com/OCA/tier-validation",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["purchase_request", "base_tier_validation"],
"data": [
"views/purchase_request_view.xml",
],
"demo": [
"demo/tier_definition.xml",
],
}
17 changes: 17 additions & 0 deletions purchase_request_tier_validation/demo/tier_definition.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2019-2020 ForgeFlow S.L.
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record id="purchase_request_default_tier_definition" model="tier.definition">
<field name="model_id" ref="model_purchase_request" />
<field name="definition_type">domain</field>
<field name="definition_domain" />
<field name="review_type">group</field>
<field
name="reviewer_group_id"
ref='purchase_request.group_purchase_request_manager'
/>
<field name="company_id" />
<!-- no company set by default -->
</record>
</odoo>
170 changes: 170 additions & 0 deletions purchase_request_tier_validation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_request_tier_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-06 21:37+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: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__can_review
msgid "Can Review"
msgstr "Puede Revisar"

#. module: purchase_request_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_request_tier_validation.view_purchase_request_form_inherit_tier
msgid "Confirm"
msgstr "Confirmar"

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

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__hide_reviews
msgid "Hide Reviews"
msgstr ""

#. module: purchase_request_tier_validation
#: model:ir.model.fields,help:purchase_request_tier_validation.field_purchase_request__has_comment
msgid "If set, Allow the reviewer to leave a comment on the review."
msgstr ""

#. module: purchase_request_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_request_tier_validation.view_purchase_request_filter
msgid "My Purchases to review"
msgstr "Mis Compras a revisar"

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__need_validation
msgid "Need Validation"
msgstr "Necesita validación"

#. module: purchase_request_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_request_tier_validation.view_purchase_request_filter
msgid "Need actions"
msgstr "Acción necesaria"

#. module: purchase_request_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_request_tier_validation.view_purchase_request_filter
msgid "Needs my Review"
msgstr "Necesita mi revisión"

#. module: purchase_request_tier_validation
#: model:tier.definition,name:purchase_request_tier_validation.purchase_request_default_tier_definition
msgid "New Tier Validation"
msgstr "Nueva Validación de Nivel"

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__next_review
msgid "Next Review"
msgstr "Siguiente revisión"

#. module: purchase_request_tier_validation
#: model:ir.model,name:purchase_request_tier_validation.model_purchase_request
msgid "Purchase Request"
msgstr "Solicitud de Compra"

#. module: purchase_request_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_request_tier_validation.view_purchase_request_filter
msgid "Purchase Requests validated and ready to be confirmed"
msgstr "Solicitudes de compra validadas y preparadas para ser confirmadas"

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

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

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__reviewer_ids
msgid "Reviewers"
msgstr "Revisores"

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

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__to_validate_message
msgid "To Validate Message"
msgstr "Para validar el mensaje"

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__validated
#: model_terms:ir.ui.view,arch_db:purchase_request_tier_validation.view_purchase_request_filter
msgid "Validated"
msgstr "Validada"

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

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__validation_status
msgid "Validation Status"
msgstr "Estado de la Validación"

#. module: purchase_request_tier_validation
#: model:ir.model.fields,field_description:purchase_request_tier_validation.field_purchase_request__review_ids
msgid "Validations"
msgstr "Validaciones"

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

#~ msgid "ID"
#~ msgstr "ID (identificación)"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"

#~ msgid ""
#~ "<i class=\"fa fa-info-circle\"/>This Purchase Request needs to be\n"
#~ " validated."
#~ msgstr ""
#~ "<i class=\"fa fa-info-circle\"/>Esta Solicitud de compra debe ser\n"
#~ " validada."

#~ msgid "<i class=\"fa fa-thumbs-down\"/> Operation has been <b>rejected</b>."
#~ msgstr ""
#~ "<i class=\"fa fa-thumbs-down\"/>La operación ha sido <b>rechazada</b>."

#~ msgid "<i class=\"fa fa-thumbs-up\"/> Operation has been <b>validated</b>!"
#~ msgstr ""
#~ "<i class=\"fa fa-thumbs-up\"/> La operación ha sido <b>validada</b>!"

#~ msgid "Dismiss"
#~ msgstr "Descartar"

#~ msgid "Reject"
#~ msgstr "Rechazar"

#~ msgid "Request Validation"
#~ msgstr "Solicitar Validación"

#~ msgid "Restart Validation"
#~ msgstr "Reiniciar Validación"

#~ msgid "Tier Review"
#~ msgstr "Revisión de nivel"

#~ msgid "Validate"
#~ msgstr "Validar"
Loading
Loading