Purchase order lines with discounts

purchase_discount
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/16.0/purchase_discount
VERSION
VERSION 2.0.4
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSPedro M. Baeza, Sylvain LE GAL, Jairo Llopis, Denis Roussel, Weblate, OCA-git-bot, David Vidal, oca-ci, David Ramia, ferran-S73, Luis Ernesto García Medina, Gil Arasa Verge, josep-tecnativa, Alicia Garzo Moreno, Alex Guardado
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
product_supplierinfo_form_view product.supplierinfo xpath Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view product.supplierinfo field Inherits product.product_supplierinfo_tree_view
purchase_history_tree purchase_discount.history.tree purchase.order.line field Inherits purchase.purchase_history_tree
purchase_order_form purchase_discount.purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form2 purchase_discount.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
res_partner_form_view res.partner xpath Inherits base.view_partner_form
Models touched (5)

New fields (1)
  • discount Float
    compute='_compute_discount' digits='Discount' readonly=False store=True string='Discount (%)'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi
    Insert discount (or others) from context from purchase.order's _add_supplier_to_product method

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits='Discount' string='Discount (%)'
Public methods (1)
  • write(self, vals)

New fields (1)
  • discount Float
    digits='Discount' group_operator='avg' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • default_supplierinfo_discount Float
    digits='Discount' help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.' string='Default Supplier Discount (%)'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/15.0/purchase_discount
VERSION
VERSION 2.0.2
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSJairo Llopis, OCA Transbot, Ernesto Tejeda, Weblate, OCA-git-bot, David, oca-ci, Aritz Olea, Héctor Villarreal Ortega, angel, Luis Ernesto García Medina, josep-tecnativa, moaadbourhim
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:40
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
product_supplierinfo_form_view product.supplierinfo xpath Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view product.supplierinfo field Inherits product.product_supplierinfo_tree_view
purchase_order_form purchase_discount.purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form2 purchase_discount.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
res_config_settings_view_form_purchase res.config.settings.view.form.inherit.purchase res.config.settings xpath Inherits purchase.res_config_settings_view_form_purchase
res_partner_form_view res.partner xpath Inherits base.view_partner_form
Models touched (8)

New fields (1)
  • discount Float
    digits='Discount' string='Discount (%)'
Public methods (1)
  • onchange_name(self)
    @api.onchange('name')
    Apply the default supplier discount of the selected supplier

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits='Discount' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits='Discount' group_operator='avg' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • purchase_supplier_discount_real Boolean
    default=False string='Real Purchase Supplier Discount'
Public methods (0)

No public methods.

New fields (1)
  • purchase_supplier_discount_real Boolean
    readonly=False related='company_id.purchase_supplier_discount_real' store=True string='Real Purchase Supplier Discount'
Public methods (0)

No public methods.

New fields (1)
  • default_supplierinfo_discount Float
    digits='Discount' help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.' string='Default Supplier Discount (%)'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • write(self, values)
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/14.0/purchase_discount
VERSION
VERSION 1.2.1
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSOCA Transbot, Víctor Martínez, Vishnu Vanneri, oca-travis, Weblate, OCA-git-bot, David, Héctor Villarreal Ortega, Luis Ernesto García Medina, oca-git-bot, sonhd
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
product_supplierinfo_form_view product.supplierinfo xpath Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view product.supplierinfo field Inherits product.product_supplierinfo_tree_view
purchase_order_form purchase_discount.purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form2 purchase_discount.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
res_partner_form_view res.partner xpath Inherits base.view_partner_form
Models touched (6)

New fields (1)
  • discount Float
    digits='Discount' string='Discount (%)'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
    Insert discount (or others) from context from purchase.order's _add_supplier_to_product method
  • onchange_name(self)
    @api.onchange('name')
    Apply the default supplier discount of the selected supplier

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits='Discount' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits='Discount' group_operator='avg' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • default_supplierinfo_discount Float
    digits='Discount' help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.' string='Default Supplier Discount (%)' tracking=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/13.0/purchase_discount
VERSION
VERSION 1.1.2
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSPedro M. Baeza, Cédric Pigeon, mreficent, david, Swapnesh Shah, OCA Transbot, Adrien Peiffer, oca-travis, Weblate, OCA-git-bot, David, Carlos Roca, Samuel Piquet, Luis Ernesto García Medina
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:18
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - account
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
product_supplierinfo_form_view product.supplierinfo xpath Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view product.supplierinfo field Inherits product.product_supplierinfo_tree_view
purchase_order_form purchase_discount.purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form2 purchase_discount.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
res_partner_form_view res.partner xpath Inherits base.view_partner_form
Models touched (7)

New fields (1)
  • discount Float
    digits='Discount' string='Discount (%)'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
    Insert discount (or others) from context from purchase.order's _add_supplier_to_product method
  • onchange_name(self)
    @api.onchange('name')
    Apply the default supplier discount of the selected supplier

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits='Discount' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits='Discount' group_operator='avg' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • default_supplierinfo_discount Float
    digits='Discount' help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.' string='Default Supplier Discount (%)' tracking=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/12.0/purchase_discount
VERSION
VERSION 1.0.8
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., GRAP, ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSHolger Brunn, Pedro M. Baeza, GitHub, david, OCA Transbot, oca-travis, Weblate, OCA-git-bot, hveficent, Carlos Roca, Luisa Miguéns, Miika
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase_stock
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - account
    - analytic
    - portal
    - http_routing
    - digest
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
product_supplierinfo_form_view product.supplierinfo xpath Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view product.supplierinfo field Inherits product.product_supplierinfo_tree_view
purchase_order_form purchase_discount.purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form2 purchase_discount.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
res_partner_form_view res.partner xpath Inherits base.view_partner_form
Models touched (8)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits=dp.get_precision('Discount') string='Discount (%)'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
    Insert discount (or others) from context from purchase.order's _add_supplier_to_product method
  • onchange_name(self)
    @api.onchange('name')@api.multi
    Apply the default supplier discount of the selected supplier

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits=dp.get_precision('Discount') string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits=dp.get_precision('Discount') group_operator='avg' string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • default_supplierinfo_discount Float
    digits=dp.get_precision('Discount') help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.' string='Default Supplier Discount (%)' track_visibility='onchange'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/11.0/purchase_discount
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSAlexandre Fayolle, Pedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
    - account
    - analytic
    - portal
    - http_routing
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
purchase_order_form purchase_discount.purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form2 purchase_discount.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits=dp.get_precision('Discount') string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits=dp.get_precision('Discount') group_operator='avg' string='Discount (%)'
Public methods (1)
  • init(self)
    @api.model_cr
    Inject parts in the query with this hack, fetching the query and recreating it. Query is returned all in upper case and with final ';'.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/10.0/purchase_discount
VERSION
VERSION 1.0.5
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSStefan Rijnhart, Pedro M. Baeza, GitHub, Jordi Ballester Alomar, OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - stock_account
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
    - account
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
purchase_order_form purchase_discount.purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_order_line_form2 purchase_discount.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits=dp.get_precision('Discount') string='Discount (%)'
Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits=dp.get_precision('Discount') group_operator='avg' string='Discount (%)'
Public methods (1)
  • init(self)
    @api.model_cr
    Inject parts in the query with this hack, fetching the query and recreating it. Query is returned all in upper case and with final ';'.
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/9.0/purchase_discount
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Acysos S.L., ACSONE SA/NV, Tiny
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Acysos S.L., ACSONE SA/NV, Tiny
COMMITTERS
COMMITTERSYannick Vaucher, Matthieu Dietrich, Pedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), Jordi Ballester Alomar, OCA Transbot, Juan Jose Scarafia, Thomas Binsfeld, Sergio Teruel Albert, Jonathan Nemry (ACSONE)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
    - purchase
    - stock_account
    - account
    - analytic
    - web_tip
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
purchase_discount_order_form_line_form purchase.discount.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_discount_order_form_line_tree purchase.discount.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_discount_order_line_form2 purchase_discount.order.line.form2 (purchase_discount) purchase.order.line field Inherits purchase.purchase_order_line_form2
purchase_discount_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits_compute=dp.get_precision('Discount') string='Discount (%)'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/8.0/purchase_discount
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYPurchase Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, S.L., Tiny
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, S.L., Tiny
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Alexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), Omar (Pexego), OCA Transbot, oca-travis, agaldona, Weblate, oihane
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - procurement
    - board
    - web_kanban_gauge
    - web_kanban_sparkline
    - purchase
    - stock_account
    - account
    - analytic
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
purchase_discount_order_form purchase.discount.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_discount_order_line_form purchase_discount.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
purchase_discount_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
report_purchaseorder_document report_purchaseorder_document ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • discount Float
    digits_compute=dp.get_precision('Discount') string='Discount (%)'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/7.0/purchase_discount
VERSION
VERSION 1.0
CATEGORY
CATEGORYGeneric Modules/Sales & Purchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Acysos S.L., Tiny
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Acysos S.L., Tiny
COMMITTERS
COMMITTERSRomain Deheele, Alexandre Fayolle, Pedro M. Baeza, Sylvain LE GAL, Launchpad Translations on behalf of purchase-core-editors, OCA Transbot, vrenaville, Rudolf Schnapka
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - process
    - web
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - account
    - analytic
    - board
    - edi
    - email_template
    - purchase
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
It allows to define a discount per line in the purchase
orders. This discount can be also negative, interpreting it as an increment.

**REMARK**: This module can be incompatible with other modules that modify
purchase prices, because it overwrites computation methods.

**Contributors**:
 * Pedro Manuel Baeza <pedro.baeza@serviciosbaeza.com>
    

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
invoice_supplier_form_discount account.invoice.supplier.form.discount account.invoice field Inherits account.invoice_supplier_form
purchase_discount_order_form purchase.discount.order.form purchase.order xpath Inherits purchase.purchase_order_form
purchase_discount_order_line_form purchase_discount.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
purchase_discount_order_line_tree purchase_discount.order.line.tree purchase.order.line field Inherits purchase.purchase_order_line_tree
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.