Product Variant Search by Attributes

product_variant_search_by_attribute
REPOSITORY
REPOSITORYOCA/product-variant
GIT
GIThttps://github.com/OCA/product-variant.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-variant/tree/8.0/product_variant_search_by_attribute
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSGitHub, OCA Transbot, David Beal, oca-travis
WEBSITE
WEBSITEhttp://www.akretion.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - product
    - base
    - 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 (2)
XML IDNameModelTypeStatus
product_product_tree_view product.product field Inherits product.product_product_tree_view
product_search_form_view product.product field Inherits product.product_search_form_view
Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)
    @api.multi
    Attribute Values update impact products: we take care to propagate changes on attribute_str field

New fields (1)
  • attribute_str Char
    compute='_compute_attribute_str' help='Store all attribute values. Required to search variants from attributes' index=True store=True string='Attribute string'
Public methods (3)
  • domain_replacement(self, domain, field, separator)
    convert [expr1, expr2, expr3] in [expr1, expr2a, expr2b, expr3] according to expr => (field, 'ilike', mystring)
  • domain_split(self, value, field, separator)
    convert this string 'first second third' in this list ['&', '&', ('myfield', 'like', 'first'), ('myfield', 'like', 'second'), ('myfield', 'like', 'third')]
  • search(self, cr, uid, domain, offset=0, limit=None, order=None, context=None, count=False)