~angelmoya/product-extra-addons/nan_product_pack

« back to all changes in this revision

Viewing changes to product_custom_attributes/product_view.xml

  • Committer: Benoit Guillot
  • Date: 2012-08-03 14:33:51 UTC
  • Revision ID: benoit.guillot@akretion.com.br-20120803143351-bft9u8x3cqlduuy3
[ADD] module product_custom_attributes: manage the product attributes and their options

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<!--
 
3
  product_custom_attributes for OpenERP
 
4
  Copyright (C) 2011 Akretion Benoît GUILLOT <benoit.guillot@akretion.com>
 
5
  The licence is in the file __openerp__.py
 
6
-->
 
7
 
 
8
<openerp>
 
9
    <data>
 
10
 
 
11
        <!-- CREATED VIEW FOR THE OBJECT : product_product -->
 
12
 
 
13
        <record model="ir.ui.view" id="product_product_form_view_set_button">
 
14
            <field name="name">attributes.product.normal.form</field>
 
15
            <field name="model">product.product</field>
 
16
            <field name="inherit_id" ref="product.product_normal_form_view" />
 
17
            <field name="type">form</field>
 
18
            <field name="arch" type="xml">
 
19
                <data>
 
20
                    <xpath expr="/form/group/group/field[@name='name']" position="after">
 
21
                        <group name="attribute_fields" colspan="2" col="4" >
 
22
                            <field name="attribute_set_id" colspan="3"/>
 
23
                            <button name="open_attributes" string="Open Attributes" type="object" icon="gtk-ok" colspan="1" attrs="{'invisible':[('attribute_set_id', '=', False)]}"/>
 
24
                        </group>
 
25
                    </xpath>
 
26
                </data>
 
27
            </field>
 
28
        </record>
 
29
 
 
30
        <record model="ir.ui.view" id="product_attributes_form_view">
 
31
            <field name="name">product.attributes.normal.wizard</field>
 
32
            <field name="model">product.product</field>
 
33
            <field name="type">form</field>
 
34
            <field name="arch" type="xml">
 
35
                <form string="Product">
 
36
                    <group name="name_set" colspan='4' col='8'>
 
37
                        <field name="name"/>
 
38
                        <field name="attribute_set_id" />
 
39
                    </group>
 
40
                    <separator string="attributes_placeholder" colspan="4"/>
 
41
                    <group colspan='4' col='4'>
 
42
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
 
43
                        <button icon="gtk-ok" name="save_and_close_product_attributes" string="Save and Close" type="object"/>
 
44
                    </group>
 
45
                </form>
 
46
            </field>
 
47
        </record>
 
48
 
 
49
    </data>
 
50
</openerp>