Disable Pricelist selection button in POS

pos_disable_pricelist_selection
REPOSITORY
REPOSITORYOCA/pos
GIT
GIThttps://github.com/OCA/pos.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/pos/tree/14.0/pos_disable_pricelist_selection
VERSION
VERSION 2.0.1
CATEGORY
CATEGORYPurchase
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix, Ooops
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix, Ooops
COMMITTERS
COMMITTERSIvàn Todorovich, OCA Transbot, Weblate, OCA-git-bot, oca-ci, Ilyas, yartsev, diga
WEBSITE
WEBSITEhttps://github.com/OCA/pos
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:50
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - point_of_sale
    - stock_account
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - account
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets assets ir.ui.view qweb Inherits point_of_sale.assets
pos_config_view_form pos.config.form.view pos.config xpath Inherits point_of_sale.pos_config_view_form
Models touched (1)

New fields (3)
  • hide_pricelist_button Boolean
    default=False
  • pricelist_id_domain Binary
    compute='_compute_pricelist_id_domain' readonly=True store=False
  • selectable_pricelist_ids Many2many → product.pricelist
    default=_default_pricelist domain="[('id', 'in', available_pricelist_ids)]" relation='pos_conf_selectable_pricelist_rel' string='Selectable Pricelists' args: 'product.pricelist'
Public methods (4)
  • onchange_available_pricelist_ids(self)
    @api.onchange('available_pricelist_ids')
  • onchange_hide_pricelist_button(self)
    @api.onchange('hide_pricelist_button')
  • onchange_selectable_pricelist_ids(self)
    @api.onchange('selectable_pricelist_ids')
  • write(self, vals)