Any-Model Approvals
Pick any model with a chatter, the button to hold back and the approvers. Until the request is approved, the button shows a message instead of running.
| Odoo | 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Discuss |
| Licence | OPL-1, 16 EUR |
| Tests | 21 automated, run on every version |
| Module | record_ |
The situation
Approval modules for Odoo usually come one per document: one for purchase orders, another for invoices, another for sales. A company that wants a manager to sign off on purchase orders above 5,000, vendor bills before posting and discounted sales orders ends up installing three modules, each with its own screens. Anything else, such as a stock transfer or a project, has no approval at all, and the sign-off happens by chat.
With Any-Model Approvals you create a route for each case in one place. A route names the model, the button method to guard (button_confirm, action_confirm, action_post), an optional condition, an amount field and the steps. A guarded button raises a message until the record has an approved request. Approvers get a to-do on the record, and every step is logged in its chatter.
What it adds
Getting started
Open Apps, clear the Apps filter, search for Any-Model Approvals and click Activate. It needs only Discuss (mail). Models are available as soon as they have a chatter, so Sales, Purchase, Accounting or your own models all work without extra modules.
Apps › record_approval_routes › Activate
Create a route per case. Choose the model, type the button method, add the condition and the amount field if you need levels, then add the steps in order. Only Administration users see Configuration. Requests start from the Action menu of the record.
Approvals › Configuration › Routes
A user opens the record and presses the button as usual. If a route applies, the message tells them to use Action > Request approval. The approvers see the step in My Approvals or as a to-do on the record and press Approve or Reject. Approvals > All Requests shows every request with its steps.
Fine print
Log
Can it guard the button we use?
Send us the model and the button name and we will tell you how to set the route.
Email odoo.expert.111@gmail.com
Also by Awins
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module