diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-08-22 18:21:51 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-08-22 18:21:51 +0200 |
| commit | 4e6e86fab535e217bbe548ee932bdcca1346e9f0 (patch) | |
| tree | 14d85f2e57dd63e53d053a9027463e37770726e8 /addons/mail/wizard/mail_compose_message_view.xml | |
| parent | 9c3e45579958d2dcfd02990d6cc6858c46f1bc1b (diff) | |
[IMP] [CLEAN] [WIP] composer: cleaning of the server-side code. It now relies less on context keys and values; some fields have been added to manage the composition mode, model, res_id and message_id as a classic form. Updated form view, with invisible fields, to have those value accessible and modifiable through onchange or through JS. Updated JS-part of the composer to handle the new composer; less options, less logic client-side ! Still not finished, short in time today (have to check mass_mail, templates).
bzr revid: tde@openerp.com-20120822162151-n9o23ik0v45h7v6j
Diffstat (limited to 'addons/mail/wizard/mail_compose_message_view.xml')
| -rw-r--r-- | addons/mail/wizard/mail_compose_message_view.xml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/addons/mail/wizard/mail_compose_message_view.xml b/addons/mail/wizard/mail_compose_message_view.xml index a10dc6ccc86..8bf8df24f59 100644 --- a/addons/mail/wizard/mail_compose_message_view.xml +++ b/addons/mail/wizard/mail_compose_message_view.xml @@ -38,8 +38,13 @@ <field name="arch" type="xml"> <form string="Compose Email" version="7.0" > <group> + <field name="composition_mode" colspan="2" nolabel="1" invisible="1"/> + <field name="model" colspan="2" nolabel="1" invisible="1"/> + <field name="res_id" colspan="2" nolabel="1" invisible="1"/> + <field name="parent_id" colspan="2" nolabel="1" invisible="1"/> <!-- truly invisible fields for control and options --> <field name="content_subtype" colspan="2" nolabel="1" invisible="1"/> + <!-- visible wizard --> <field name="subject" colspan="2" nolabel="1" placeholder="Subject..." class="oe_mail_compose_message_subject" attrs="{'invisible':[('content_subtype', '=', 'plain')]}"/> @@ -49,9 +54,9 @@ <field name="body" colspan="2" nolabel="1" placeholder="What are you working on ?" class="oe_mail_compose_message_body_html" attrs="{'invisible':[('content_subtype', '=', 'plain')]}"/> - <field name="dest_partner_ids" colspan="2" nolabel="1" widget="many2many_tags" placeholder="Add contacts to notify..." + <field name="partner_ids" colspan="2" nolabel="1" widget="many2many_tags" placeholder="Add contacts to notify..." context="{'force_create':True}" - on_change="onchange_dest_partner_ids(dest_partner_ids)" + on_change="onchange_partner_ids(partner_ids)" class="oe_mail_compose_message_partner_ids"/> <field name="attachment_ids" colspan="2" nolabel="1" widget="many2many_tags" placeholder="Add attachments..." invisible="1" @@ -69,7 +74,7 @@ help="Add an attachment"/> <button icon="/mail/static/src/img/formatting.png" class="oe_mail_compose_message_formatting" string="" - type="object" name="toggle_formatting" + type="object" name="toggle_content_subtype" help="Toggle advanced formatting mode"/> </div> </group> |
