Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15.0 mig purchase tier validation #12

Open
wants to merge 46 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
de6289c
[9.0][ADD] purchase_tier_validation
LoisRForgeFlow Dec 1, 2017
f48b0d8
[9.0][IMP] purchase_tier_validation:
LoisRForgeFlow Mar 23, 2018
59429cc
[10.0][MIG] purchase_tier_validation
LoisRForgeFlow Mar 26, 2018
373a684
[11.0][MIG] purchase_tier_validation
LoisRForgeFlow May 9, 2018
cf43244
- add support for field 'can_review' to hide the approve/reject buttons
JordiBForgeFlow Jul 3, 2018
dc3d3c9
[UPD] Update purchase_tier_validation.pot
oca-travis Nov 15, 2018
e1e1fb3
[ADD] icon.png
OCA-git-bot Apr 3, 2019
3aebc56
Added translation using Weblate (Spanish)
etobella May 8, 2019
ce0d4af
add the status 'to approve' to the initiating states to trigger the v…
JordiBForgeFlow May 8, 2019
6da67dc
fixup! add the status 'to approve' to the initiating states to trigge…
etobella May 8, 2019
1cf6e2f
Move review view to button box
HviorForgeFlow May 8, 2019
8c0ebb5
Translated using Weblate (Spanish)
etobella May 8, 2019
1d36508
[UPD] Update purchase_tier_validation.pot
oca-travis May 8, 2019
8ce53a5
Update translation files
oca-transbot May 8, 2019
b80a454
[MIG] purchase_tier_validation: Migration to 12.0
Feb 15, 2019
bcd0b8a
[UPD] Update purchase_tier_validation.pot
oca-travis May 29, 2019
e4700d9
Update translation files
oca-transbot Jun 16, 2019
66bbaf9
[12.0][FIX] purchase_tier_validation
AdriaGForgeFlow Jun 14, 2019
d57c960
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
f65a943
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
b5c6c9c
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
1b9193a
[IMP] purchase_tier_validation: black, isort
pegonzalezspesol Nov 28, 2019
111434c
[MIG] 13.0 purchase_tier_validation
pegonzalezspesol Nov 28, 2019
87fb42d
[UPD] Update purchase_tier_validation.pot
oca-travis Dec 9, 2019
2227ef1
pre-commit update
OCA-git-bot Mar 14, 2020
9e2be9b
Translated using Weblate (Chinese (Simplified))
dong-z Mar 23, 2020
d276e1b
Translated using Weblate (Chinese (Simplified))
dong-z Mar 28, 2020
037b2b7
[FIX] README.rst: runbot target
yostashiro Apr 26, 2020
d6b5637
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
c1bb1c1
[IMP] : black, isort, prettier
kittiu Oct 26, 2020
fc48c1f
[14.0][MIG] purchase_tier_validation
kittiu Oct 26, 2020
3bf3de5
[UPD] Update purchase_tier_validation.pot
oca-travis Dec 2, 2020
b46100f
[UPD] README.rst
OCA-git-bot Dec 2, 2020
cb1ab2b
[14.0][FIX] purchase_tier_validation, set manual view = False
kittiu Dec 16, 2020
685c3f2
[UPD] Update purchase_tier_validation.pot
oca-travis Jan 14, 2021
e3f200c
purchase_tier_validation 14.0.2.0.0
OCA-git-bot Jan 14, 2021
a9d2dd8
Update translation files
oca-transbot Jan 14, 2021
3363279
[UPD] Update purchase_tier_validation.pot
oca-travis Nov 29, 2021
055d00f
Update translation files
oca-transbot Nov 29, 2021
6e7be31
[IMP] purchase_tier_validation: Simplify the tests.
victoralmau Jan 7, 2022
d3df3f8
purchase_tier_validation 14.0.2.0.1
OCA-git-bot Jan 17, 2022
0817a6b
[UPD] Update purchase_tier_validation.pot
oca-travis Apr 12, 2022
168bad6
Update translation files
oca-transbot Apr 12, 2022
e47d1fa
Added translation using Weblate (Italian)
francesco-ooops May 30, 2022
2f14ec8
Translated using Weblate (Italian)
francesco-ooops May 31, 2022
c1dfcb1
[MIG] purchase_tier_validation: Migration to 15.0
olveracuenca Jun 28, 2022
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
109 changes: 109 additions & 0 deletions purchase_tier_validation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
========================
Purchase Tier Validation
========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/14.0/purchase_tier_validation
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-14-0/purchase-workflow-14-0-purchase_tier_validation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/142/14.0
:alt: Try me on Runbot

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

This module extends the functionality of Purchase Orders 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
=============

To configure this module, you need to:

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

Usage
=====

To use this module, you need to:

#. Create a Purchase Order triggering at least one "Tier Definition".
#. Click on *Request Validation* button.
#. Under the tab *Reviews* have a look to pending reviews and their statuses.
#. Once all reviews are validated click on *Confirm Order*.

Additional features:

* You can filter the POs requesting your review through the filter *Needs my
Review*.
* User with rights to confirm the PO (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/purchase-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_tier_validation%0Aversion:%2014.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
~~~~~~~~~~~~

* Lois Rilo <[email protected]>
* Naglis Jonaitis <[email protected]>
* Pedro Gonzalez <[email protected]>
* Kitti U. <[email protected]> (migrate to v14)

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/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/14.0/purchase_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_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
16 changes: 16 additions & 0 deletions purchase_tier_validation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2017 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Purchase Tier Validation",
"summary": "Extends the functionality of Purchase Orders to "
"support a tier validation process.",
"version": "15.0.1.0.0",
"category": "Purchases",
"website": "https://github.com/OCA/purchase-workflow",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["purchase", "base_tier_validation"],
"data": ["views/purchase_order_view.xml"],
}
146 changes: 146 additions & 0 deletions purchase_tier_validation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_tier_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-05-08 12:03+0000\n"
"Last-Translator: Enric Tobella <[email protected]>\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 3.5.1\n"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__can_review
msgid "Can Review"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__display_name
#: model:ir.model.fields,field_description:purchase_tier_validation.field_tier_definition__display_name
msgid "Display Name"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__has_comment
msgid "Has Comment"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__id
#: model:ir.model.fields,field_description:purchase_tier_validation.field_tier_definition__id
msgid "ID"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order____last_update
#: model:ir.model.fields,field_description:purchase_tier_validation.field_tier_definition____last_update
msgid "Last Modified on"
msgstr ""

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

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__need_validation
msgid "Need Validation"
msgstr ""

#. module: purchase_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_tier_validation.view_purchase_order_filter
msgid "Needs my Review"
msgstr "Necesita mi Revisión"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__next_review
msgid "Next Review"
msgstr ""

#. module: purchase_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_tier_validation.view_purchase_order_filter
msgid "POs validated and ready to be confirmed"
msgstr "POs validadas y preparadas para ser confirmadas"

#. module: purchase_tier_validation
#: model:ir.model,name:purchase_tier_validation.model_purchase_order
msgid "Purchase Order"
msgstr "Orden de Compra"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__rejected
msgid "Rejected"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__rejected_message
msgid "Rejected Message"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__reviewer_ids
msgid "Reviewers"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model,name:purchase_tier_validation.model_tier_definition
#, fuzzy
msgid "Tier Definition"
msgstr "tier.definition"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__to_validate_message
msgid "To Validate Message"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__validated
#: model_terms:ir.ui.view,arch_db:purchase_tier_validation.view_purchase_order_filter
msgid "Validated"
msgstr "Validada"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__validated_message
msgid "Validated Message"
msgstr ""

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__review_ids
msgid "Validations"
msgstr ""

#~ msgid ""
#~ "<i class=\"fa fa-info-circle\"/>This PO needs to be\n"
#~ " validated."
#~ msgstr ""
#~ "<i class=\"fa fa-info-circle\"/>Esta PO 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 "Reject"
#~ msgstr "Rechazar"

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

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

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

#~ msgid "Reviews"
#~ msgstr "Revisiones"
116 changes: 116 additions & 0 deletions purchase_tier_validation/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_tier_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-05-31 10:05+0000\n"
"Last-Translator: Francesco Foresti <[email protected]>\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.3.2\n"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__can_review
msgid "Can Review"
msgstr "Può approvare"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__display_name
#: model:ir.model.fields,field_description:purchase_tier_validation.field_tier_definition__display_name
msgid "Display Name"
msgstr "Nome da visualizzare"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__has_comment
msgid "Has Comment"
msgstr "Ha commenti"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__id
#: model:ir.model.fields,field_description:purchase_tier_validation.field_tier_definition__id
msgid "ID"
msgstr "ID"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order____last_update
#: model:ir.model.fields,field_description:purchase_tier_validation.field_tier_definition____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: purchase_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_tier_validation.view_purchase_order_filter
msgid "My Purchases to review"
msgstr "I Miei Acquisti da controllare"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__need_validation
msgid "Need Validation"
msgstr "Richiede approvazione"

#. module: purchase_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_tier_validation.view_purchase_order_filter
msgid "Needs my Review"
msgstr "Richiede la mia approvazione"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__next_review
msgid "Next Review"
msgstr "Prossima approvazione"

#. module: purchase_tier_validation
#: model_terms:ir.ui.view,arch_db:purchase_tier_validation.view_purchase_order_filter
msgid "POs validated and ready to be confirmed"
msgstr "Ordini di Acquisto approvati e pronti da confermare"

#. module: purchase_tier_validation
#: model:ir.model,name:purchase_tier_validation.model_purchase_order
msgid "Purchase Order"
msgstr "Ordine di acquisto"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__rejected
msgid "Rejected"
msgstr "Rifiutato"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__rejected_message
msgid "Rejected Message"
msgstr "Messaggio rifiuto"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__reviewer_ids
msgid "Reviewers"
msgstr "Approvatori"

#. module: purchase_tier_validation
#: model:ir.model,name:purchase_tier_validation.model_tier_definition
msgid "Tier Definition"
msgstr "Definizione livello"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__to_validate_message
msgid "To Validate Message"
msgstr "Messaggio da approvare"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__validated
#: model_terms:ir.ui.view,arch_db:purchase_tier_validation.view_purchase_order_filter
msgid "Validated"
msgstr "Approvato"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__validated_message
msgid "Validated Message"
msgstr "Messaggio approvato"

#. module: purchase_tier_validation
#: model:ir.model.fields,field_description:purchase_tier_validation.field_purchase_order__review_ids
msgid "Validations"
msgstr "Approvazioni"
Loading