Cierre de ejercicio fiscal para España
l10n_es_fiscal_year_closing · OCA/l10n-spain
Renamed to l10n_es_account_fiscal_year_closing in 9.0
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. (2 occurrences in this file) migration-workflow-call · source
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
CancelFyc— Class 'CancelFyc' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourceCancelFyc— Class 'CancelFyc' 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 · sourceFiscalyearClosingAccountMapping— Class 'FiscalyearClosingAccountMapping' still inherits from the old-style `orm.AbstractModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (5 occurrences in this file) migration-old-api-base · sourceFiscalyearClosingAccountMapping— Class 'FiscalyearClosingAccountMapping' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourceL10nEsFiscalyearClosing— Class 'L10nEsFiscalyearClosing' 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 · sourceview_fyc_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_fyc_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (4 occurrences in this file) migration-openerp-import · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_journal_period SET state = %s WHERE period_id IN (SELECT id FROM account_period WHERE fiscalyear_id = %s)` - re-check the table/column names still match after upgrading. (3 occurrences in this file) migration-raw-sql-write · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE account_journal_period SET state = %s WHERE period_id IN (SELECT id FROM account_period WHERE fiscalyear_id = %s)` - re-check the table/column names still match after upgrading. (4 occurrences in this file) migration-raw-sql-write · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (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
Cierre contable del ejercicio fiscal español
Reemplaza el asistente por defecto de OpenERP para el cierre contable (del módulo account) por un asistente todo en uno más avanzado que permite:
- Comprobar asientos descuadrados.
- Comprobar fechas y periodos incorrectos de los apuntes.
- Comprobar si hay asientos sin asentar en el ejercicio a cerrar.
- Crear el asiento de pérdidas y ganancias.
- Crear el asiento de pérdidas y ganancias de patrimonio neto.
- Crear el asiento de cierre.
- Crear el asiento de apertura.
Permite configurar todos los parámetros para la realización de los asientos, aunque viene preconfigurado para el actual plan de cuentas español.
Para la creación de los asientos, se tiene en cuenta el método de cierre definido en los tipos de cuenta (siempre que la cuenta no sea de tipo view):
- Ninguno: No se realiza ningún cierre para esa cuenta.
- Saldo: Crea un apunte para la cuenta con el saldo del ejercicio.
- No conciliados: Crea un apunte por cada empresa con saldo para la cuenta.
- Detalle: No soportado.
También conserva el estado del cierre, por lo que el usuario puede cancelar y deshacer las operaciones fácilmente.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
cancel_fyc_form_view |
account.fiscalyear.closing.cancel_wizard.form | account.fiscalyear.closing.cancel_wizard | form | New |
execute_fyc_form_view |
account.fiscalyear.closing.execute_wizard.form | account.fiscalyear.closing.execute_wizard | form | New |
view_fyc_form |
account.fiscalyear.closing.form | account.fiscalyear.closing | form | New |
view_fyc_tree |
account.fiscalyear.closing.tree | account.fiscalyear.closing | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
No new fields.
Public methods (2)-
create_period(self, cr, uid, ids, context=None, interval=1)@api.v7 -
create_period(self, interval=1)@api.v8
No new fields.
Public methods (6)-
action_cancel(self, cr, uid, ids, context=None)Called when the user clicks the cancel button. -
action_confirm(self, cr, uid, ids, context=None)Called when the user clicks the confirm button. -
action_draft(self, cr, uid, ids, context=None)Called when the user clicks the confirm button. -
action_recover(self, cr, uid, ids, context=None)Called when the user clicks the draft button to create a new workflow instance. -
action_run(self, cr, uid, ids, context=None)Called when the create entries button is used. -
unlink(self, cr, uid, ids, context=None)
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 (2)-
default_get(self, cr, uid, field_list, context=None)This function gets default values @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param fields: List of fields for default value @param context: A standard dictionary for contextual values @return : default values of fields. -
run_cancel(self, cr, uid, data, context=None)
No new fields.
Public methods (4)-
create_closing_move(self, cr, uid, operation, fyc, context)Create a closing move (L&P, NL&P or Closing move). -
create_opening_move(self, cr, uid, operation, fyc, context)Create an opening move (based on the closing one) -
default_get(self, cr, uid, field_list, context=None)This function gets default values @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param fields: List of fields for default value @param context: A standard dictionary for contextual values @return : default values of fields. -
run_execute(self, cr, uid, data, context=None)Creates / removes FYC entries
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…