Account Invoice Triple Discount

account_invoice_triple_discount
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/19.0/account_invoice_triple_discount
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Franco Leyes
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to have three successive discounts on each invoice
line.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_triple_discount_form_view account.invoice.triple.discount.form account.move xpath Inherits account.view_move_form
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • discount Float
    compute='_compute_discount' digits=None readonly=True store=True string='Total discount'
  • discount1 Float
    digits='Discount' string='Discount 1 (%)'
  • discount2 Float
    digits='Discount' string='Discount 2 (%)'
  • discount3 Float
    digits='Discount' string='Discount 3 (%)'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/18.0/account_invoice_triple_discount
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, matteo.tognini
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to have three successive discounts on each invoice
line.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_triple_discount_form_view account.invoice.triple.discount.form account.move xpath Inherits account.view_move_form
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • discount Float
    compute='_compute_discount' digits=None readonly=True store=True string='Total discount'
  • discount1 Float
    digits='Discount' string='Discount 1 (%)'
  • discount2 Float
    digits='Discount' string='Discount 2 (%)'
  • discount3 Float
    digits='Discount' string='Discount 3 (%)'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/17.0/account_invoice_triple_discount
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
COMMITTERS
COMMITTERSOCA-git-bot, Ethan Hildick, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to have three successive discounts on each invoice
line.

If the module account_invoice_fixed_discount is installed and a fixed
discount is set, it will take priority over anything set in the triple
discount fields.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_triple_discount_form_view account.invoice.triple.discount.form account.move xpath Inherits account.view_move_form
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • discount Float
    compute='_compute_discount' digits=None readonly=True store=True string='Total discount'
  • discount1 Float
    digits='Discount' string='Discount 1 (%)'
  • discount2 Float
    digits='Discount' string='Discount 2 (%)'
  • discount3 Float
    digits='Discount' string='Discount 3 (%)'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/16.0/account_invoice_triple_discount
VERSION
VERSION 5.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), GRAP, QubiQ
COMMITTERS
COMMITTERSSylvain LE GAL, Laurent Mignon (ACSONE), Weblate, OCA-git-bot, Simone Rubino, Ethan Hildick, oca-ci, David Ramia, david-s73
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 02:42:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_triple_discount_form_view account.invoice.triple.discount.form account.move xpath Inherits account.view_move_form
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • discount Float
    compute='_compute_discount' digits=None readonly=True store=True string='Total discount'
  • discount1 Float
    digits='Discount' string='Discount 1 (%)'
  • discount2 Float
    digits='Discount' string='Discount 2 (%)'
  • discount3 Float
    digits='Discount' string='Discount 3 (%)'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/15.0/account_invoice_triple_discount
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), QubiQ
COMMITTERS
COMMITTERSmanu, OCA Transbot, Weblate, OCA-git-bot, oca-ci, David Ramia
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:38
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_triple_discount_form_view account.invoice.triple.discount.form account.move xpath Inherits account.view_move_form
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • discount2 Float
    digits='Discount' string='Discount 2 (%)'
  • discount3 Float
    digits='Discount' string='Discount 3 (%)'
Public methods (1)
  • create(self, values_list)
    @api.model_create_multi
    During the create of move lines, if the system detect that there is a difference between the balance and the price subtotal, it will update the unit price. When computing those, Odoo base module use a single discount on creation. So as there is a difference of the price given by the UI and the price computed during create method, the system will change the unit price of the invoice line. To avoid that, we update the discount field to have the aggregated discount, and we change it back after the creation. (Similar to _recompute_tax_lines on account.move)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/14.0/account_invoice_triple_discount
VERSION
VERSION 1.1.3
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), QubiQ
COMMITTERS
COMMITTERSeLBati, Daniel Reis, Enric Tobella, OCA Transbot, oca-travis, Weblate, OCA-git-bot, ferran-73, David Ramia, matteo.tognini, oca-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_triple_discount_form_view account.invoice.triple.discount.form account.move xpath Inherits account.view_move_form
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • discount2 Float
    digits='Discount' string='Discount 2 (%)'
  • discount3 Float
    digits='Discount' string='Discount 3 (%)'
Public methods (1)
  • create(self, values_list)
    @api.model_create_multi
    During the create of move lines, if the system detect that there is a difference between the balance and the price subtotal, it will update the unit price. When computing those, Odoo base module use a single discount on creation. So as there is a difference of the price given by the UI and the price computed during create method, the system will change the unit price of the invoice line. To avoid that, we update the discount field to have the aggregated discount, and we change it back after the creation. (Similar to _recompute_tax_lines on account.move)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/13.0/account_invoice_triple_discount
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), QubiQ
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Aritz Olea, CarlosRoca13
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
invoice_triple_discount_form_view account.invoice.triple.discount.form account.move xpath Inherits account.view_move_form
report_invoice_document report_invoice_document ir.ui.view qweb Inherits account.report_invoice_document
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • discount2 Float
    digits='Discount' string='Discount 2 (%)'
  • discount3 Float
    digits='Discount' string='Discount 3 (%)'
Public methods (1)
  • create(self, values_list)
    @api.model_create_multi
    During the create of move lines, if the system detect that there is a difference between the balance and the price subtotal, it will update the unit price. When computing those, Odoo base module use a single discount on creation. So as there is a difference of the price given by the UI and the price computed during create method, the system will change the unit price of the invoice line. To avoid that, we update the discount field to have the aggregated discount, and we change it back after the creation. (Similar to _recompute_tax_lines on account.move)
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/12.0/account_invoice_triple_discount
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), QubiQ
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, David Ramia, Nikul-Chaudhary
WEBSITE
WEBSITEhttps://github.com/OCA/account-invoicing
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
invoice_line_triple_discount_form_view account.invoice.line.triple.discount.form account.invoice.line field Inherits account.view_invoice_line_form
invoice_supplier_triple_discount_form_view account.invoice.supplier.triple.discount.form account.invoice xpath Inherits account.invoice_supplier_form
invoice_triple_discount_form_view account.invoice.triple.discount.form account.invoice xpath Inherits account.invoice_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • get_taxes_values(self)

New fields (2)
  • discount2 Float
    digits=dp.get_precision('Discount') args: 'Discount 2 (%)'
  • discount3 Float
    digits=dp.get_precision('Discount') args: 'Discount 3 (%)'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/11.0/account_invoice_triple_discount
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), QubiQ
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), QubiQ
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, David, xavierjimenez
WEBSITE
WEBSITEhttps://odoo-community.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
invoice_line_triple_discount_form_view account.invoice.line.triple.discount.form account.invoice.line xpath Inherits account.view_invoice_line_form
invoice_supplier_triple_discount_form_view account.invoice.supplier.triple.discount.form account.invoice xpath Inherits account.invoice_supplier_form
invoice_triple_discount_form_view account.invoice.triple.discount.form account.invoice xpath Inherits account.invoice_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • get_taxes_values(self)

New fields (2)
  • discount2 Float
    default=0.0 digits=dp.get_precision('Discount') args: 'Discount 2 (%)'
  • discount3 Float
    default=0.0 digits=dp.get_precision('Discount') args: 'Discount 3 (%)'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/10.0/account_invoice_triple_discount
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSAlexandre Fayolle, Pedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot, François Honoré
WEBSITE
WEBSITEhttps://tecnativa.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
invoice_line_triple_discount_form_view account.invoice.line.triple.discount.form account.invoice.line xpath Inherits account.view_invoice_line_form
invoice_supplier_triple_discount_form_view account.invoice.supplier.triple.discount.form account.invoice xpath Inherits account.invoice_supplier_form
invoice_triple_discount_form_view account.invoice.triple.discount.form account.invoice xpath Inherits account.invoice_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • get_taxes_values(self)

New fields (2)
  • discount2 Float
    default=0.0 digits=dp.get_precision('Discount') args: 'Discount 2 (%)'
  • discount3 Float
    default=0.0 digits=dp.get_precision('Discount') args: 'Discount 3 (%)'
Public methods (2)
  • triple_discount_postprocess(self, prev_values)
    @api.model
    Restore the discounts of the lines in the dictionary prev_values.
  • triple_discount_preprocess(self)
    @api.multi
    Save the values of the discounts in a dictionary, to be restored in postprocess. Resetting discount2 and discount3 to 0.0 avoids issues if this method is called multiple times.
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/8.0/account_invoice_triple_discount
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://tecnativa.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:24
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 (3)
XML IDNameModelTypeStatus
invoice_line_triple_discount_form_view account.invoice.line.triple.discount.form account.invoice.line xpath Inherits account.view_invoice_line_form
invoice_supplier_triple_discount_form_view account.invoice.supplier.triple.discount.form account.invoice xpath Inherits account.invoice_supplier_form
invoice_triple_discount_form_view account.invoice.triple.discount.form account.invoice xpath Inherits account.invoice_form
Models touched (2)

New fields (2)
  • discount2 Float
    default=0.0 digits=dp.get_precision('Discount') args: 'Discount 2 (%)'
  • discount3 Float
    default=0.0 digits=dp.get_precision('Discount') args: 'Discount 3 (%)'
Public methods (1)
  • price_unit_with_discount(self)
    @api.multi

New fields (0)

No new fields.

Public methods (1)
  • compute(self, invoice)
    @api.v8