1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

    <record id="mv_product_form_view" model="ir.ui.view">
        <field name="name">mv-tree-view</field><!-- Can be anything you like to identify what you do with this view -->
        <field name="model">mv</field><!-- Must be the model name -->
        <field name="type">tree</field><!-- Must be one of tree/form/graph/search/gantt -->
        <field name="inherit_id" ref="product.product_normal_form_view"/><!-- Look in module product, there in the xml files you find a record with this id (part after the period) -->
        <field name="arch" type="xml">
            <!-- Here we tell what will change in the view we refered to in the inherit_id -->
            <field attrs="{'invisible':[('is_vending_machine','=','true')]}" name="name" position="after"><!-- We want to include our field after the already present "name" field -->
                <field name="serie"/>
        <field name="index_general"/>
        <field name="client_id"/>
            </field>
      
    <field name="purchase_ok" position="after">
        <field name="is_vending_machine"/>
      </field>
            <!-- Now we add the client_id field as a new notebook page-->
            <xpath expr="//notebook" position="inside">
                <page string="Retetar">
                    
                </page>
            </xpath>
        </field>
    </record>
  

  <record model="ir.actions.act_window" id="action_mv_form">
            <field name="name">mv</field>
            <field name="res_model">mv</field>
    </record>
  
  <menuitem name="MakeVending" web_icon="images/logo.png" web_icon_hover="images/logo_hover.png" icon="terp-project" id="mv_menu"/>
 
   <menuitem name="Aparate" parent="mv_menu" id="sidmenu_aparate" action="action_mv_form"/>
  
  <menuitem name="Bauturi" parent="mv_menu" id="sidemenu_bauturi" action="action_mv_form"/>
  
  <menuitem name="Retetar" parent="mv_menu" id="sidemenu_retetar" action="action_mv_form"/>

</data>
</openerp>