Sale order line watcher

sale_line_watcher
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_line_watcher
VERSION
VERSION 0.1
CATEGORY
CATEGORYHidden
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 odoo/odoo:
    - base
    - sale
    - sales_team
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_planner
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Add new base onchange methods on sale_order class

 onchange_price_unit and onchange_discount both accept the following arguments:
 (self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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 (1)

New fields (0)

No new fields.

Public methods (2)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange discount
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange unit price
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_line_watcher
VERSION
VERSION 0.1
CATEGORY
CATEGORYHidden
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 odoo/odoo:
    - base
    - sale
    - sales_team
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_tip
    - web_planner
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Add new base onchange methods on sale_order class

 onchange_price_unit and onchange_discount both accept the following arguments:
 (self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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 (1)

New fields (0)

No new fields.

Public methods (2)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange discount
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange unit price
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_line_watcher
VERSION
VERSION 0.1
CATEGORY
CATEGORYHidden
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 odoo/odoo:
    - base
    - sale
    - sales_team
    - mail
    - base_setup
    - web_kanban
    - web
    - web_kanban_sparkline
    - account_voucher
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - board
    - edi
    - email_template
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Add new base onchange methods on sale_order class

 onchange_price_unit and onchange_discount both accept the following arguments:
 (self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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 (1)

New fields (0)

No new fields.

Public methods (2)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange discount
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange unit price
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_line_watcher
VERSION
VERSION 0.1
CATEGORY
CATEGORYHidden
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSAlexandre 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/server-tools:
    - web_context_tunnel
odoo/odoo:
    - base
    - sale
    - account_voucher
    - account
    - base_setup
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Sale order line watcher
=======================

Add new base onchange methods on Sale Order Line form.

`onchange_price_unit` and `onchange_discount`

Those onchanges can be extendend with additionnal contexts using
`web_context_tunnel` module

Dependencies
------------

`web_context_tunnel` module from lp:server-env-tools branch

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

* Nicolas Bessi <nicolas.bessi@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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 (1)

New fields (0)

No new fields.

Public methods (2)
  • onchange_discount(self, cr, uid, ids, context=None, **kwargs)
    Place holder function for onchange discount
  • onchange_price_unit(self, cr, uid, ids, context=None, **kwargs)
    Place holder function for onchange unit price
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_line_watcher
VERSION
VERSION 0.1
CATEGORY
CATEGORYHidden
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONYes
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSCamptocamp
COMMITTERS
COMMITTERSAlexandre Fayolle, Alexandre Fayolle @ camptocamp
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - sale
    - stock
    - product
    - process
    - decimal_precision
    - account
    - base_setup
    - analytic
    - board
    - edi
    - email_template
    - mail
    - base_tools
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Add new base onchange methods on sale_order class

 onchange_price_unit and onchange_discount both accept the following arguments:
 (self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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 (1)

New fields (0)

No new fields.

Public methods (2)
  • onchange_discount(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange discount
  • onchange_price_unit(self, cr, uid, ids, price_unit, product_id, discount, product_uom, pricelist, **kwargs)
    Place holder function for onchange unit price