Odoo Help


Implementing product_m2mcategories module in v7?

Sean Samborski
on 4/10/14, 8:43 PM 1,431 views

Has anyone successfully integrated this module in v7? I have it installed but it does not seem to add any kind of functional benefit. It will add a new tab to my products "Extra Categories." This tab will allow me to edit the form and add more categories to a product.

However, this does actually do anything.

When I sort by categories, the product only appears in the official OpenERP category. Example:

Product X has official category Widget Product X has extra category Gadget

When sorting by categories, Product X only appears under Widgets. It does not appear under Gadgets. This seems like an essential feature to successfully implement any kind of sales portal (like Magento) with OpenERP. Without filters and categories, a store will be a mess. I've looked at a few stores showcased on different Partner websites and they are all limited by this lack of feature.




| 5 2 8
Ahmadabad, India
On 4/11/14, 7:53 AM


This field is not added in search view and that is why you cannot filter out the Product with those extra categories. If you want to do it, you can add the following code in product_view.xml file of productm2m_categories module:

<record id="product_search_form_view_m2m_categ" model="ir.ui.view">
    <field name="name">product.search.categ.form</field>
    <field name="model">product.product</field>
    <field name="inherit_id" ref="product.product_search_form_view"/>
    <field name="arch" type="xml">
        <field name="categ_id" position="after">
            <field name="categ_ids"/>
    <xpath expr="//filter[@string='Category']" position="after">
           <filter string='Categories' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_ids'}"/>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/10/14, 8:43 PM
Seen: 1431 times
Last updated: 3/16/15, 8:10 AM