Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3537 Vistas

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.

Avatar
Descartar
Mejor respuesta

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>
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 15
3812
1
mar 15
4439
2
may 24
1311
1
mar 15
5086
1
mar 15
4861