Product Pricelist Alternative

product_pricelist_alternative
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/18.0/product_pricelist_alternative
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Vincent Van Rossem
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:12
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
It allows you to define alternative price lists to a reference price
list. As a general rule, the price of a given product is obtained from
the minimum between its reference price list and the alternative price
lists.

However, if the product's reference price has been calculated on the
basis of a price rule in which the "Alternative Pricelist Policy =
Ignore" field is selected, the alternative price lists will not be taken
into account.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_pricelist_item_tree_view_from_product product.pricelist.item.list product.pricelist.item xpath Inherits product.product_pricelist_item_tree_view_from_product
product_pricelist_item_view_form product.pricelist.item.form product.pricelist.item xpath Inherits product.product_pricelist_item_form_view
product_pricelist_item_view_tree product.pricelist.item.list product.pricelist.item xpath Inherits product.product_pricelist_item_tree_view
product_pricelist_view product.pricelist.form product.pricelist widget Inherits product.product_pricelist_view
Models touched (2)

New fields (3)
  • alternative_pricelist_ids Many2many → product.pricelist
    column1='origin_id' column2='alternative_id' comodel_name='product.pricelist' domain="[('id', '!=', id)]" relation='product_pricelist_alternative_rel' string='Alternative pricelists'
  • is_alternative_to_pricelist_count Integer
    compute='_compute_is_alternative_to_pricelist_count'
  • is_alternative_to_pricelist_ids Many2many → product.pricelist
    column1='alternative_id' column2='origin_id' comodel_name='product.pricelist' relation='product_pricelist_alternative_rel' string='Is alternative to pricelists'
Public methods (1)
  • action_view_is_alternative_to_pricelist(self)

New fields (1)
  • alternative_pricelist_policy Selection
    default='use_lower_price' required=True selection=[('use_lower_price', 'Use lower price'), ('ignore', 'Ignore alternatives')]
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/16.0/product_pricelist_alternative
VERSION
VERSION 1.2.1
CATEGORY
CATEGORYProduct
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSAlexandre Fayolle, Weblate, OCA-git-bot, oca-ci, Telmo Santos
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_pricelist_item_tree_view_from_product product.pricelist.item.tree product.pricelist.item xpath Inherits product.product_pricelist_item_tree_view_from_product
product_pricelist_item_view_form product.pricelist.item.form product.pricelist.item xpath Inherits product.product_pricelist_item_form_view
product_pricelist_item_view_tree product.pricelist.item.tree product.pricelist.item xpath Inherits product.product_pricelist_item_tree_view
product_pricelist_view product.pricelist.form product.pricelist widget Inherits product.product_pricelist_view
Models touched (2)

New fields (3)
  • alternative_pricelist_ids Many2many → product.pricelist
    column1='origin_id' column2='alternative_id' comodel_name='product.pricelist' domain="[('id', '!=', id)]" relation='product_pricelist_alternative_rel' string='Alternative pricelists'
  • is_alternative_to_pricelist_count Integer
    compute='_compute_is_alternative_to_pricelist_count'
  • is_alternative_to_pricelist_ids Many2many → product.pricelist
    column1='alternative_id' column2='origin_id' comodel_name='product.pricelist' relation='product_pricelist_alternative_rel' string='Is alternative to pricelists'
Public methods (1)
  • action_view_is_alternative_to_pricelist(self)

New fields (1)
  • alternative_pricelist_policy Selection
    default='use_lower_price' required=True selection=[('use_lower_price', 'Use lower price'), ('ignore', 'Ignore alternatives')]
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/product-attribute
PULL REQUEST
PULL REQUEST[19.0][MIG] product_pricelist_alternative: Migration to 19.0 (#2294)