[FIX] event: put back country_id related field as needed in event itself (not just website_event)
bzr revid: dle@openerp.com-20140130122051-cm2u2hotlnfv4bxj
This commit is contained in:
parent
1176ef49c1
commit
b3268a48c2
|
@ -160,6 +160,8 @@ class event_event(osv.osv):
|
|||
'email_confirmation_id' : fields.many2one('email.template','Event Confirmation Email', help="If you set an email template, each participant will receive this email announcing the confirmation of the event."),
|
||||
'reply_to': fields.char('Reply-To Email', size=64, readonly=False, states={'done': [('readonly', True)]}, help="The email address of the organizer is likely to be put here, with the effect to be in the 'Reply-To' of the mails sent automatically at event or registrations confirmation. You can also put the email address of your mail gateway if you use one."),
|
||||
'address_id': fields.many2one('res.partner','Location', readonly=False, states={'done': [('readonly', True)]}),
|
||||
'country_id': fields.related('address_id', 'country_id',
|
||||
type='many2one', relation='res.country', string='Country', readonly=False, states={'done': [('readonly', True)]}, store=True),
|
||||
'description': fields.html(
|
||||
'Description', readonly=False,
|
||||
states={'done': [('readonly', True)]},
|
||||
|
|
|
@ -101,8 +101,6 @@ class event(osv.osv):
|
|||
'website_url': fields.function(_website_url, string="Website url", type="char"),
|
||||
'show_menu': fields.function(_get_show_menu, fnct_inv=_set_show_menu, type='boolean', string='Dedicated Menu'),
|
||||
'menu_id': fields.many2one('website.menu', 'Event Menu'),
|
||||
'country_id': fields.related('address_id', 'country_id',
|
||||
type='many2one', relation='res.country', string='Country', readonly=False, states={'done': [('readonly', True)]}, store=True),
|
||||
}
|
||||
_defaults = {
|
||||
'show_menu': False,
|
||||
|
|
Loading…
Reference in New Issue