[IMP] set email button and chenge text of user_id field

bzr revid: kjo@tinyerp.com-20120627130147-tktvn9b5cdsblzp0
This commit is contained in:
Kuldeep Joshi (OpenERP) 2012-06-27 18:31:47 +05:30
parent 3fe1f0c57d
commit 32b030c763
2 changed files with 6 additions and 5 deletions

View File

@ -326,7 +326,7 @@ class event_registration(osv.osv):
'log_ids': fields.one2many('mail.message', 'res_id', 'Logs', domain=[('email_from', '=', False),('model','=',_name)]),
'event_end_date': fields.related('event_id','date_end', type='datetime', string="Event End Date", readonly=True),
'event_begin_date': fields.related('event_id', 'date_begin', type='datetime', string="Event Start Date", readonly=True),
'user_id': fields.many2one('res.users', 'Attendee (user)', states={'done': [('readonly', True)]}),
'user_id': fields.many2one('res.users', 'User', states={'done': [('readonly', True)]}),
'company_id': fields.related('event_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True, states={'draft':[('readonly',False)]}),
'state': fields.selection([('draft', 'Unconfirmed'),
('cancel', 'Cancelled'),

View File

@ -71,7 +71,7 @@
<div class="oe_right oe_button_box">
<button name="%(event.act_event_list_register_event)d" type="action" string="Registration" icon="gtk-index" help="Register with this event"/>
</div>
<!--div class="oe_right" style="height: 200px"></div-->
<div class="oe_title" style="width: 650px" >
<label for="name" class="oe_edit_only"/>
<group colspan="6" col="6">
@ -99,6 +99,7 @@
</group>
</group>
</div>
<!-- <div class="oe_right" style="height: 200px"></div> -->
<notebook>
<page string="Event Description">
<field name="note" colspan="4" nolabel="1"/>
@ -404,11 +405,11 @@
<field name="name" invisible="1"/>
<field name="partner_id" attrs="{'readonly':[('state','!=', 'draft')]}" on_change="onchange_partner_id(partner_id, context)"/>
<label for="email" string="E-Mail"/>
<group colspan="1">
<field name="email" invisible="1"/>
<group col="2">
<field name="email" nolabel="1" class="oe_inline"/>
<button string="Send New Email"
name="%(mail.action_email_compose_message_wizard)d"
icon="terp-mail-message-new" context= '{"default_email_to":email}' type="action"/>
icon="terp-mail-message-new" context= '{"default_email_to":email}' type="action" class="oe_inline"/>
</group>
</group>
<group colspan="2">