~vauxoo/addons-vauxoo/7.0-addons-vauxoo-send_email_add_follower-dev-julio

« back to all changes in this revision

Viewing changes to product_images_olbs/views/product_images_view.xml

  • Committer: nhomar at vauxoo
  • Date: 2012-02-29 21:34:56 UTC
  • mto: This revision was merged to the branch mainline in revision 134.
  • Revision ID: nhomar@vauxoo.com-20120229213456-s73iizg1wufx778w
[FORK] Forking module from extra-addons

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
        <data>
 
4
                <record id="view_product_image_form" model="ir.ui.view">
 
5
                        <field name="name">product.images.form</field>
 
6
                        <field name="model">product.images</field>
 
7
                        <field name="type">form</field>
 
8
                        <field name="arch" type="xml">
 
9
                                <form string="Product Images">
 
10
                                        <notebook colspan="4">
 
11
                                                <page string="Image">
 
12
                                                        <group col="4" colspan="4">
 
13
                                                                <field name="name" colspan="2" />
 
14
                                                                <field name="link" colspan="2" />
 
15
                                                        </group>
 
16
                                                        <group col="4" colspan="4" attrs="{'invisible':[('link','!=',0)]}">
 
17
                                                                <field name="image" colspan="4" attrs="{'required':[('link','=', False)]}"/>
 
18
                                                        </group>
 
19
                                                        <group col="4" colspan="4" attrs="{'invisible':[('link','=',0)]}">
 
20
                                                                <field name="filename" colspan="4" widget="url" attrs="{'required':[('link','=', True)]}"/>
 
21
                                                        </group>
 
22
                                                        <separator string="Preview (Only when saved)" colspan="4" />
 
23
                                                        <field name="preview" widget="image" nolabel="1" colspan="4"/>
 
24
                                                </page>
 
25
                                                <page string="Comments">
 
26
                                                        <field name="comments" nolabel="1" colspan="4" />
 
27
                                                </page>
 
28
                                        </notebook>
 
29
                                </form>
 
30
                        </field>
 
31
                </record>
 
32
                <record id="view_product_image_tree" model="ir.ui.view">
 
33
                        <field name="name">product.images.tree</field>
 
34
                        <field name="model">product.images</field>
 
35
                        <field name="type">tree</field>
 
36
                        <field name="arch" type="xml">
 
37
                                <tree string="Product Images">
 
38
                                        <field name="name" select="1" />
 
39
                                        <field name="image" />
 
40
                                        <field name="comments" select="2" />
 
41
                                </tree>
 
42
                        </field>
 
43
                </record>
 
44
                <record id="view_product_form_img_inh" model="ir.ui.view">
 
45
                        <field name="name">product.product.images</field>
 
46
                        <field name="model">product.product</field>
 
47
                        <field name="inherit_id" ref="product.product_normal_form_view" />
 
48
                        <field name="type">tree</field>
 
49
                        <field name="arch" type="xml">
 
50
                                <xpath expr="/form/notebook" position="inside">
 
51
                                        <page string="Images">
 
52
                                                <field name="image_ids" nolabel="1" />
 
53
                                        </page>
 
54
                                </xpath>
 
55
                        </field>
 
56
                </record>
 
57
 
 
58
       <act_window name="Images"
 
59
            domain="[('product_id', '=', active_id)]"
 
60
            context="{'default_product_id': active_id}"
 
61
            res_model="product.images"
 
62
            src_model="product.product"
 
63
            id="act_product_2_images"/>
 
64
        </data>
 
65
</openerp>