forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
partner_view.xml
42 lines (38 loc) · 1.49 KB
/
partner_view.xml
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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="res_partner_form_view_set_button">
<field name="name">attributes.partner.normal.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page string="Attributes">
<group name="attribute_fields">
<field name="attribute_set_id" />
<button name="open_attributes" string="Open Attributes" type="object" icon="gtk-ok" attrs="{'invisible':[('attribute_set_id', '=', False)]}"/>
</group>
</page>
</notebook>
</field>
</record>
<record model="ir.ui.view" id="partner_attributes_form_view">
<field name="name">partner.attributes.normal.wizard</field>
<field name="model">res.partner</field>
<field name="arch" type="xml">
<form string="partner" version="7.0">
<group name="name_set">
<field name="name"/>
<field name="attribute_set_id" />
</group>
<separator string="attributes_placeholder" colspan="4"/>
<footer>
<button name="save_and_close_partner_attributes" string="Save and Close" type="object" class="oe_highlight"/>
or
<button special="cancel" string="Cancel" class="oe_link"/>
</footer>
</form>
</field>
</record>
</data>
</openerp>