Sale Global Discount

sale_global_discount
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/19.0/sale_global_discount
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, adrip-s73, arantxa-s73
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - html_editor
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Apply global financial discounts to sales that will be transmited to
invoices and accounting.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • amount_global_discount Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' compute='_compute_global_discount_ids' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" readonly=False store=True string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (1)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model

New fields (0)

No new fields.

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/18.0/sale_global_discount
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, eugenio
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
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
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Apply global financial discounts to sales that will be transmited to
invoices and accounting.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • amount_global_discount Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' compute='_compute_global_discount_ids' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" readonly=False store=True string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (1)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model

New fields (0)

No new fields.

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/17.0/sale_global_discount
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, miguel-S73
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Apply global financial discounts to sales that will be transmited to
invoices and accounting.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • amount_global_discount Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' compute='_compute_global_discount_ids' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" readonly=False store=True string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (1)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model

New fields (0)

No new fields.

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/16.0/sale_global_discount
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, ferran-S73, trisdoan
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_global_discount
OCA/server-backend:
    - base_global_discount
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - account_payment
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • amount_global_discount Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (2)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model
    Compute discounts successively
  • onchange_partner_id_set_gbl_disc(self)
    @api.onchange('partner_id')

New fields (0)

No new fields.

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/15.0/sale_global_discount
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
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, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:33
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (1)

New fields (5)
  • amount_global_discount Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' compute='_compute_global_discount_ids' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" readonly=False store=True string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (1)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model
    Compute discounts successively
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_global_discount
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERStafaRU, OCA Transbot, Omar (Comunitea), oca-travis, Weblate, OCA-git-bot, Christopher Ormaza
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (1)

New fields (5)
  • amount_global_discount Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (2)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model
    Compute discounts successively
  • onchange_partner_id(self)
    @api.onchange('partner_id')
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/13.0/sale_global_discount
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYSales Management
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, GitHub, david, sergio-teruel, Víctor Martínez, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - sale
    - sales_team
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (1)

New fields (5)
  • amount_global_discount Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_amount_all' compute_sudo=True currency_field='currency_id' readonly=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (2)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model
    Compute discounts successively
  • onchange_partner_id(self)
    @api.onchange('partner_id')
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/12.0/sale_global_discount
VERSION
VERSION 1.2.2
CATEGORY
CATEGORYSales Management
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, GitHub, Denis Roussel, david, OCA Transbot, oca-travis, Weblate, OCA-git-bot, pedrocasi
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - sale
    - sales_team
    - payment
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (1)

New fields (5)
  • amount_global_discount Monetary
    compute='_amount_all' currency_field='currency_id' readonly=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_amount_all' currency_field='currency_id' readonly=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_amount_all' currency_field='currency_id' readonly=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (3)
  • action_invoice_create(self, grouped=False, final=False)
  • get_discounted_global(self, price=0, discounts=None)
    @api.model
    Compute discounts successively
  • onchange_partner_id(self)
    @api.onchange('partner_id')
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/11.0/sale_global_discount
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYSales Management
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, david, OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_global_discount
OCA/server-backend:
    - base_global_discount
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 (2)
XML IDNameModelTypeStatus
report_saleorder_document report_saleorder_document ir.ui.view qweb Inherits sale.report_saleorder_document
view_order_form sale.order field Inherits sale.view_order_form
Models touched (1)

New fields (4)
  • amount_global_discount Monetary
    compute='_amount_all' currency_field='currency_id' readonly=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_amount_all' currency_field='currency_id' readonly=True string='Amount Untaxed Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_amount_all' currency_field='currency_id' readonly=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" string='Sale Global Discounts'
Public methods (3)
  • action_invoice_create(self, grouped=False, final=False)
    @api.multi
  • get_discounted_global(self, price=0, discounts=None)
    @api.model
    Compute discounts successively
  • onchange_partner_id(self)
    @api.onchange('partner_id')