Relationship refund - origin invoice

account_refund_original
REPOSITORY
REPOSITORYOCA/l10n-spain
GIT
GIThttps://github.com/OCA/l10n-spain.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-spain/tree/8.0/account_refund_original
VERSION
VERSION 2.1.0
CATEGORY
CATEGORYLocalisation/Accounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Spanish Localization Team
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Spanish Localization Team
COMMITTERS
COMMITTERSStéphane Bidoul, Alexandre Fayolle, Pedro M. Baeza, sebalix, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-spain
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_customer_account_invoice_add_refunds_details_form Account invoice (customer) | add Refunds details (form) account.invoice page Inherits account.invoice_form
view_supplier_account_invoice_add_refunds_details_form Account invoice (supplier) | add Refunds details (form) account.invoice page Inherits account.invoice_supplier_form
Models touched (2)

New fields (3)
  • origin_invoices_ids Many2many → account.invoice
    column1='refund_invoice_id' column2='original_invoice_id' comodel_name='account.invoice' help='Links to original invoice which is referred by current refund invoice' relation='account_invoice_refunds_rel' string='Refund invoice'
  • refund_invoice_ids Many2many → account.invoice
    column1='original_invoice_id' column2='refund_invoice_id' comodel_name='account.invoice' help='Refund invoices created from this invoice' readonly=True relation='account_invoice_refunds_rel' string='Refund invoices'
  • refund_invoices_description Text
    args: 'Refund invoices description'
Public methods (0)

No public methods.

New fields (2)
  • origin_line_ids Many2many → account.invoice.line
    column1='refund_line_id' column2='original_line_id' comodel_name='account.invoice.line' help='Original invoice line to which this refund invoice line is referred to' relation='account_invoice_line_refunds_rel' string='Original invoice line'
  • refund_line_ids Many2many → account.invoice.line
    column1='original_line_id' column2='refund_line_id' comodel_name='account.invoice.line' help='Refund invoice lines created from this invoice line' relation='account_invoice_line_refunds_rel' string='Refund invoice line'
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/account_refund_original
VERSION
VERSION 1.0
CATEGORY
CATEGORYLocalisation/Accounting
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Pexego
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Pexego
COMMITTERS
COMMITTERSAlexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot
WEBSITE
WEBSITEhttp://www.pexego.es
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
Manages refund invoice and origin invoice relationship.
    

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_customer_account_invoice_add_refunds_details_form Account invoice (customer) | add Refunds details (form) account.invoice page Inherits account.invoice_form
view_supplier_account_invoice_add_refunds_details_form Account invoice (supplier) | add Refunds details (form) account.invoice page Inherits account.invoice_supplier_form
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • compute_refund(self, cr, uid, ids, mode='refund', context=None)
    @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs