Double validation for Sales
sale_double_validation · OCA/sale-workflow
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 74 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis
4 migration notes
2 models
2 views
0 HTTP endpoints
Migration considerations
- Migrating to 18.0: `user_has_groups()` was removed: use `self.env.user.has_group()`. migration-user-has-groups · source
SaleOrder— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceview_company_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_order_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_company_form |
res.company | form | Inherits base.view_company_form | |
view_order_form |
sale.order.form | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (2)
-
so_double_validationSelectiondefault='one_step'help='Provide a double validation mechanism for purchases'string='Levels of Sale Order Approvals' args: [('one_step', 'Confirm sale orders in one step'), ('two_step', 'Get 2 levels of approvals to confirm a sale order')] -
so_double_validation_amountMonetarydefault=5000help='Minimum amount for which a double validation is required'string='Sale Order double validation amount'
No public methods.
New fields (0)
No new fields.
Public methods (4)-
action_approve(self)@api.multi -
create(self, vals)@api.model -
is_amount_to_approve(self)@api.multi -
is_to_approve(self)@api.multi
Loading…