~zaber/openobject-addons/stable_5.0-extra-addons

« back to all changes in this revision

Viewing changes to c2c_magento_product_link/product_view.xml

  • Committer: nicolas.bessi at camptocamp
  • Date: 2010-10-18 07:28:48 UTC
  • Revision ID: nicolas.bessi@camptocamp.com-20101018072848-k0wckll0tjwfihz9
[ADD] c2c_magento_product_link

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
        
 
5
        <record model="ir.ui.view" id="product_relation_form">
 
6
            <!-- must be unique in this module. -->
 
7
            <field name="name">product.relation.form</field>
 
8
            <field name="model">magento.product.relation</field>
 
9
            <!--parent python entity -->
 
10
            <!-- modulename.view -->
 
11
            <field name="type">form</field>
 
12
            <field name="arch" type="xml">
 
13
                <form>
 
14
                    <field name="product_id" select="1" />
 
15
                    <field name="related_product" select="1" />
 
16
                    <field name="type" select="1" />
 
17
                    <separator string="Magento Values" colspan="4"/>
 
18
                    <field name="value_ids" colspan="4" nolabel="1">
 
19
                        <form>
 
20
                            <field name="name"/>
 
21
                            <field name="value" />
 
22
                        </form>
 
23
                        <tree>
 
24
                            <field name="name"/>
 
25
                            <field name="value" />
 
26
                        </tree>
 
27
                    </field>
 
28
                </form>
 
29
            </field>
 
30
        </record>  
 
31
        
 
32
        <record model="ir.ui.view" id="product_relation_tree">
 
33
            <!-- must be unique in this module. -->
 
34
            <field name="name">product.relation.tree</field>
 
35
            <field name="model">magento.product.relation</field>
 
36
            <!--parent python entity -->
 
37
            <!-- modulename.view -->
 
38
            <field name="type">form</field>
 
39
            <field name="arch" type="xml">
 
40
                <tree>
 
41
                    <field name="product_id" select="1" />
 
42
                    <field name="related_product" select="1" />
 
43
                    <field name="type" select="1" />
 
44
                </tree>
 
45
            </field>
 
46
        </record>   
 
47
        
 
48
        <record model="ir.ui.view" id="product_custom_product">
 
49
            <field name="name">product.normal.form.custom.inherit</field>
 
50
            <field name="model">product.product</field>
 
51
            <field name="inherit_id" ref="product.product_normal_form_view"/>
 
52
            <field name="type">form</field>
 
53
            <field name="arch" type="xml">
 
54
                <notebook position="inside">
 
55
                    <page string="Magento Product Link">
 
56
                        <separator string="Cross Selling  " colspan="4"/>
 
57
                        <field name="magerp_cross_selling" colspan="4"  nolabel="1" >
 
58
                            <form>
 
59
                                <field name="related_product" select="1" />
 
60
                                <field name="type" select="1" />
 
61
                                <separator string="Magento Values" colspan="4"/>
 
62
                                <field name="value_ids" colspan="4" nolabel="1">
 
63
                                    <form>
 
64
                                        <field name="name"/>
 
65
                                        <field name="value" />
 
66
                                    </form>
 
67
                                    <tree>
 
68
                                        <field name="name"/>
 
69
                                        <field name="value" />
 
70
                                    </tree>
 
71
                                </field>
 
72
                            </form>
 
73
                            
 
74
                        </field>
 
75
                        <!-- <separator string="Related Selling  " colspan="4"/>
 
76
                            <field name="magerp_related_selling"  nolabel="1" domain="[('type', '=', 'related')]"/>
 
77
                            <separator string="Up Selling  " colspan="4"/>
 
78
                            <field name="magerp_up_selling"  nolabel="1" domain="[('type', '=', 'up_sell')]"/> -->
 
79
                    </page>
 
80
                </notebook>
 
81
            </field>
 
82
        </record>
 
83
    </data>
 
84
</openerp>
 
 
b'\\ No newline at end of file'