Sale Order General Discount Triple

sale_order_general_discount_triple
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/16.0/sale_order_general_discount_triple
VERSION
VERSION 2.1.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ooops, Ashish Hirpara
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ooops, Ashish Hirpara
COMMITTERS
COMMITTERSPedro M. Baeza, Carlos Lopez, Weblate, OCA-git-bot, Ethan Hildick, oca-ci, RabbitJon-S73
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:45
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_invoice_triple_discount
OCA/sale-workflow:
    - sale_order_general_discount
    - sale_triple_discount
odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
res_config_settings_form_view res.config.settings.form.view res.config.settings xpath Inherits base.res_config_settings_view_form
Models touched (3)

New fields (2)
  • general_discount Selection
    config_parameter='sale_order_general_discount_triple.general_discount' required=False args: [('discount', 'Discount'), ('discount2', 'Discount 2'), ('discount3', 'Discount 3')]
  • pricelist_discount Selection
    config_parameter='sale_order_general_discount_triple.pricelist_discount' required=False args: [('discount', 'Discount'), ('discount2', 'Discount 2'), ('discount3', 'Discount 3')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • onchange_general_discount(self)
    @api.onchange('general_discount')

New fields (2)
  • discount2 Float
    compute='_compute_discount2' readonly=False store=True
  • discount3 Float
    compute='_compute_discount3' readonly=False store=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/14.0/sale_order_general_discount_triple
VERSION
VERSION 2.0.1
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ooops, Ashish Hirpara
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ooops, Ashish Hirpara
COMMITTERS
COMMITTERSOCA Transbot, Weblate, OCA-git-bot, oca-ci, Alessandro Uffreduzzi, matteo.tognini, Ashish Hirpara
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_invoice_triple_discount
OCA/sale-workflow:
    - sale_order_general_discount
    - sale_triple_discount
odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - sale_management
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
res_config_settings_form_view res.config.settings.form.view res.config.settings xpath Inherits base.res_config_settings_view_form
Models touched (3)

New fields (1)
  • general_discount Selection
    config_parameter='sale_order_general_discount_triple.general_discount' default='discount' required=True args: [('discount', 'Discount'), ('discount2', 'Discount 2'), ('discount3', 'Discount 3')], 'General Discount'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • onchange_general_discount(self)
    @api.onchange('general_discount')

New fields (2)
  • discount2 Float
    compute='_compute_discount' readonly=False store=True
  • discount3 Float
    compute='_compute_discount' readonly=False store=True
Public methods (1)
  • get_discount_vals_for_product(self, product_id, order_id)
    @api.model
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/sale-workflow
PULL REQUEST
PULL REQUEST[17.0][MIG] sale_order_general_discount_triple: Migration to 17.0 (#3235)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/sale-workflow
PULL REQUEST
PULL REQUEST[19.0][MIG] sale_order_general_discount_triple: Migration to 19.0 (#4134)