Display Customer Price in Product View

customer_pricing_in_product_view
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/10.0/customer_pricing_in_product_view
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), O4SB - Graeme Gellatly
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), O4SB - Graeme Gellatly
COMMITTERS
COMMITTERSPedro M. Baeza, mreficent, OCA Transbot, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttp://odoo-community.org
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
    - sales_team
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
res_partner_view_buttons res.partner.view.buttons res.partner xpath Inherits base.view_partner_form
Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • open_product_pricing(self)
    @api.multi
    Opens the product form with defaults set to view customer pricing. Setting pricelist: True unhides the price column. Excluded from testing as does nothing except update a context. :return: a view dictionary
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/8.0/customer_pricing_in_product_view
VERSION
VERSION 1.2.1
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), O4SB - Graeme Gellatly
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), O4SB - Graeme Gellatly
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, OCA Transbot, Dave Lasley, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttp://www.o4sb.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - base
    - product
    - 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 (1)
XML IDNameModelTypeStatus
res_partner_form res.partner.view.buttons res.partner xpath Inherits base.view_partner_form
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • name_get(self, cr, uid, ids, context=None)
    When using widget=selection the orm seems to take care of converting the id to a list, but when passing in context (even when passing as a list) it converts to an int, causing name_get to fail. This function just converts a single id to a list and passes to super. :return: tuple of (id, name)

New fields (0)

No new fields.

Public methods (1)
  • view_partner_pricing(self)
    @api.multi
    This function is primarily triggered by the 'Products Pricing' smart button on the partner form. It returns the default product list action with context adjusted to set the default pricelist to the id of the partner.