Skip to content

Commit

Permalink
[FIX] event_registration_cancel_reason: Module category/Multi support…
Browse files Browse the repository at this point in the history
…/text
  • Loading branch information
pedrobaeza committed Feb 14, 2016
1 parent bc7f761 commit 7082f41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion event_registration_cancel_reason/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Odoo Community Association (OCA)",
"website": "https://www.antiun.com",
"category": "Customer Relationship Management",
"category": "Event Management",
"depends": [
'event',
],
Expand Down
2 changes: 1 addition & 1 deletion event_registration_cancel_reason/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ msgstr "Razón"

#. module: event_registration_cancel_reason
#: field:event.registration,cancel_reason_id:0
msgid "Reason for cancellation"
msgid "Cancellation reason"
msgstr "Razón para la cancelación"

#. module: event_registration_cancel_reason
Expand Down
6 changes: 3 additions & 3 deletions event_registration_cancel_reason/models/event_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class EventRegistration(models.Model):

cancel_reason_id = fields.Many2one(
comodel_name='event.registration.cancel.reason', readonly=True,
string="Reason for cancellation", ondelete="restrict")
string="Cancellation reason", ondelete="restrict")

@api.multi
def button_reg_cancel(self):
Expand All @@ -26,10 +26,10 @@ def button_reg_cancel(self):
'target': 'new',
}

@api.one
@api.multi
def do_draft(self):
super(EventRegistration, self).do_draft()
self.cancel_reason_id = False
self.write({'cancel_reason_id': False})


class EventRegistrationCancelReason(models.Model):
Expand Down

0 comments on commit 7082f41

Please sign in to comment.