Sale Order Authorized Users
sale_order_authorized_users · OCA/sale-workflow
-
Security25/25No findings
-
Activity0/25Last human commit 145 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
sale_order— Class 'sale_order' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcesale_order— Class 'sale_order' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Sale Order Authorized Users
This module allows you to implement "secret" sale orders. Users in the 'Sale / Secret orders' group will see a new field on sale orders, "Allowed Users", that can be used to restrict access to that sale order to selected users.
Details
This acts as an additional restriction, access rules are still considered: for example, an user in the "Own leads only" group won't be able to see an order that it's not his, even if he's selected as allowed.
On the other hand, by setting some users as allowed, all other users, even if they are "See all leads", won't be able to see the order.
When you add allowed users to a sale order, unless you're connected as admin, you must include yourself, or you won't be able make the change!
If no users are set (the default), all users are considered as allowed, so the sale order follows the "normal" access rules with no additional restrictions.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_order_form_allowed_users |
sale.order.form.allowed.users | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (0)No public methods.