I have simple code.
python:
class Test(osv.osv):
_name= 'test.name'
_columns= {
'name' = fields.char('Name')
}
xml:
<record model="ir.ui.view" id="test_form_view">
<field name="name">Test</field>
<field name="model">test.name</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form version="7.0">
<sheet>
<group>
<field name="name"/>
</group>
</sheet>
</form>
</field>
</record>
I'd like to open a form view, same as after clicking one2many field (with buttons save&close
, save&new
, discard
), so I could hit save&new button and directly add new entry without closing and reopening new form.
Is there any chance to do this? (without manually creating form that has custom buttons)