~agilebg/openerp-product-attributes/adding_product_pack_7

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
89
90
<?xml version="1.0" encoding="utf-8"?>
<!--
  product_is_a_gift for OpenERP
  Copyright (C) 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>
  The licence is in the file __openerp__.py
-->

<openerp>
    <data>
    
        <!-- INHERITED VIEW FOR THE OBJECT : stock_picking -->

		<record id="view_picking_form" model="ir.ui.view">
			<field name="name">product_is_a_gift.view_picking_form</field>
			<field name="model">stock.picking</field>
			<field name="inherit_id" ref="stock.view_picking_form" />
            <field eval="16" name="priority"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<data>

					<xpath expr="/form/notebook" position="inside">
                        <page string="Gift Message">
                            <field name="gift_message" colspan="4" nolabel="1"/>
                        </page>
					</xpath>

					<xpath expr="/form/notebook/page/field/form/label[@string='']" position="before">
                        <group colspan="4">
                            <separator string="Gift Option" colspan="4"/>
                            <field name="need_gift_wrap" />
                            <field name="gift_message" colspan="4"/>
                        </group>
					</xpath>

				</data>

			</field>
		</record>


		<record id="view_picking_out_form" model="ir.ui.view">
			<field name="name">product_is_a_gift.view_picking_out_form</field>
			<field name="model">stock.picking</field>
			<field name="inherit_id" ref="stock.view_picking_out_form" />
            <field eval="16" name="priority"/>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<data>

					<xpath expr="/form/notebook" position="inside">
                        <page string="Gift Message">
                            <field name="gift_message" colspan="4" nolabel="1"/>
                        </page>
					</xpath>

					<xpath expr="/form/notebook/page/field/form/label[@string='']" position="before">
                        <group colspan="4">
                            <separator string="Gift Option" colspan="4"/>
                            <field name="need_gift_wrap" />
                            <field name="gift_message" colspan="4"/>
                        </group>
					</xpath>

				</data>

			</field>
		</record>


        <!-- INHERITED VIEW FOR THE OBJECT : stock_move -->

		<record id="view_move_tree" model="ir.ui.view">
			<field name="name">product_is_a_gift.view_move_tree</field>
			<field name="model">stock.move</field>
			<field name="inherit_id" ref="stock.view_move_tree" />
            <field eval="16" name="priority"/>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<data>
					<field name="name" position="after">
						<field name="need_gift_wrap" />
					</field>
				</data>
			</field>
		</record>
    

    </data>
</openerp>