Floor price on product

sale_floor_price
REPOSITORY
REPOSITORYOCA/sale-financial
GIT
GIThttps://github.com/OCA/sale-financial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-financial/tree/10.0/sale_floor_price
VERSION
VERSION 5.1
CATEGORY
CATEGORYTool
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSPedro M. Baeza
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:54
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/sale-financial:
    - sale_line_watcher
odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
    - sale
    - sales_team
    - account
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Set a minimal price on product and raise a warning if sale price is too low

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_floor_price_product_normal_form_view product.normal.form.floor_price product.product field Inherits product.product_normal_form_view
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If discount change, check that final price is not < floor_price_limit of related product
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If price unit change, check that it is not < floor_price_limit of related product. If override_unit_price is True, we put in price_unit the min possible value, otherwise we leave it empty...
  • product_id_change(self, cr, uid, ids, *args, **kwargs)
    Overload method: - Empty the discount when changing.
REPOSITORY
REPOSITORYOCA/sale-financial
GIT
GIThttps://github.com/OCA/sale-financial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-financial/tree/9.0/sale_floor_price
VERSION
VERSION 5.1
CATEGORY
CATEGORYTool
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERS
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/sale-financial:
    - sale_line_watcher
odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
    - sale
    - sales_team
    - account
    - analytic
    - web_tip
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Set a minimal price on product and raise a warning if sale price is too low

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_floor_price_product_normal_form_view product.normal.form.floor_price product.product field Inherits product.product_normal_form_view
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If discount change, check that final price is not < floor_price_limit of related product
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If price unit change, check that it is not < floor_price_limit of related product. If override_unit_price is True, we put in price_unit the min possible value, otherwise we leave it empty...
  • product_id_change(self, cr, uid, ids, *args, **kwargs)
    Overload method: - Empty the discount when changing.
REPOSITORY
REPOSITORYOCA/sale-financial
GIT
GIThttps://github.com/OCA/sale-financial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-financial/tree/8.0/sale_floor_price
VERSION
VERSION 5.1
CATEGORY
CATEGORYTool
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Alexandre Fayolle
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/sale-financial:
    - sale_line_watcher
odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - procurement
    - board
    - web_kanban_gauge
    - web_kanban_sparkline
    - sale
    - sales_team
    - account_voucher
    - account
    - analytic
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Set a minimal price on product and raise a warning if sale price is too low

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_floor_price_product_normal_form_view product.normal.form.floor_price product.product field Inherits product.product_normal_form_view
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If discount change, check that final price is not < floor_price_limit of related product
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If price unit change, check that it is not < floor_price_limit of related product. If override_unit_price is True, we put in price_unit the min possible value, otherwise we leave it empty...
  • product_id_change(self, cr, uid, ids, *args, **kwargs)
    Overload method: - Empty the discount when changing.
REPOSITORY
REPOSITORYOCA/sale-financial
GIT
GIThttps://github.com/OCA/sale-financial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-financial/tree/7.0/sale_floor_price
VERSION
VERSION 5.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Alexandre Fayolle, Matthieu Dietrich, Joel Grand-Guillaume
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/sale-financial:
    - sale_line_watcher
OCA/server-tools:
    - web_context_tunnel
odoo/odoo:
    - stock
    - product
    - base
    - process
    - web
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - account
    - analytic
    - board
    - edi
    - email_template
    - sale
    - account_voucher
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Floor price on product
======================

Set a minimal price on product and raise a warning if sale price is too low.

Contributors
------------

* Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
sale_floor_price_product_normal_form_view product.normal.form.floor_price product.product field Inherits product.product_normal_form_view
sale_watcher_order_form1 sales_line_watcher.form.floorprice sale.order field Inherits sale.view_order_form
sale_watcher_order_form2 sales_line_watcher.form.floorprice sale.order field Inherits sale.view_order_form
sale_watcher_sale_order_line_form2 sales_line_watcher.view.form2 sale.order.line xpath Inherits sale.view_order_line_form2
sale_watcher_sale_order_line_form3 sales_line_watcher.view.form3 sale.order.line xpath Inherits sale.view_order_line_form2
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • onchange_discount(self, cr, uid, ids, context=None, **kwargs)
    If discount change, check that final price is not < floor_price_limit of related product context price_unit, product_id, discount
  • onchange_price_unit(self, cr, uid, ids, context=None, **kwargs)
    If price unit change, check that it is not < floor_price_limit of related product. If override_unit_price is True, we put in price_unit the min possible value, otherwise we leave it empty...
  • product_id_change(self, cr, uid, ids, *args, **kwargs)
    Overload method: - Empty the discount when changing.
REPOSITORY
REPOSITORYOCA/sale-financial
GIT
GIThttps://github.com/OCA/sale-financial.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-financial/tree/6.1/sale_floor_price
VERSION
VERSION 5.1
CATEGORY
CATEGORYTool
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSAlexandre Fayolle, Joël Grand-Guillaume, Alexandre Fayolle @ camptocamp
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/sale-financial:
    - sale_line_watcher
odoo/odoo:
    - stock
    - product
    - base
    - process
    - decimal_precision
    - account
    - base_setup
    - analytic
    - board
    - edi
    - email_template
    - mail
    - base_tools
    - sale
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Set a minimal price on product and raise a warning if sale price is too low

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
sale_floor_price_product_normal_form_view product.normal.form.floor_price product.product field Inherits product.product_normal_form_view
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If discount change, check that final price is not < floor_price_limit of related product
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    If price unit change, check that it is not < floor_price_limit of related product. If override_unit_price is True, we put in price_unit the min possible value, otherwise we leave it empty...
  • product_id_change(self, cr, uid, ids, *args, **kwargs)
    Overload method: - Empty the discount when changing.