Skip to content

Commit d2d84b2

Browse files
[FIX] product_catalog_tree: filters fixed
1 parent e5ec0b4 commit d2d84b2

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

product_catalog_tree/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
##############################################################################
2020
{
2121
"name": "Product Catalog Tree",
22-
"version": "18.0.1.2.0",
22+
"version": "18.0.1.3.0",
2323
"category": "Products",
2424
"sequence": 14,
2525
"summary": "",

product_catalog_tree/models/product_catalog_mixin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ class ProductCatalogMixin(models.AbstractModel):
88
def action_add_from_catalog(self):
99
action = super().action_add_from_catalog()
1010
tree_view_id = self.env.ref("product_catalog_tree.product_view_tree_catalog").id
11+
search_view_id = self.env.ref("product.product_search_form_view").id
1112
action["views"] = [(tree_view_id, "list")] + action["views"]
13+
action["search_view_id"] = (search_view_id, "search")
1214
return action

product_catalog_tree/views/product_product_views.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,16 @@
2424
</field>
2525
</record>
2626

27+
<record id="product_search_form_view_supplier" model="ir.ui.view">
28+
<field name="name">product.product.search.form.supplier</field>
29+
<field name="model">product.product</field>
30+
<field name="inherit_id" ref="product.product_search_form_view"/>
31+
<field name="arch" type="xml">
32+
<field name="name" position="after">
33+
<field name="seller_ids" string="Supplier"
34+
filter_domain="[('seller_ids.partner_id', 'ilike', self)]"/>
35+
</field>
36+
</field>
37+
</record>
38+
2739
</odoo>

0 commit comments

Comments
 (0)