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

[16.0] base_tier_validation: migration to 16 #540

Merged
merged 108 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
6cc10ab
[9.0][ADD] base_tier_validation
LoisRForgeFlow Dec 1, 2017
65db709
fix: blocking unneded records
LoisRForgeFlow Feb 28, 2018
d9b2978
[9.0][IMP] base_tier_validation: tries automatically request validati…
LoisRForgeFlow Mar 2, 2018
f554665
[9.0][IMP] base_tier_validation: filter out reviews not pending
LoisRForgeFlow Mar 2, 2018
34d1b3a
make possible to filter by validated records
LoisRForgeFlow Mar 2, 2018
763e4de
allow to add exceptions for fields that can be written on under valid…
LoisRForgeFlow Mar 15, 2018
03cfe20
[9.0][IMP] base_tier_validation:
LoisRForgeFlow Mar 23, 2018
1ea20ea
[10.0][MIG] base_tier_validation
LoisRForgeFlow Mar 26, 2018
c0bf455
[11.0][MIG] base_tier_validation
LoisRForgeFlow May 9, 2018
8685d01
[11.0][IMP] base_tier_validation: add tests
LoisRForgeFlow May 10, 2018
7d90fa3
add 'can_review' to tier.validation so that the buttons approve
JordiBForgeFlow Jul 3, 2018
f583e60
[11.0][IMP] base_tier_validation: enhance views and register who does…
LoisRForgeFlow Jan 15, 2019
1445dd7
[11.0][FIX] base_tier_validation
AdriaGForgeFlow Feb 15, 2019
8318d84
Add name attribute to filter
AdriaGForgeFlow Feb 15, 2019
aca328d
[MIG] base_tier_validation: Migration to 12.0
Feb 18, 2019
86b1ae6
[ADD] icon.png
OCA-git-bot May 27, 2019
f71e691
[11.0][IMP] base_tier_validation
AdriaGForgeFlow Feb 25, 2019
91cba6c
[IMP] base_tier_validation: Pass parameters as functions
etobella Apr 10, 2019
f1547aa
[IMP] base_tier_validation: Add a chatter message if the model has it
etobella May 8, 2019
441a64e
[11.0][FIX] base_tier_validation: make name translatable and display …
LoisRForgeFlow May 15, 2019
405cbfc
[11.0][UPD] base_tier_validation: roadmap.
LoisRForgeFlow May 15, 2019
63ba6ac
[12.0][MIG] base_tier_validation: adapt systray to v12.
LoisRForgeFlow May 28, 2019
6f86dee
Added translation using Weblate (Spanish)
LoisRForgeFlow May 29, 2019
a7d1006
Translated using Weblate (Spanish)
LoisRForgeFlow May 29, 2019
f0a19d2
[12.0][FIX] dropdown style width and position
AdriaGForgeFlow May 29, 2019
4150c49
[12.0][IMP] base_tier_validation module
AdriaGForgeFlow Jun 14, 2019
bd88b25
[FIX] base_tier_validation : singleton error
fmdl Jul 4, 2019
4f33045
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
4759d5c
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
f38e4ec
Translated using Weblate (Chinese (Simplified))
digitalsatori Oct 21, 2019
fadf61b
[11.0][IMP] base_tier_validation: add an optional email
LoisRForgeFlow Nov 12, 2019
a5c8893
[11.0][FIX] base_tier_validation: singleton issue
LoisRForgeFlow Nov 22, 2019
d223610
[12.0][FIX] base_tier_validation: message_subscribe_users removed in v12
LoisRForgeFlow Nov 26, 2019
fc16607
[12.0][IMP] base_tier_validation
ps-tubtim Nov 26, 2019
6915c2d
[IMP] base_tier_validation: black, isort
pegonzalezspesol Dec 1, 2019
82954cd
[MIG] 13.0 base_tier_validation
pegonzalezspesol Dec 1, 2019
3174004
[12.0][fix] base_tier_validation
ps-tubtim Dec 2, 2019
53554a1
[13.0][UPD] base_tier_validation:
LoisRForgeFlow Dec 18, 2019
4c717a7
[13.0][UPD] base_tier_validation: update copyrights information after…
LoisRForgeFlow Dec 18, 2019
c23617f
Added translation using Weblate (Dutch)
Jan 15, 2020
5b6c260
Translated using Weblate (Dutch)
Jan 15, 2020
f5c5083
[IMP] solve pre commit warnings
jimhoefnagels Jan 22, 2020
cc4e569
[FIX] When accepting or rejecting a review followers should not be no…
Feb 13, 2020
5791d72
[12.0][FIX] base_tier_validation: Unlink reviews when unlink a valida…
etobella Mar 18, 2020
3b8ad0d
Translated using Weblate (Chinese (Simplified))
dong-z Mar 23, 2020
88ac0ad
Translated using Weblate (Chinese (Simplified))
dong-z Mar 25, 2020
98f53e1
Translated using Weblate (Chinese (Simplified))
dong-z Mar 28, 2020
787f348
[FIX] tier_validation: Fix usage of can_review on tier.review
etobella Mar 31, 2020
c75e2c4
[FIX] tier_validation: Security issues with record permissions
etobella Mar 31, 2020
d528295
pre-commit update
sbidoul Apr 22, 2020
35cb683
Translated using Weblate (Spanish)
eantones May 6, 2020
2938ec6
[FIX] base_tier_validation: All models are visible when create a new …
sergio-teruel May 26, 2020
d2758c7
[IMP] base_tier_validation: notification hook
Jun 30, 2020
c1401a6
[IMP] base_tier_validation: Make test more resilient with sales and p…
sergio-teruel Jul 13, 2020
fb0cbf0
Update base_tier_validation/tests/test_tier_validation.py
sergio-teruel Jul 14, 2020
3883fd2
[FIX] base_tier_validation: Remove test to avoid crash tests with oth…
sergio-teruel Jul 21, 2020
8653746
[13.0][FIX] base_tier_validation, fix approve by sequence problem
kittiu Aug 29, 2020
5efad24
[12.0][FIX] base_tier_validation : convert datetime timezone
Saran440 Mar 25, 2020
9aec83c
Translated using Weblate (Chinese (Simplified))
dong-z Sep 24, 2020
8d5e3e7
[IMP] : black, isort, prettier
kittiu Oct 26, 2020
f3b0beb
[14.0][MIG] base_tier_validation
kittiu Oct 26, 2020
14779a9
[IMP] base_tier_validation: state check
yostashiro Nov 2, 2020
29aaa5d
[13.0][IMP] base_tier_validation: make module multi-company compatible.
LoisRForgeFlow Nov 10, 2020
78e6bfc
Enhance definition's view, add Tabs
kittiu Nov 19, 2020
b246c27
[14.0][UPD] base_tier_validation: update readme
LoisRForgeFlow Nov 19, 2020
04356d5
[IMP] base_tier_validation: Remove unnecessary modification of views
etobella Dec 13, 2020
a9914f3
[FIX] fix test error, by separate test view into another class
kittiu Dec 17, 2020
48cb33a
[FIX] tier_validation: Fix views from template as state was not used
etobella Jan 28, 2021
4dead6f
[14.0][FIX] base_tier_validation, improve accuracy of systray
kittiu Feb 5, 2021
f472650
[14.0][IMP] base_tier_validation, add 'Todo by' column in review table
kittiu Feb 9, 2021
c964035
[14.0][FIX] base_tier_validation, access_token as exception field
kittiu Feb 18, 2021
7c8d251
[FIX] base_tier_validation: correct fusion of domains
MiquelRForgeFlow Mar 10, 2021
3d6f1cc
Translated using Weblate (Spanish)
anasuarez1 Mar 16, 2021
2814f2d
[IMP] base_tier_validation: support to search for records where valid…
JordiBForgeFlow Apr 19, 2021
f937964
[FIX] base_tier_validation: External users receive the internal notif…
sergio-teruel Apr 16, 2021
a04ac61
Added translation using Weblate (French)
Yvesldff May 14, 2021
4c43686
Translated using Weblate (French)
Yvesldff May 14, 2021
1b5000f
[14.0][IMP] base_tier_validation, use sudo to post message
kittiu Jul 3, 2021
5390463
[14.0][ENH] Nootification message on restart tier
newtratip Jul 15, 2021
a1238a4
[FIX] base_tier_validation: avoid singleton error
JordiBForgeFlow Jul 5, 2021
d653c95
[14.0][IMP] base_tier_validation: add new review type
MateuGForgeFlow Jul 28, 2021
f52f036
Added translation using Weblate (Italian)
alessandro-fiorino Aug 11, 2021
1d57fec
Translated using Weblate (Italian)
alessandro-fiorino Aug 11, 2021
f4317d4
Translated using Weblate (Italian)
alessandro-fiorino Aug 11, 2021
6f8bf42
Added translation using Weblate (Spanish (Mexico))
alan196 Aug 16, 2021
583d989
Translated using Weblate (Spanish (Mexico))
alan196 Aug 16, 2021
1c02e2a
Translated using Weblate (Spanish (Mexico))
alan196 Aug 16, 2021
1f32459
[13.0][IMP] base_tier_validation: review_user_count perfromance
AdriaGForgeFlow Sep 27, 2021
b155835
[14.0][IMP] base_tier_validation, add tier description on stripe
kittiu Aug 6, 2021
f5bf699
[14.0][ENH] base_tier_validation, add configuration
kittiu Nov 12, 2021
62d9f01
Added translation using Weblate (Swedish)
simonstromb Nov 24, 2021
cc0223e
Translated using Weblate (Swedish)
simonstromb Nov 24, 2021
5948fef
Translated using Weblate (Swedish)
simonstromb Nov 24, 2021
7e7164b
[IMP] base_tier_validation: black, isort, prettier
JasminSForgeFlow Dec 20, 2021
949f8c9
[MIG] base_tier_validation: Migration to 15.0
JasminSForgeFlow Dec 20, 2021
97c27aa
[UPD] Update base_tier_validation.pot
Dec 22, 2021
46a538c
[UPD] README.rst
OCA-git-bot Dec 22, 2021
29308a5
[FIX+IMP] base_tier_validation: Don't mess searches with NewId + non …
pedrobaeza Mar 8, 2022
19e9fbf
base_tier_validation 15.0.1.0.1
OCA-git-bot Mar 9, 2022
447cb36
[IMP] base_tier_validation: introduce new fields for validation messa…
JordiBForgeFlow Apr 10, 2022
50a3643
[UPD] Update base_tier_validation.pot
Apr 12, 2022
2b25ff4
base_tier_validation 15.0.1.1.0
OCA-git-bot Apr 12, 2022
f882e4f
Update translation files
oca-transbot Apr 12, 2022
562c0bb
[FIX] base_tier_validation: Icon error when validated
CarlosRoca13 Jul 5, 2022
7ab61c6
base_tier_validation 15.0.1.2.0
OCA-git-bot Aug 9, 2022
43adbef
[UPD] Update base_tier_validation.pot
Sep 21, 2022
8979568
Update translation files
oca-transbot Sep 21, 2022
145c570
[MIG]: base_tier_validation: Migration to 16
bizzappdev Oct 19, 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
233 changes: 233 additions & 0 deletions base_tier_validation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
====================
Base Tier Validation
====================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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%2Fserver--ux-lightgray.png?logo=github
:target: https://github.com/OCA/server-ux/tree/15.0/base_tier_validation
:alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-ux-15-0/server-ux-15-0-base_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/250/15.0
:alt: Try me on Runbot

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

Validating some operations is a common need across different areas in a company
and sometimes it also involves several people and stages in the process. With
this module you will be able to define your custom validation workflows for
any Odoo document.

This module does not provide a functionality by itself but an abstract model
to implement a validation process based on tiers on other models (e.g.
purchase orders, sales orders, budgets, expenses...).

**Note:** To be able to use this module in a new model you will need some
development.

See `purchase_tier_validation <https://github.com/OCA/purchase-workflow>`_ as an example of implementation.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

#. Go to *Settings > Technical > Tier Validations > Tier Definition*.
#. Create as many tiers as you want for any model having tier validation
functionality.

**Note:**

* If check *Notify Reviewers on Creation*, all possible reviewers will be notified by email when this definition is triggered.
* If check *Comment*, reviewers can comment after click Validate or Reject.
* If check *Approve by sequence*, reviewers is forced to review by specified sequence.

Known issues / Roadmap
======================

This is the list of known issues for this module. Any proposal for improvement will
be very valuable.

* **Issue:**

When using `approve_sequence` option in any tier.definition there can be inconsistencies
in the systray notifications.

**Description:**

Field `can_review` in tier.review is used to filter out, in the systray notifications,
the reviews a user can approve. This `can_review` field is updated **in the database**
in method `review_user_count`, this can make it very inconsistent for databases
with a lot of users and recurring updates that can change the expected behavior.

* **Migration to 15.0:**

The parameter _tier_validation_manual_config will become False, on 14.0, the default
value is True, as the change is applied after the migration. In order to use the new
behavior we need to modify the value on our expected model.

Changelog
=========

14.0.1.0.0 (2020-11-19)
~~~~~~~~~~~~~~~~~~~~~~~

Migrated to Odoo 14.

13.0.1.2.2 (2020-08-30)
~~~~~~~~~~~~~~~~~~~~~~~

Fixes:

- When using approve_sequence option in any tier.definition there can be inconsistencies in the systray notifications
- When using approve_sequence, still not approve only the needed sequence, but also other sequence for the same approver

12.0.3.3.1 (2019-12-02)
~~~~~~~~~~~~~~~~~~~~~~~

Fixes:

- Show comment on Reviews Table.
- Edit notification with approve_sequence.

12.0.3.3.0 (2019-11-27)
~~~~~~~~~~~~~~~~~~~~~~~

New features:

- Add comment on Reviews Table.
- Approve by sequence.

12.0.3.2.1 (2019-11-26)
~~~~~~~~~~~~~~~~~~~~~~~

Fixes:

- Remove message_subscribe_users

12.0.3.2.0 (2019-11-25)
~~~~~~~~~~~~~~~~~~~~~~~

New features:

- Notify reviewers

12.0.3.1.0 (2019-07-08)
~~~~~~~~~~~~~~~~~~~~~~~

Fixes:

- Singleton error

12.0.3.0.0 (2019-12-02)
~~~~~~~~~~~~~~~~~~~~~~~

Fixes:

- Edit Reviews Table

12.0.2.1.0 (2019-05-29)
~~~~~~~~~~~~~~~~~~~~~~~

Fixes:

- Edit drop-down style width and position

12.0.2.0.0 (2019-05-28)
~~~~~~~~~~~~~~~~~~~~~~~

New features:

- Pass parameters as functions.
- Add Systray.

12.0.1.0.0 (2019-02-18)
~~~~~~~~~~~~~~~~~~~~~~~

Migrated to Odoo 12.

11.0.1.0.0 (2018-05-09)
~~~~~~~~~~~~~~~~~~~~~~~

Migrated to Odoo 11.

10.0.1.0.0 (2018-03-26)
~~~~~~~~~~~~~~~~~~~~~~~

Migrated to Odoo 10.

9.0.1.0.0 (2017-12-02)
~~~~~~~~~~~~~~~~~~~~~~~

First version.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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/server-ux/issues/new?body=module:%20base_tier_validation%0Aversion:%2015.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]>
* Adrià Gil Sorribes <[email protected]>
* Pimolnat Suntian <[email protected]>
* Pedro Gonzalez <[email protected]>
* Kitti U. <[email protected]>
* Saran Lim. <[email protected]>

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-LoisRForgeFlow| image:: https://github.com/LoisRForgeFlow.png?size=40px
:target: https://github.com/LoisRForgeFlow
:alt: LoisRForgeFlow

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

|maintainer-LoisRForgeFlow|

This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/15.0/base_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 base_tier_validation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
from . import wizard
43 changes: 43 additions & 0 deletions base_tier_validation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2017-19 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Base Tier Validation",
"summary": "Implement a validation process based on tiers.",
"version": "16.0.1.0.0",
"development_status": "Mature",
"maintainers": ["LoisRForgeFlow"],
"category": "Tools",
"website": "https://github.com/OCA/server-ux",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["mail"],
"data": [
"data/mail_data.xml",
"security/ir.model.access.csv",
"security/tier_validation_security.xml",
"views/res_config_settings_views.xml",
"views/tier_definition_view.xml",
"views/tier_review_view.xml",
"wizard/comment_wizard_view.xml",
"templates/tier_validation_templates.xml",
],
"assets": {
"web.assets_backend": [
"/base_tier_validation/static/src/scss/systray.scss",
"/base_tier_validation/static/src/scss/review.scss",
"/base_tier_validation/static/src/js/main.esm.js",
"/base_tier_validation/static/src/js/ir_model.esm.js",
"/base_tier_validation/static/src/js/systray_service.esm.js",
"/base_tier_validation/static/src/js/systray.esm.js",
"/base_tier_validation/static/src/js/review_groups.esm.js",
"/base_tier_validation/static/src/js/reviewer_menu_view.esm.js",
"/base_tier_validation/static/src/js/tier_review_widget.esm.js",
"/base_tier_validation/static/src/js/review_group_view.esm.js",
"/base_tier_validation/static/src/js/reviewer_menu_container.esm.js",
"/base_tier_validation/static/src/js/review_notification_handler.esm.js",
"/base_tier_validation/static/src/xml/**/*",
],
},
}
43 changes: 43 additions & 0 deletions base_tier_validation/data/mail_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record
id="mt_tier_validation_requested"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Requested</field>
<field name="default" eval="True" />
<field name="internal" eval="True" />
<field name="hidden" eval="True" />
</record>
<record
id="mt_tier_validation_accepted"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Accepted Notification</field>
<field name="default" eval="True" />
<field name="internal" eval="True" />
<field name="hidden" eval="True" />
</record>
<record
id="mt_tier_validation_rejected"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Rejected Notification</field>
<field name="default" eval="True" />
<field name="internal" eval="True" />
<field name="hidden" eval="True" />
</record>
<record
id="mt_tier_validation_restarted"
model="mail.message.subtype"
forcecreate="1"
>
<field name="name">Tier Validation Restarted</field>
<field name="default" eval="True" />
<field name="internal" eval="True" />
<field name="hidden" eval="True" />
</record>
</odoo>
Loading