modification :
* put special cancel button with action for cancel/ skip wizard bzr revid: hmo@tinyerp.com-a401f6d6f3192f093a2c45ccbb8c4a2d5482a512
This commit is contained in:
parent
53c78d3889
commit
f3bbfe0a51
|
@ -197,7 +197,7 @@
|
|||
<field domain="[('usage','=','menu')]" name="menu_id" required="True"/>
|
||||
<field colspan="4" name="signature"/>
|
||||
<group col="4" colspan="4">
|
||||
<button icon='gtk-cancel' name="action_next" type='object' string='Skip & Continue'/>
|
||||
<button icon='gtk-cancel' special="cancel" name="action_next" type='object' string='Skip & Continue'/>
|
||||
<button name='action_new' icon='gtk-ok' type='object' string='Add Other User'/>
|
||||
<button name='action_continue' icon='gtk-ok' type='object' string='Continue'/>
|
||||
</group>
|
||||
|
@ -246,7 +246,7 @@ to understand." colspan="2"/>
|
|||
<newline/>
|
||||
|
||||
<group>
|
||||
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
||||
<button icon="gtk-cancel" special="cancel" name="action_cancel" type="object" string="Cancel"/>
|
||||
<button icon="gtk-ok" name="action_set" string="Set" type="object"/>
|
||||
</group>
|
||||
|
||||
|
|
|
@ -242,6 +242,16 @@ class res_config_view(osv.osv_memory):
|
|||
_defaults={
|
||||
'view':lambda *args: 'simple',
|
||||
}
|
||||
|
||||
def action_cancel(self,cr,uid,ids,conect=None):
|
||||
print ' Cancel action'
|
||||
return {
|
||||
'view_type': 'form',
|
||||
"view_mode": 'form',
|
||||
'res_model': 'ir.module.module.configuration.wizard',
|
||||
'type': 'ir.actions.act_window',
|
||||
'target':'new',
|
||||
}
|
||||
def action_set(self, cr, uid, ids, context=None):
|
||||
res=self.read(cr,uid,ids)[0]
|
||||
users_obj = self.pool.get('res.users')
|
||||
|
|
Loading…
Reference in New Issue