[FIX] [TMP] mail: tmp fix of Compose a new message box. Also set some fields of the mail.compose.message wizard visible, to ease debugging. This will have to be removed.

bzr revid: tde@openerp.com-20121031165207-wnz41v2wrdfhuus0
This commit is contained in:
Thibault Delavallée 2012-10-31 17:52:07 +01:00
parent 35ef78f331
commit e21e4e178e
2 changed files with 6 additions and 6 deletions

View File

@ -138,7 +138,7 @@ openerp.mail = function (session) {
default_parent_id: false }, options.context || {});
// data of this message
this.id = datasets.id || -1,
this.id = datasets.id || false,
this.last_id = this.id,
this.model = datasets.model || false,
this.res_model = datasets.res_model || false;

View File

@ -8,11 +8,11 @@
<form string="Compose Email" version="7.0">
<group>
<!-- truly invisible fields for control and options -->
<field name="composition_mode" invisible="1"/>
<field name="model" invisible="1"/>
<field name="res_id" invisible="1"/>
<field name="parent_id" invisible="1"/>
<field name="content_subtype" invisible="1"/>
<field name="composition_mode" invisible="0"/>
<field name="model" invisible="0"/>
<field name="res_id" invisible="0"/>
<field name="parent_id" invisible="0"/>
<field name="content_subtype" invisible="0"/>
<!-- visible wizard -->
<field name="partner_ids" widget="many2many_tags" placeholder="Add contacts to notify..."
context="{'force_email':True}"