[IMP] mass_mailing :handle attachments for mailings
bzr revid: tde@openerp.com-20140415110439-j72v9cnz3nml7g04
This commit is contained in:
parent
922e8b610f
commit
7e1e475d89
|
@ -314,6 +314,10 @@ class MassMailing(osv.Model):
|
|||
'create_date': fields.datetime('Creation Date'),
|
||||
'sent_date': fields.datetime('Sent Date'),
|
||||
'body_html': fields.html('Body'),
|
||||
'attachment_ids': fields.many2many(
|
||||
'ir.attachment', 'mass_mailing_ir_attachments_rel',
|
||||
'mass_mailing_id', 'attachment_id', 'Attachments'
|
||||
),
|
||||
'mass_mailing_campaign_id': fields.many2one(
|
||||
'mail.mass_mailing.campaign', 'Mass Mailing Campaign',
|
||||
ondelete='set null',
|
||||
|
|
|
@ -246,12 +246,13 @@
|
|||
<page string="Mail Body">
|
||||
<button name="action_edit_html" type="object" string="Design Email" class="oe_highlight" states="draft"/>
|
||||
<button name="action_edit_html" type="object" string="Change Email Design" states="test"/>
|
||||
<div attrs="{'invisible' : ['|', ('body_html','!=',False), ('mailing_domain', '!=', False)]}" class="oe_view_nocontent oe_clear">
|
||||
<div attrs="{'invisible' : ['|', ('state', '=', 'done'), ('body_html','!=',False)]}" class="oe_view_nocontent oe_clear">
|
||||
<p class="oe_view_nocontent_create oe_edit_only">
|
||||
Click to design your email.
|
||||
</p>
|
||||
</div>
|
||||
<field name="body_html" readonly="1"/>
|
||||
<field name="attachment_ids" widget="many2many_binary" string="Attach a file"/>
|
||||
</page>
|
||||
<page string="Options">
|
||||
<group>
|
||||
|
|
Loading…
Reference in New Issue