Fixed price in pricelists

product_pricelist_fixed_price
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/10.0/product_pricelist_fixed_price
VERSION
VERSION 1.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza, Therp B.V., Giovanni Francesco Capalbo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza, Therp B.V., Giovanni Francesco Capalbo
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEwww.serviciosbaeza.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_pricelist_item_fixedprice_form product.pricelist.item.fixedprice product.pricelist.item field Inherits product.product_pricelist_item_form_view
product_pricelist_item_fixedprice_tree product.pricelist.item.fixedprice.tree product.pricelist.item field Inherits product.product_pricelist_item_tree_view
Models touched (1)

New fields (1)
  • base_ext Selection
    default=<expr> help='Base price for computation' required=True selection='_price_field_get_ext' string='Based on'
Public methods (1)
  • change_base_ext(self)
    @api.onchange('base_ext')
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/9.0/product_pricelist_fixed_price
VERSION
VERSION 1.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza, Therp B.V., Giovanni Francesco Capalbo
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza, Therp B.V., Giovanni Francesco Capalbo
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEwww.serviciosbaeza.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_pricelist_item_fixedprice_form product.pricelist.item.fixedprice product.pricelist.item field Inherits product.product_pricelist_item_form_view
product_pricelist_item_fixedprice_tree product.pricelist.item.fixedprice.tree product.pricelist.item field Inherits product.product_pricelist_item_tree_view
Models touched (1)

New fields (1)
  • base_ext Selection
    default=<expr> help='Base price for computation' required=True selection='_price_field_get_ext' string='Based on'
Public methods (1)
  • change_base_ext(self)
    @api.onchange('base_ext')
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/8.0/product_pricelist_fixed_price
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Therp BV, Serv. Tecnol. Avanzados - Pedro M. Baeza
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Therp BV, Serv. Tecnol. Avanzados - Pedro M. Baeza
COMMITTERS
COMMITTERSLaetitia Gangloff, eLBati, Olivier LAURENT, Pedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), Ronald Portier (Therp BV), OCA Transbot, Nicola Malcontenti, oca-travis, Weblate, OCA-git-bot, George Daramouskas, gfcapalbo
WEBSITE
WEBSITEhttp://www.serviciosbaeza.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_pricelist_item_fixedprice_form product.pricelist.item.fixedprice product.pricelist.item field Inherits product.product_pricelist_item_form_view
product_pricelist_item_fixedprice_tree product.pricelist.item.fixedprice.tree product.pricelist.item field Inherits product.product_pricelist_item_tree_view
Models touched (1)

New fields (1)
  • base_ext Selection
    default=<expr> help='Base price for computation' required=True selection='_price_field_get_ext' size=-1 string='Based on'
Public methods (3)
  • change_base_ext(self)
    @api.onchange('base_ext')
  • create(self, vals)
    @api.model
    override create to get computed values
  • write(self, vals)
    @api.multi
    override write to get computed values.
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/7.0/product_pricelist_fixed_price
VERSION
VERSION 2.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza
COMMITTERS
COMMITTERSGuewen Baconnier, Alexandre Fayolle, Laetitia Gangloff, Ronald Portier, Pedro M. Baeza, Rudolf Schnapka, Launchpad Translations on behalf of product-core-editors, Maxime Chambreuil - http://www.savoirfairelinux.com
WEBSITE
WEBSITEwww.serviciosbaeza.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - process
    - web
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Fixed price on pricelist rule
=============================

Adds a new option on pricelist rules to set a fixed price. This is made using
a trick that writes on the back 100% in the discount to the base price to get
a zero base that will add only the price we put in the surcharge price.
    

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_pricelist_item_fixedprice_form product.pricelist.item.fixedprice product.pricelist.item group Inherits product.product_pricelist_item_form_view
product_pricelist_item_fixedprice_tree product.pricelist.item.fixedprice.tree product.pricelist.item field Inherits product.product_pricelist_item_tree_view
Models touched (1)

New fields (0)

No new fields.

Public methods (3)
  • create(self, cr, uid, vals, context=None)
    override create to get computed values
  • onchange_base_ext(self, cr, uid, ids, base_ext, context=None)
    Make sure values for base and base_ext keep in sync in the UI
  • write(self, cr, uid, ids, vals, context=None)
    override write to get computed values. We need the loop, because computed values might depend on existing values.
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/6.1/product_pricelist_fixed_price
VERSION
VERSION 2.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Serv. Tecnol. Avanzados - Pedro M. Baeza
COMMITTERS
COMMITTERSAlexandre Fayolle, Sandy Carter, Maxime Chambreuil, Launchpad Translations on behalf of openerp-commiter, Ronald Portier (Therp BV), Jay Vora(OpenERP)
WEBSITE
WEBSITEwww.serviciosbaeza.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - process
    - decimal_precision
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Fixed price on pricelist rule
=============================

Adds a new option on pricelist rules to set a fixed price. This is made using
a trick that writes on the back 100% in the discount to the base price to get
a zero base that will add only the price we put in the surcharge price.
    

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_pricelist_item_fixedprice_form product.pricelist.item.fixedprice product.pricelist.item field Inherits product.product_pricelist_item_form_view
product_pricelist_item_fixedprice_tree product.pricelist.item.fixedprice.tree product.pricelist.item field Inherits product.product_pricelist_item_tree_view
Models touched (1)

New fields (0)

No new fields.

Public methods (3)
  • create(self, cr, uid, vals, context=None)
    override create to get computed values
  • onchange_base_ext(self, cr, uid, ids, base_ext, context=None)
    Make sure values for base and base_ext keep in sync in the UI
  • write(self, cr, uid, ids, vals, context=None)
    override write to get computed values. We need the loop, because computed values might depend on existing values.