Perceptions for ARGENTINA (Percepciones) - Basic Module
l10n_ar_perceptions_basic · OCA/l10n-argentina
Health
70/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
GPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
7 migration notes
3 models
7 views
0 HTTP endpoints
Migration considerations
account_invoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceperception_perception— Class 'perception_perception' still inherits from the old-style `osv.osv` 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 · sourceperception_perception— Class 'perception_perception' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceview_perception_perception_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_perception_perception_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) 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
This module provide :
1) Implementation of Perceptions Taxes for Argentina
based on tax objects of OpenERP like account.invoice, account.tax and account.tax.code.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_invoice_perception_form |
account.invoice.perception.form.inherit | account.invoice | form | Inherits account.invoice_form |
view_invoice_supplier_perception_form |
account.invoice.perception.form.inherit | account.invoice | form | Inherits account.invoice_supplier_form |
view_perception_perception_form |
perception.perception.form | perception.perception | form | New |
view_perception_perception_tree |
perception.perception.tree | perception.perception | tree | New |
view_perception_tax_line_form |
perception.tax.line.form | perception.tax.line | form | New |
view_perception_tax_line_search |
perception.tax.line.search | perception.tax.line | search | New |
view_perception_tax_line_tree |
perception.tax.line.tree | perception.tax.line | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
perception_idsOne2many → perception.tax.linereadonly=Truestates={'draft': [('readonly', False)]}string='Perception' args: 'perception.tax.line', 'invoice_id'
-
finalize_invoice_move_lines(self, move_lines)@api.multifinalize_invoice_move_lines(invoice, move_lines) -> move_lines Hook method to be overridden in additional modules to verify and possibly alter the move lines to be created by an invoice, for special cases. :param self: browsable record of the invoice that is generating the move lines :param move_lines: list of dictionaries with the account.move.lines (as for create()) :return: the (possibly updated) final move_lines to create for this invoice
New fields (0)
No new fields.
Public methods (1)-
hook_compute_invoice_taxes(self, invoice, tax_grouped)@api.v8
New fields (16)
-
account_idMany2one → account.accountdomain=[('type', '<>', 'view'), ('type', '<>', 'income'), ('type', '<>', 'closed')]required=True args: 'account.account', 'Tax Account' -
ait_idMany2one → account.invoice.taxondelete='cascade' args: 'account.invoice.tax', 'Invoice Tax' -
amountFloatdigits_compute=dp.get_precision('Account') args: 'Amount' -
baseFloatdigits_compute=dp.get_precision('Account') args: 'Base' -
base_amountFloatdigits_compute=dp.get_precision('Account') args: 'Base Code Amount' -
base_code_idMany2one → account.tax.codehelp='The account basis of the tax declaration.' args: 'account.tax.code', 'Base Code' -
company_idMany2onereadonly=Truerelated='account_id.company_id'store=Truestring='Company' -
dateDateselect=True args: 'Date' -
invoice_idMany2one → account.invoiceondelete='cascade' args: 'account.invoice', 'Invoice' -
nameCharrequired=Truesize=64 args: 'Perception' -
partner_idMany2onereadonly=Truerelated='invoice_id.partner_id'string='Partner' -
perception_idMany2one → perception.perceptionhelp='Perception configuration used for this perception tax, where all the configuration resides. Accounts, Tax Codes, etc.'required=True args: 'perception.perception', 'Perception Configuration' -
state_idMany2one → res.country.statestring='State/Province' args: 'res.country.state' -
tax_amountFloatdigits_compute=dp.get_precision('Account') args: 'Tax Code Amount' -
tax_code_idMany2one → account.tax.codehelp='The tax basis of the tax declaration.' args: 'account.tax.code', 'Tax Code' -
vatCharreadonly=Truerelated='invoice_id.partner_id.vat'string='CIF/NIF'
-
onchange_perception(self)@api.onchange('perception_id')
Loading…
Loading…
Loading…