[IMP] base, mail, survey: improves slightly the UX

Improves UX by adding placeholders to clarify the purpose of some inputs and
changing some field layout to ease the edition (with the use of multi-lined
editor).

Details:
Some placeholders have been added:
- description field of survey.question
- default_note field of mail.activity.type
- summary of mail_activity_type_view_form

Some field layout have been turned into multi-lined editor:
- default_note field of mail.activity.type
- write a message in mass mail mode (email_compose_message_wizard_form)

added border for field help of edit action (class oe-bordered-editor)

Task-2766291

closes odoo/odoo#85046

Related: odoo/enterprise#24599
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
Pierre-Yves Dufays
2022-05-19 15:23:55 +02:00
parent 40b10d0295
commit fe2f4fee18
4 changed files with 7 additions and 7 deletions
+3 -4
View File
@@ -19,7 +19,7 @@
<field name="res_model" groups="base.group_no_one"/>
<field name="res_model_change" invisible="1"/>
<field name="initial_res_model" invisible="1"/>
<field name="summary"/>
<field name="summary" placeholder="e.g. &quot;Discuss proposal&quot;"/>
<field name="icon" groups="base.group_no_one"/>
<field name="decoration_type" groups="base.group_no_one"/>
</group>
@@ -44,9 +44,8 @@
</div>
</group>
</group>
<group>
<field name="default_note"/>
</group>
<label for="default_note" class="font-weight-bold"/>
<field nolabel="1" name="default_note" placeholder="e.g. &quot;Go over the offer and discuss details&quot;" class="oe-bordered-editor"/>
<p class="alert alert-info" role="alert" attrs="{'invisible': [('res_model_change', '=', False)]}">Modifying the model can have an impact on existing activities using this activity type, be careful.</p>
</sheet>
</form>
@@ -43,7 +43,7 @@
<notebook attrs="{'invisible': [('composition_mode', '!=', 'mass_mail')]}">
<page string="Content">
<div>
<field name="body" placeholder="Write your message here..." options="{'style-inline': true}" attrs="{'readonly': [('can_edit_body', '=', False)]}" force_save="1"/>
<field name="body" class="oe-bordered-editor" placeholder="Write your message here..." options="{'style-inline': true}" attrs="{'readonly': [('can_edit_body', '=', False)]}" force_save="1"/>
<group col="4">
<field name="attachment_ids" widget="many2many_binary" string="Attach a file" nolabel="1" colspan="2"/>
<field name="template_id" string="Load template" options="{'no_create': True}"
@@ -162,7 +162,8 @@
</group>
</page>
<page string="Description" name="survey_description">
<field name="description" widget="html"/>
<field name="description" widget="html"
placeholder="e.g. Guidelines, instructions, picture, ... to help attendees answer"/>
</page>
<page string="Options" name="options" attrs="{'invisible': [('is_page', '=', True)]}">
<group>
+1 -1
View File
@@ -182,7 +182,7 @@
</group>
</group>
<group name="help" string="Help">
<field colspan="2" name="help" nolabel="1"/>
<field colspan="2" name="help" nolabel="1" class="oe-bordered-editor"/>
</group>
<group name="views_tree" string="Views">
<field colspan="2" name="view_ids" nolabel="1">