~openerp-community/openobject-addons/trunk-addons-community

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
<?xml version="1.0" encoding="utf-8"?>

<!--
    Copyright (C) 2012 Anevia
    @author Alexis de Lattre <alexis.delattre@akretion.com>
    The licence is in the file __openerp__.py
-->

<openerp>
<data>

<!-- Add field on product.product view -->
<record id="product_loan_new_field_product_product" model="ir.ui.view">
    <field name="name">product_loan.new_field_product_product</field>
    <field name="model">product.product</field>
    <field name="type">form</field>
    <field name="inherit_id" ref="stock.view_normal_stock_property_form" />
    <field name="arch" type="xml">
        <field name="track_outgoing" position="after">
            <field name="track_loan" />
        </field>
    </field>
</record>

<!-- Same on product.template view -->
<!-- error : There is no view of type 'search' defined for the structure!
<record id="product_loan_new_field_product_template" model="ir.ui.view">
    <field name="name">product_loan.new_field_product_template</field>
    <field name="model">product.template</field>
    <field name="type">form</field>
    <field name="inherit_id" ref="product.product_template_form_view"/>
    <field name="arch" type="xml">
        <group string="Status" position="after">
            <group colspan="2" col="2" name="loan">
                <separator string="Loans" colspan="2"/>
                <field name="track_loan" />
            </group>
        </group>
    </field>
</record>
-->

</data>
</openerp>