Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3552 Представления

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.

Аватар
Отменить
Лучший ответ

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>
Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 15
3816
1
мар. 15
4444
2
мая 24
1322
1
мар. 15
5094
1
мар. 15
4865