Odoo Help

Welcome!

This community 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.

0

Implementing product_m2mcategories module in v7?

By
Sean Samborski
on 4/10/14, 8:43 PM 1,124 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.

0

Nehal

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

Hi,

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"/>
        </field>
    <xpath expr="//filter[@string='Category']" position="after">
           <filter string='Categories' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_ids'}"/>
        </xpath>
    </field>
</record>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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