Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
aa6ee3fd
Commit
aa6ee3fd
authored
9 years ago
by
qsm-odoo
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] mail: design for template use in mail dialog
parent
09d7250a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/mail/wizard/mail_compose_message_view.xml
+7
-12
7 additions, 12 deletions
addons/mail/wizard/mail_compose_message_view.xml
with
7 additions
and
12 deletions
addons/mail/wizard/mail_compose_message_view.xml
+
7
−
12
View file @
aa6ee3fd
...
...
@@ -58,22 +58,17 @@
'required':[('no_auto_thread', '=', True), ('composition_mode', '=', 'mass_mail')]}"
/>
</group>
<field
name=
"body"
options=
"{'style-inline': true}"
/>
<field
name=
"attachment_ids"
widget=
"many2many_binary"
string=
"Attach a file"
/>
<group
col=
"4"
>
<field
name=
"attachment_ids"
widget=
"many2many_binary"
string=
"Attach a file"
nolabel=
"1"
colspan=
"2"
/>
<field
name=
"template_id"
options=
"{'no_create': True}"
context=
"{'default_model': model, 'default_body_html': body, 'default_subject': subject}"
/>
</group>
<footer>
<button
string=
"Send"
name=
"send_mail_action"
type=
"object"
class=
"btn-primary"
/>
<button
string=
"Cancel"
class=
"btn-default"
special=
"cancel"
/>
<group
class=
"oe_right oe_form"
col=
"1"
>
<div>
Use template
<!--FIX: To avoid css issue of many2one field in footer temporary used oe_form (BUG:1152464)-->
<field
name=
"template_id"
nolabel=
"1"
class=
'oe_inline'
options=
"{'no_create': True}"
context=
"{'default_model': model, 'default_body_html': body, 'default_subject': subject}"
/>
</div>
<button
icon=
"/mail/static/src/img/email_template_save.png"
type=
"object"
name=
"save_as_template"
string=
"Save as new template"
class=
"oe_link"
help=
"Save as a new template"
/>
</group>
<button
icon=
"fa-lg fa-save"
type=
"object"
name=
"save_as_template"
string=
"Save as new template"
class=
"pull-right btn-default"
help=
"Save as a new template"
/>
</footer>
</form>
</field>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment