v 17.0 Third Party 1431
Download for v 17.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 1852
Technical Name base_tier_validation
LicenseAGPL-3
Websitehttps://github.com/OCA/server-ux
Versions 16.0 17.0 9.0 10.0 11.0 12.0 15.0 14.0
You bought this module and need support? Click here!

Base Tier Validation

Mature License: AGPL-3 OCA/server-ux Translate me on Weblate Try me on Runboat

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 as an example of implementation.

Additionally, if your state field is a (stored) computed field, you need to set _tier_validation_state_field_is_computed to True in your model Python file, and you will want to add the dependent fields of the compute method in _get_after_validation_exceptions and _get_under_validation_exceptions.

Table of contents

Configuration

To configure this module, you need to:

  1. Go to Settings > Technical > Tier Validations > Tier Definition.
  2. 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 Notify reviewers on reaching pending if you want to send a notification when pending status is reached. This is usefull in a approve by sequence scenario to only notify reviewers when it is their turn in the sequence.
  • If check Comment, reviewers can comment after click Validate or Reject.
  • If check Approve by sequence, reviewers is forced to review by specified sequence.

To configure Tier Validation Exceptions, you need to:

  1. Go to Settings > Technical > Tier Validations > Tier Validation Exceptions.
  2. Create as many tiers validation exceptions as you want for any model having tier validation functionality.
  3. Add desired fields to be checked in Fields.
  4. Add desired groups that can use this Exception in Groups.
  5. You must check Write under Validation, Write after Validation or both.

Note:

  • If you don’t create any exception, the Validated record will be readonly and cannot be modified.
  • If check Write under Validation, records will be able to be modified only in the defined fields when the Validation process is ongoing.
  • If check Write after Validation, records will be able to be modified only in the defined fields when the Validation process is finished.
  • If check Write after Validation and Write under Validation, records will be able to be modified defined fields always.

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

17.0.1.0.0 (2024-01-10)

Migrated to Odoo 17. Merged module with tier_validation_waiting. To support sending messages in a validation sequence when it is their turn to validate.

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. 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.

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

Credits

Authors

  • ForgeFlow

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Current maintainer:

LoisRForgeFlow

This module is part of the OCA/server-ux project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Helpful app but I need help (v17.0)
by
Qaddafi Putra Gary
on 7/28/24, 1:41 PM

I got this error (https://prnt.sc/rN3yhSn44Fd0 and https://prnt.sc/wiAnqc2NqkNv) after installing this module (through purchase tier validation). It seems everything is fine but the error message is too bothering, could you check this issue? Thank you


There are no comments yet!