~vauxoo/addons-vauxoo/7.0-user_story-rev4-kty

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="inherited_product_product_tree_view">
            <field name="name">product.product.tree.inherit.view</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_product_tree_view" />
            <field name="arch" type="xml">
                <data>
                    <field name="name" position="before">
                          <field name="available_boolean" invisible="1"/>
                        <field name="upc" />
                    </field>
                </data>
            </field>
        </record>
        <record model="ir.ui.view" id="inherited2_product_product_tree_view">
            <field name="name">product.product.tree.inherit2.view</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_product_tree_view" />
            <field name="arch" type="xml">
                <data>
                    <field name="name" position="before">
                        <field name="manufacturer_pref" />
                    </field>
                </data>
            </field>
        </record>
        <record model="ir.ui.view" id="inherited_product_search_form_view">
            <field name="name">product.product.search.form.inherit</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_search_form_view" />
            <field name="arch" type="xml">
                <data>
                    <field name="categ_id" position="before">
                        <field name="upc" />
                    </field>
                    <field name="default_code" position="after">
                        <field name="manufacturer_pref" />
                    </field>
                </data>
            </field>
    </record>
    <record model="ir.ui.view" id="inherited_product_product_form">
            <field name="name">product.product.form.inherit</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view" />
            <field name="arch" type="xml">
                <data>
                    <field name="ean13" position="after">
                         <field name="available_boolean" invisible="1"/>
                        <field name="upc" />
                    </field>
                </data>
            </field>
        </record>

    
    <record id="inherit_product_view_search" model="ir.ui.view">
      <field name="name">product.view.inherit.form</field>
      <field name="model">product.product</field>
      <field name="type">search</field>
      <field name="inherit_id" ref="product.product_search_form_view"/>
      <field name="arch" type="xml">
        <xpath expr='/search/filter[@string="Services"]' position="before">
          <filter icon="terp-check" name="available" string="Available" domain="[('available_boolean','=',True)]" help="Assigned Delivery Orders"/>
        </xpath>
      </field>
    </record>
    

    <record id="product.product_normal_action" model="ir.actions.act_window">
            <field name="context">{'search_default_available':1}</field>
    </record>


    
    <record id="product.product_normal_action_tree" model="ir.actions.act_window">
             <field name="search_view_id" ref="product.product_search_form_view"/>
            <field name="context">{'categ_id':active_id,'search_default_available':1}</field>

    </record>




    </data>
</openerp>