lot_view.xml 2.03 KB
<?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 <benoit.guillot@akretion.com>
  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>