[REF] add set to draft for registration
bzr revid: mva@openerp.com-20120209103357-ih10pp1u04dgp9hm
This commit is contained in:
parent
641237e86d
commit
c8d0bb13f8
|
@ -221,6 +221,8 @@ class event_registration(osv.osv):
|
|||
'user_id': lambda self, cr, uid, ctx: uid,
|
||||
}
|
||||
|
||||
def do_draft(self, cr, uid, ids, context=None):
|
||||
return self.write(cr, uid, ids, {'state': 'draft'}, context=context)
|
||||
def do_open(self, cr, uid, ids, context=None):
|
||||
""" Open Registration
|
||||
"""
|
||||
|
@ -229,7 +231,7 @@ class event_registration(osv.osv):
|
|||
self.message_append(cr, uid, ids, _('Open'))
|
||||
return res
|
||||
|
||||
def do_close(self, cr, uid, ids, context=None):
|
||||
def case_close(self, cr, uid, ids, context=None):
|
||||
""" Close Registration
|
||||
"""
|
||||
if context is None:
|
||||
|
|
|
@ -292,6 +292,7 @@
|
|||
<button name="case_close" string="Close Registration" states="open" type="object" icon="gtk-close"/>
|
||||
<button name="case_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
|
||||
<button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
|
||||
<button name="do_draft" string="Set To Draft" states="cancel,done" type="object" icon="gtk-convert"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -333,6 +334,7 @@
|
|||
<button name="button_reg_cancel" string="Cancel Registration" states="draft,open" type="object" icon="gtk-cancel"/>
|
||||
<button name="button_reg_close" string="Close Registration" states="open" type="object" icon="gtk-close"/>
|
||||
<button name="case_open" string="Confirm Registration" states="draft" type="object" icon="gtk-apply"/>
|
||||
<button string="Set To Draft" name="do_draft" states="cancel" type="object" icon="gtk-convert"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Emails" groups="base.group_extended">
|
||||
|
|
Loading…
Reference in New Issue