TIP: You can type at any time to perform a new search.
RUC and DIN Validation on Sales
l10n_pe_sale · OCA/l10n-peru
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
sale_configuration— Class 'sale_configuration' still inherits from the old-style `osv.osv_memory` 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_configuration— Class 'sale_configuration' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcesale_configuration— Class 'sale_configuration' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcesale_order— Class 'sale_order' still inherits from the old-style `osv.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 · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/l10n-peru · module folder · Try on Runboat
- Module version
- 1.1
- Category
- Sale Management
- Folder size
- 0.02 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.openerp.com
- Last tracking update
- 2026-08-07 06:56:14
- Authors
- Vauxoo
- Maintainers
- Vauxoo
- Committers
- Julio Serna, dsabrinarg, julioserna
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_pe_retest, opl
- Description
Validation for sale when exceeding minimum amount. ========================================================= This module modifies the sale workflow in order to validate RUC and DIN in sale that exceeds minimum amount set by configuration wizard.
Code Analysis
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_validation_sale_configuration |
Sale Application | sale.config.settings | Inherits sale.view_sales_config |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (1)
New fields (0)
No new fields.
Public methods (4)-
check_ruc(self, cr, uid, ids, context=None) -
check_ruc_dni(self, cr, uid, ids, context=None) -
show_message_ruc_dni(self, cr, uid, ids, context=None) -
show_message_ruc_dni2(self, cr, uid, ids, context=None)