1
<?xml version="1.0" encoding="utf-8"?>
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
11
<!-- CREATED VIEW FOR THE OBJECT : product_product -->
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">
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)]}"/>
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'>
38
<field name="attribute_set_id" />
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"/>