[IMP] renamings & reformattings of button names

bzr revid: xmo@tinyerp.com-20091207182830-27bpxe68g9o31j26
This commit is contained in:
Xavier Morel 2009-12-07 19:28:30 +01:00
parent ad4eff0eb3
commit c47d3ab275
2 changed files with 8 additions and 5 deletions

View File

@ -236,8 +236,10 @@
nolabel="1" colspan='1'/>
<label string='' colspan='1'/>
<group col="4" colspan="2">
<button icon='gtk-cancel' special="cancel" name="action_next" type='object' string='Skip'/>
<button name='action_new' icon='gtk-ok' type='object' string='Add User'/>
<button name="action_skip" icon="gtk-cancel" special="cancel"
string='Skip' type='object'/>
<button name='action_next' icon='gtk-ok'
string='Add User' type='object'/>
</group>
</form>
</field>
@ -273,7 +275,8 @@
colspan="1" />
<label string='' colspan='1'/>
<group colspan="2" col="2">
<button icon="gtk-ok" name="action_set" string="Set" type="object"/>
<button name="action_next" icon="gtk-ok"
string="Set" type="object"/>
</group>
</form>
</field>

View File

@ -305,9 +305,9 @@ class res_config_view(osv.osv_memory):
'view':lambda *args: 'simple',
}
def action_cancel(self,cr,uid,ids,conect=None):
def action_skip(self,cr,uid,ids,conect=None):
return self.next(cr, uid)
def action_set(self, cr, uid, ids, context=None):
def action_next(self, cr, uid, ids, context=None):
res=self.read(cr,uid,ids)[0]
users_obj = self.pool.get('res.users')
group_obj=self.pool.get('res.groups')