forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 1
/
lot_view.xml
49 lines (45 loc) · 2.03 KB
/
lot_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
43
44
45
46
47
48
49
<?xml version="1.0" encoding="utf-8"?>
<!--
production_lot_custom_attributes for OpenERP
Copyright (C) 2011-2013 Akretion (http://www.akretion.com/)
@author: Benoît GUILLOT <[email protected]>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record model="ir.ui.view" id="lot_form_view_set_button">
<field name="name">attributes.lot.normal.form</field>
<field name="model">stock.production.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_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="lot_attributes_form_view">
<field name="name">lot.attributes.normal.wizard</field>
<field name="model">stock.production.lot</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<form string="Lot" 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_lot_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>