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

« back to all changes in this revision

Viewing changes to product_loan/product_view.xml

  • Committer: Alexis de Lattre
  • Date: 2012-07-19 20:39:17 UTC
  • Revision ID: alexis@via.ecp.fr-20120719203917-aen6g9s2wh74onwv
Forgot those 2 files !

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
 
 
3
<!--
 
4
    Copyright (C) 2012 Anevia
 
5
    @author Alexis de Lattre <alexis.delattre@akretion.com>
 
6
    The licence is in the file __openerp__.py
 
7
-->
 
8
 
 
9
<openerp>
 
10
<data>
 
11
 
 
12
<!-- Add field on product.product view -->
 
13
<record id="product_loan_new_field_product_product" model="ir.ui.view">
 
14
    <field name="name">product_loan.new_field_product_product</field>
 
15
    <field name="model">product.product</field>
 
16
    <field name="type">form</field>
 
17
    <field name="inherit_id" ref="stock.view_normal_stock_property_form" />
 
18
    <field name="arch" type="xml">
 
19
        <field name="track_outgoing" position="after">
 
20
            <field name="track_loan" />
 
21
        </field>
 
22
    </field>
 
23
</record>
 
24
 
 
25
<!-- Same on product.template view -->
 
26
<!-- error : There is no view of type 'search' defined for the structure!
 
27
<record id="product_loan_new_field_product_template" model="ir.ui.view">
 
28
    <field name="name">product_loan.new_field_product_template</field>
 
29
    <field name="model">product.template</field>
 
30
    <field name="type">form</field>
 
31
    <field name="inherit_id" ref="product.product_template_form_view"/>
 
32
    <field name="arch" type="xml">
 
33
        <group string="Status" position="after">
 
34
            <group colspan="2" col="2" name="loan">
 
35
                <separator string="Loans" colspan="2"/>
 
36
                <field name="track_loan" />
 
37
            </group>
 
38
        </group>
 
39
    </field>
 
40
</record>
 
41
-->
 
42
 
 
43
</data>
 
44
</openerp>