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

how to create a menu under in product like Unit of Measure

By
oussama
on 9/19/14, 5:49 AM 377 views

Hi

how to create a  menu under  in product like Unit of Measure

my view xml

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
        <record id="product_marque_tree_view" model="ir.ui.view">
            <field name="name">product.marque.tree</field>
            <field name="model">marque.marque</field>
            <field name="arch" type="xml">
                <tree string="Marque">
                    <field name="code" />
                    <field name="name" />
                </tree>
            </field>
        </record>

        <record id="product_marque_form_view" model="ir.ui.view">
            <field name="name">product.marque.form</field>
            <field name="model">marque.marque</field>
            <field name="arch" type="xml">
                <form string="Marque" version="7.0">
                    <group>
                        <field name="code" />
                        <field name="name" />
                    </group>
                </form>
            </field>
        </record>
        <record id="product_marque_form_action" model="ir.actions.act_window">
            <field name="name">Marque</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">marque.marque</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="product_marque_tree_view" />
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">
                    Créer une marque
                </p>
            </field>
        </record>

        <menuitem id="next_id_marque" name="Marque" parent="product.prod_config_main"
            sequence="31" />
        <menuitem action="product_marque_form_action" id="menu_product_marque_form_action"
            parent="base.menu_base_config" sequence="31" />
    </data>
</openerp>

Thanks

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: 9/19/14, 5:49 AM
Seen: 377 times
Last updated: 3/16/15, 8:10 AM