Secuencia para facturas separada de la secuencia de asientos

l10n_es_account_invoice_sequence
REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/12.0/l10n_es_account_invoice_sequence
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - l10n_es
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - base_iban
    - base_vat
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_journal_form_group_products account.journal.form.group_products account.journal field Inherits account.view_account_journal_form
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • is_spanish_chart(self)
    @api.multi@tools.ormcache('self')

New fields (2)
  • invoice_number Char
    copy=False
  • number Char
    copy=False related=False size=32
Public methods (3)
  • action_move_create(self)
    @api.multi
  • invoice_validate(self)
    Include the invoice reference on the created journal item. This is done for displaying the number on the conciliation. It needs to be done here after a patch on core.
  • unlink(self)
    @api.multi
    Allow to remove invoices.

New fields (2)
  • invoice_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for invoice numbers in this journal.' ondelete='restrict' string='Invoice sequence'
  • refund_inv_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for refund invoices numbers in this journal.' ondelete='restrict' string='Refund sequence'
Public methods (3)
  • create(self, vals)
    @api.model
    Use the existing sequence for new Spanish journals.
  • default_get(self, default_fields)
    @api.model
  • write(self, vals)
    Don't change automatically prefix for journal entry sequences.

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)
    Don't change automatically prefix for journal entry sequences.
REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/11.0/l10n_es_account_invoice_sequence
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
COMMITTERS
COMMITTERSPedro M. Baeza, Enric Tobella, OCA Transbot, oca-travis, OCA-git-bot, etobella, jffernandez
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - l10n_es
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
    - base_iban
    - base_vat
    - account_invoicing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_journal_form_group_products account.journal.form.group_products account.journal field Inherits account.view_account_journal_form
Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • is_spanish_chart(self)
    @api.multi@tools.ormcache('self')

New fields (2)
  • invoice_number Char
    copy=False
  • number Char
    copy=False related=False size=32
Public methods (2)
  • action_move_create(self)
    @api.multi
  • unlink(self)
    @api.multi
    Allow to remove invoices.

New fields (2)
  • invoice_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for invoice numbers in this journal.' ondelete='restrict' string='Invoice sequence'
  • refund_inv_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for refund invoices numbers in this journal.' ondelete='restrict' string='Refund sequence'
Public methods (3)
  • create(self, vals)
    @api.model
    Use the existing sequence for new Spanish journals.
  • default_get(self, default_fields)
    @api.model
  • write(self, vals)
    Don't change automatically prefix for journal entry sequences.

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)
    Don't change automatically prefix for journal entry sequences.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/10.0/l10n_es_account_invoice_sequence
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
COMMITTERS
COMMITTERSAlexandre Fayolle, Pedro M. Baeza, Cédric Pigeon, Jairo Llopis, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:53
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-spain:
    - l10n_es
odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
    - base_vat
    - base_iban
    - l10n_es
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_journal_form_group_products account.journal.form.group_products account.journal field Inherits account.view_account_journal_form
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • is_spanish_chart(self)
    @api.multi@tools.ormcache('self')

New fields (2)
  • invoice_number Char
    copy=False
  • number Char
    copy=False related=False size=32
Public methods (2)
  • action_move_create(self)
    @api.multi
  • unlink(self)
    @api.multi
    Allow to remove invoices.

New fields (2)
  • invoice_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for invoice numbers in this journal.' ondelete='restrict' string='Invoice sequence'
  • refund_inv_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for refund invoices numbers in this journal.' ondelete='restrict' string='Refund sequence'
Public methods (1)
  • create(self, vals)
    @api.model
    Use the existing sequence for new Spanish journals.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/9.0/l10n_es_account_invoice_sequence
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Spanish Localization Team, Trey, NaN·Tic
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-spain:
    - l10n_es
odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - report
    - analytic
    - web_tip
    - web_planner
    - base_vat
    - base_iban
    - l10n_es
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_journal_form_group_products account.journal.form.group_products account.journal field Inherits account.view_account_journal_form
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • is_spanish_chart(self)
    @api.multi@tools.ormcache()

New fields (2)
  • invoice_number Char
    copy=False
  • number Char
    copy=False related=False size=32
Public methods (2)
  • action_move_create(self)
    @api.multi
  • unlink(self)
    @api.multi
    Allow to remove invoices.

New fields (2)
  • invoice_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for invoice numbers in this journal.' ondelete='restrict' string='Invoice sequence'
  • refund_inv_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id', '=', company_id)]" help='The sequence used for refund invoices numbers in this journal.' ondelete='restrict' string='Refund sequence'
Public methods (1)
  • create(self, vals)
    @api.model
    Use the existing sequence for new Spanish journals.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/8.0/l10n_es_account_invoice_sequence
VERSION
VERSION 1.3.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Spanish Localization Team, Trey, Serv. Tecnol. Avanzados - Pedro M. Baeza, NaN·Tic
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Spanish Localization Team, Trey, Serv. Tecnol. Avanzados - Pedro M. Baeza, NaN·Tic
COMMITTERS
COMMITTERSStéphane Bidoul, Alexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Roberto Lizana, OCA-git-bot, Angel Moya - Domatix, Eneko Lacunza
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-spain:
    - l10n_es
odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
    - base_vat
    - base_iban
    - l10n_es
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_journal_form_group_products account.journal.form.group_products account.journal field Inherits account.view_account_journal_form
Models touched (3)

New fields (2)
  • invoice_number Char
    copy=False
  • number Char
    copy=False related=False size=32
Public methods (2)
  • action_number(self)
    @api.multi
  • unlink(self)
    @api.multi

New fields (1)
  • invoice_sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' domain="[('company_id','=',company_id)]" help='The sequence used for invoice numbers in this journal.' ondelete='restrict' string='Invoice sequence'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/7.0/l10n_es_account_invoice_sequence
VERSION
VERSION 1.1
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Spanish Localization Team
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Spanish Localization Team
COMMITTERS
COMMITTERSAlexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, Launchpad Translations on behalf of openerp-spain-team, Jaume Cornadó
WEBSITE
WEBSITEhttps://launchpad.net/openerp-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Este módulo separa los números de las facturas de los de los asientos. Para
ello, convierte el campo number de 'related' a campo de texto normal, y le
asigna un valor según una nueva secuencia definida en el diario
correspondiente.

Su uso es obligatorio para España, ya que legalmente las facturas deben llevar
una numeración única y continua, lo que no es compatible con el sistema que
utiliza OpenERP por defecto.

**AVISO**: Hay que configurar las secuencias correspondientes para todos los
diarios de ventas, compras, abono de ventas y abono de compras utilizados
después de instalar este módulo.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_journal_form_group_products account.journal.form.group_products account.journal field Inherits account.view_account_journal_form
Models touched (2)

New fields (0)

No new fields.

Public methods (2)
  • action_number(self, cr, uid, ids, context=None)
  • copy(self, cr, uid, rec_id, default=None, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.