summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/mail.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-09-06 15:42:01 +0200
committerThibault Delavallée <tde@openerp.com>2012-09-06 15:42:01 +0200
commit9b9bdae9e008e930eaf1cf208b90f66bdbdf4e7d (patch)
tree7b222d9d89e8c2c8c17f46d3cb0b847dbcb35236 /addons/mail/static/src/xml/mail.xml
parenta1fe4532239a343054e0d3a05df94dd68f7ac359 (diff)
[IMP] composer: attachments are attached to the mail.compose.message record, not the related document anymore. This way, when deleting the mail.compose.message, attachments will be unlinked. Added deletion cascaded to res_model and res_id = 0, because of attachments added on a not-already-saved composer. BTW, cleaned mail/__openerp__.py.
bzr revid: tde@openerp.com-20120906134201-8845xov0mjbxh8mr
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
-rw-r--r--addons/mail/static/src/xml/mail.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index 49e861ac870..161c5e2fcbc 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -81,8 +81,8 @@
<t t-call="HiddenInputFile">
<t t-set="fileupload_id" t-value="widget.fileupload_id"/>
<t t-set="fileupload_action">/web/binary/upload_attachment</t>
- <input type="hidden" name="model" t-att-value="widget.options.context.default_model"/>
- <input type="hidden" name="id" t-att-value="widget.options.context.default_res_id"/>
+ <input type="hidden" name="model" t-att-value="widget.form_view.model"/>
+ <input type="hidden" name="id" t-att-value="widget.form_view.datarecord.id || 0"/>
<input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
</t>
</t>