Spain - Accounting (PGCE 2008)
l10n_es · odoo/odoo
Replaces 9 modules renamed or merged into it
nan_account_invoice_sequence via l10n_es_account_invoice_sequence (7.0) · l10n_es_account_group (11.0) · l10n_es_account_invoice_sequence, l10n_es_extra_data (13.0) · l10n_es_extra_data (15.0) · l10n_es_irnr (16.0) · l10n_es_dua, l10n_es_irnr (17.0) · l10n_es_modelo130 (19.0)OCA/l10n-spain 6.1–10.0 · odoo/odoo 6.1–20.0
Name collision in 6.1, 7.0, 8.0, 9.0, 10.0: odoo/odoo and OCA/l10n-spain have l10n_es; odoo/odoo (Odoo core) is the reference
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by25/257 modules depend on it
-
Maturity25/25In 15 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_account_tag_account_tax_repartition_line_rel tax_rep_tag SET account_account_tag_id = %s FROM account_account_tag new_tag, account_tax_repartition_line repln WHERE tax_rep_tag.account_account_tag_id = %s AND repln.id = tax_rep_tag.account_tax_repartition_line_id AND COALESCE(repln.invoice_tax_id, repln.refund_tax_id) IN %s` - re-check the table/column names still match after upgrading. (3 occurrences in this file) migration-raw-sql-write · 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
Spanish charts of accounts (PGCE 2008).
* Defines the following chart of account templates:
* Spanish general chart of accounts 2008
* Spanish general chart of accounts 2008 for small and medium companies
* Spanish general chart of accounts 2008 for associations
* Defines templates for sale and purchase VAT
* Defines tax templates
* Defines fiscal positions for spanish fiscal legislation
* Defines tax reports mod 111, 115, 130 and 303
5.3: Update taxes starting Q4 2024 according to BOE-A-2024-12944 (Royal Decree 4/2024) https://www.boe.es/buscar/act.php?id=BOE-A-2024-12944
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_es_edi_facturae, l10n_es_edi_sii, l10n_es_edi_tbai, l10n_es_edi_verifactu, l10n_es_pos, l10n_es_stock, l10n_es_website_sale
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_tax_form_inherit_l10n_es_edi |
account.tax.form.inherit.l10n_es_edi | account.tax | form | Inherits account.view_tax_form |
res_config_settings_view_form |
res.config.settings.view.form | res.config.settings | form | Inherits account.res_config_settings_view_form |
view_move_form_inherit |
account.move.form.inherit | account.move | form | Inherits account.view_move_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 11
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
-
l10n_es_available_regime_codesCharcompute='_compute_l10n_es_available_regime_codes'help='Technical field to enable a dynamic selection of the field "VAT Regime Code"'string='Available VAT Regime Codes' -
l10n_es_invoice_typeSelectioncompute='_compute_l10n_es_invoice_type'copy=Falsehelp='For credit notes (R1-R5), also identifies the Article 80 (Law 37/1992, BOE-A-1992-28740) reason for modifying the taxable base.'readonly=Falseselection='l10n_es_invoice_type_selection'store=True -
l10n_es_invoice_type_availableCharcompute='_compute_l10n_es_invoice_type_available'string='Invoice Types Available' -
l10n_es_original_invoice_creditedCharstore=Falsestring='Original Invoice Credited' -
l10n_es_regime_codeSelectioncompute='_compute_l10n_es_regime_code'readonly=Falseselection='_l10n_es_regime_code_selection'store=Truestring='VAT Regime Code' -
l10n_es_regime_code_additionalSelectioncompute='_compute_l10n_es_regime_code'readonly=Falseselection='_l10n_es_regime_code_selection'store=Truestring='VAT Regime Code (Additional)'
-
l10n_es_invoice_type_selection(self)@api.model
-
l10n_es_applicabilitySelectionselection=[('01', 'VAT'), ('02', 'IPSI'), ('03', 'IGIC')]string='Applicability (Spain)' -
l10n_es_available_regime_codesCharcompute='_compute_l10n_es_available_regime_codes'help='Technical field to enable a dynamic selection of the field "VAT Regime Code"'string='Available VAT Regime Codes' -
l10n_es_bien_inversionBooleandefault=False args: 'Bien de Inversion' -
l10n_es_exempt_reasonSelectionselection=[('E1', 'Art. 20'), ('E2', 'Art. 21'), ('E3', 'Art. 22'), ('E4', 'Art. 23 y 24'), ('E5', 'Art. 25'), ('E6', 'Otros')]string='Exempt Reason (Spain)' -
l10n_es_regime_codeSelectioncompute='_compute_l10n_es_regime_code'readonly=Falseselection='_l10n_es_regime_code_selection'store=Truestring='VAT Regime Code' -
l10n_es_typeSelectiondefault='sujeto'selection=[('exento', 'Exento'), ('sujeto', 'Sujeto o ISP intracomunitario'), ('sujeto_agricultura', 'Sujeto Agricultura'), ('sujeto_isp', 'Sujeto ISP'), ('no_sujeto', 'No Sujeto'), ('no_sujeto_loc', 'No Sujeto por reglas de Localization'), ('no_deducible', 'No Deducible'), ('retencion', 'Retencion'), ('recargo', 'Recargo de Equivalencia'), ('dua', 'DUA'), ('ignore', 'Ignore even the base amount')]string='Tax Type (Spain)'
No public methods.
-
l10n_es_simplified_invoice_limitFloatdefault=400help='Over this amount is not legally possible to create a simplified invoice'string='Simplified Invoice limit amount' -
l10n_es_special_vat_regimeSelectionselection=[('cash_basis', 'Cash Basis'), ('equivalence_surcharge', 'Equivalence Surcharge'), ('reagyp', 'REAGYP'), ('simplified', 'Simplified')]
-
write(self, vals)
-
l10n_es_simplified_invoice_limitFloatreadonly=Falserelated='company_id.l10n_es_simplified_invoice_limit' -
l10n_es_special_vat_regimeSelectionreadonly=Falserelated='company_id.l10n_es_special_vat_regime' -
module_l10n_es_edi_siiBooleanargs: 'SII' -
module_l10n_es_edi_tbaiBooleanargs: 'TicketBai' -
module_l10n_es_edi_verifactuBooleanargs: 'Veri*Factu'
-
set_values(self)
-
l10n_es_foreign_idCharcompute='_compute_l10n_es_foreign_id'inverse='_inverse_l10n_es_foreign_id'string='Country of residence ID document' -
l10n_es_other_idCharcompute='_compute_l10n_es_other_id'inverse='_inverse_l10n_es_other_id'string='Other supporting document' -
l10n_es_passportCharcompute='_compute_l10n_es_passport'inverse='_inverse_l10n_es_passport'string='Passport' -
l10n_es_res_certCharcompute='_compute_l10n_es_res_cert'inverse='_inverse_l10n_es_res_cert'string='Residence certificate'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…