Skip to content
Health
100/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by25/25
    5 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 10.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis 0 migration notes 2 models 5 views 0 HTTP endpoints

Description

This addon intends to manage product assortment. In Odoo you can only define some filters defined by a domain but it can be sometimes really complicated. With this addon you will be able to define a domain but also add some products to include or to exclude through a allowed list and a restricted list. This is done by overriding ir.capability but without influencing its standard behaviour.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
product_assortment_view_form product.assortment.form ir.filters form New
product_assortment_view_list ir.filters list New
product_assortment_view_search product.assortment.search ir.filters search New
product_product_view_list product.product list New
view_partner_form res.partner form Inherits base.view_partner_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (9)
  • all_partner_ids Many2many → res.partner
    column1='filter_id' column2='partner_id' comodel_name='res.partner' compute='_compute_all_partner_ids' relation='ir_filter_all_partner_rel' store=True
  • apply_black_list_product_domain Boolean
    string='Apply restricted product domain'
  • black_list_product_domain Text
    default='[]' required=True string='Restricted product domain'
  • blacklist_product_ids Many2many → product.product
    comodel_name='product.product' relation='assortment_product_blacklisted' string='Restricted products'
  • is_assortment Boolean
    default=<expr>
  • partner_domain Text
    default='[]' required=True
  • partner_ids Many2many → res.partner
    comodel_name='res.partner' default=<expr> help='This field allow to relate a partner to a domain of products'
  • record_count Integer
    compute='_compute_record_count'
  • whitelist_product_ids Many2many → product.product
    comodel_name='product.product' relation='assortment_product_whitelisted' string='Allowed products'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
  • get_partner_domain_fields(self)
    @api.model@ormcache()
  • show_products(self)
  • write(self, vals)

New fields (1)
  • applied_assortment_ids Many2many → ir.filters
    column1='partner_id' column2='filter_id' comodel_name='ir.filters' relation='ir_filter_all_partner_rel'
Public methods (3)
  • action_define_product_assortment(self)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…