I'm using OpenERP V7,need some basic helps. Added a new icon in POLine
Create new Xml,py file under Wizard in Purchase Module.
add.xml code:
<openerp>
<data>
<record id="add_slab_form" model="ir.ui.view">
<field name="name">Add Slab</field>
<field name="model">add.slab</field>
<field name="arch" type="xml">
<form string="Add Slab" version="7.0">
<footer>
<button name="add_info" string="Add" type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel" />
</footer>
</form>
</field>
</record>
<record id="add_slab_action" model="ir.actions.act_window">
</record>
</data>
Form view get installed and i cant see the action view.
Button Action Code called in purchase_view.xml file
<button name="%(add_slab_action)d" icon="gtk-add" string="Add Slab" type="action"/>
add.py
def add_slab_action(self, cr, uid, ids, context=None):
return {
'type': 'ir.actions.act_window',
}
I got an error : ValueError: No such external ID currently defined in the system: purchase.add_slab_action
Button Action is not performing ,How do i resolve?