Generación de fichero modelo 340 y libro de IVA
l10n_es_aeat_mod340 · OCA/l10n-spain
Security findings
Migration considerations
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.exceptions` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.float_utils` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` 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` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` 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.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
- 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
AccountAccounte— Class 'AccountAccounte' 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 · sourceAccountAccounte— Class 'AccountAccounte' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountInvoice— Class 'AccountInvoice' 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 · sourceAccountInvoice— Class 'AccountInvoice' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountTax— Class 'AccountTax' 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 · sourceAccountTax— Class 'AccountTax' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountTaxCode— Class 'AccountTaxCode' 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 · sourceAccountTaxCode— Class 'AccountTaxCode' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountTaxCodeTemplate— Class 'AccountTaxCodeTemplate' 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 · sourceAccountTaxCodeTemplate— Class 'AccountTaxCodeTemplate' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountTaxTemplate— Class 'AccountTaxTemplate' 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 · sourceAccountTaxTemplate— Class 'AccountTaxTemplate' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceL10nEsAeatMod340Intracomunitarias— Class 'L10nEsAeatMod340Intracomunitarias' 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 · sourceL10nEsAeatMod340Investment— Class 'L10nEsAeatMod340Investment' 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 · sourceL10nEsAeatMod340Issued— Class 'L10nEsAeatMod340Issued' 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 · sourceL10nEsAeatMod340Issued— Class 'L10nEsAeatMod340Issued' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceL10nEsAeatMod340Received— Class 'L10nEsAeatMod340Received' 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 · sourceL10nEsAeatMod340Received— Class 'L10nEsAeatMod340Received' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceL10nEsAeatMod340Report— Class 'L10nEsAeatMod340Report' 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 · sourceL10nEsAeatMod340Report— Class 'L10nEsAeatMod340Report' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceL10nEsAeatMod340Report— Class 'L10nEsAeatMod340Report' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceL10nEsAeatMod340TaxLineIssued— Class 'L10nEsAeatMod340TaxLineIssued' 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 · sourceL10nEsAeatMod340TaxLineIssued— Class 'L10nEsAeatMod340TaxLineIssued' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceL10nEsAeatMod340TaxLineReceived— Class 'L10nEsAeatMod340TaxLineReceived' 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 · sourceL10nEsAeatMod340TaxLineReceived— Class 'L10nEsAeatMod340TaxLineReceived' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceResPartner— Class 'ResPartner' 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 · sourceResPartner— Class 'ResPartner' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceResPartner— Class 'ResPartner' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_customer_account_invoice_ticket_form— For a target of Odoo 17.0+: view 'view_customer_account_invoice_ticket_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourceview_l10n_es_aeat_mod340_invoice_issued_tree— View 'view_l10n_es_aeat_mod340_invoice_issued_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · sourceview_l10n_es_aeat_mod340_invoice_received_tree— View 'view_l10n_es_aeat_mod340_invoice_received_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · sourceview_l10n_es_aeat_mod340_tax_summary_tree— View 'view_l10n_es_aeat_mod340_tax_summary_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · sourceview_l10n_es_aeat_mod340_tree— View 'view_l10n_es_aeat_mod340_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · 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-spain · module folder · Try on Runboat
- Module version
- 2.5.1
- Category
- Localisation/Accounting
- Folder size
- 0.97 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-spain
- Last tracking update
- 2026-08-07 07:03:03
- Authors
- Spanish Localization Team, Odoo Community Association (OCA)
- Maintainers
- Spanish Localization Team, Odoo Community Association (OCA)
- Committers
- Stéphane Bidoul, Alexandre Fayolle, Pedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), Hugo Santos, Weblate, acysos, OCA Transbot, oca-travis, agaldona, Antonio Espinosa, Roberto Lizana, Daniel-CA, Jose Maria Alzaga, Kiko Peiro, Jordi Llinares
- Odoo dependencies
- Python dependencies
- unidecode
- System dependencies
- None
- Required by
- l10n_es_aeat_mod340_cash_basis, l10n_es_aeat_mod340_type0
- Description
Code Analysis
Views touched (19)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
invoice_supplier_mod340_form |
account.invoice.supplier.mod340.form | account.invoice | form | Inherits account.invoice_supplier_form |
view_account_account_form_mod340 |
account.account.form.mod340 | account.account | form | Inherits account.view_account_form |
view_account_tax_form_mod340 |
account.tax.form.mod340 | account.tax | form | Inherits account.view_tax_form |
view_customer_account_invoice_ticket_form |
Account invoice - Ticket summary | account.invoice | form | Inherits account.invoice_form |
view_l10n_es_aeat_mod340_form |
l10n_es.aeat.mod340.form | l10n.es.aeat.mod340.report | form | Inherits l10n_es_aeat.view_l10n_es_aeat_report_form |
view_l10n_es_aeat_mod340_invoice_issued_form |
l10n.es.aeat.mod340.issued.form | l10n.es.aeat.mod340.issued | form | New |
view_l10n_es_aeat_mod340_invoice_issued_search |
l10n.es.aeat.mod340.issued | search | New | |
view_l10n_es_aeat_mod340_invoice_issued_tree |
l10n.es.aeat.mod340.issued.tree | l10n.es.aeat.mod340.issued | tree | New |
view_l10n_es_aeat_mod340_invoice_received_form |
l10n.es.aeat.mod340.received.form | l10n.es.aeat.mod340.received | form | New |
view_l10n_es_aeat_mod340_invoice_received_search |
l10n.es.aeat.mod340.received | search | New | |
view_l10n_es_aeat_mod340_invoice_received_tree |
l10n.es.aeat.mod340.received.tree | l10n.es.aeat.mod340.received | tree | New |
view_l10n_es_aeat_mod340_report_search |
AEAT Model 340 (search) | l10n.es.aeat.mod340.report | search | New |
view_l10n_es_aeat_mod340_tax_line_issued_form |
l10n.es.aeat.mod340.tax_line_issued.form | l10n.es.aeat.mod340.tax_line_issued | form | New |
view_l10n_es_aeat_mod340_tax_line_received_form |
l10n.es.aeat.mod340.tax_line_received.form | l10n.es.aeat.mod340.tax_line_received | form | New |
view_l10n_es_aeat_mod340_tax_summary_tree |
l10n.es.aeat.mod340.tax_summary.tree | l10n.es.aeat.mod340.tax_summary | tree | New |
view_l10n_es_aeat_mod340_tree |
l10n.es.aeat.mod340.tree | l10n.es.aeat.mod340.report | tree | New |
view_tax_code_form_mod340 |
account.tax.code.form.mod340 | account.tax.code | form | Inherits account.view_tax_code_form |
view_tax_code_template_form_mod340 |
account.tax.code.template.form.mod340 | account.tax.code.template | form | Inherits account.view_tax_code_template_form |
view_tax_template_form_mod340 |
account.tax.template.form.mod340 | account.tax.template | form | Inherits account.view_account_tax_template_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (18)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
is_leasing_invoice(self)@api.one -
is_reverse_charge_invoice(self)@api.one
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 (1)-
proximo(self, final, numeros)
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 (3)-
button_calculate(self, cr, uid, ids, args, context=None) -
button_recalculate(self, cr, uid, ids, context=None) -
create(self, vals)@api.model
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
show_records(self)@api.multi
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…