-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] mail_layout_preview: Migration to 18.0
- Loading branch information
1 parent
6aa3f5c
commit 74c8618
Showing
7 changed files
with
64 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,14 @@ Mail Preview | |
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github | ||
:target: https://github.com/OCA/social/tree/18.0/mail_layout_preview | ||
:alt: OCA/social | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github | ||
:target: https://github.com/OCA/mail/tree/18.0/mail_layout_preview | ||
:alt: OCA/mail | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_layout_preview | ||
:target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_layout_preview | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=18.0 | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
@@ -60,10 +60,10 @@ how to use the links. | |
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_. | ||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_layout_preview%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
`feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_layout_preview%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
|
@@ -81,12 +81,13 @@ Contributors | |
- Simone Orsi <[email protected]> | ||
- Phuc Tran Thanh <[email protected]> | ||
- Son Ho <[email protected]> | ||
- Khoi (Kien Kim) <[email protected]> | ||
|
||
Other credits | ||
------------- | ||
|
||
The development and migration of this module from 15.0 to 16.0 has been | ||
financially supported by: | ||
The development and migration of this module from 15.0 to 16.0 and from | ||
17.0 to 18.0 has been financially supported by: | ||
|
||
- Camptocamp | ||
|
||
|
@@ -103,6 +104,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose | |
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/social <https://github.com/OCA/social/tree/18.0/mail_layout_preview>`_ project on GitHub. | ||
This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/18.0/mail_layout_preview>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
- Simone Orsi \<<[email protected]>\> | ||
- Phuc Tran Thanh \<<[email protected]>\> | ||
- Son Ho \<<[email protected]>\> | ||
- Khoi (Kien Kim) \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
The development and migration of this module from 15.0 to 16.0 has been | ||
financially supported by: | ||
The development and migration of this module from 15.0 to 16.0 and | ||
from 17.0 to 18.0 has been financially supported by: | ||
|
||
- Camptocamp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
|
||
<template id="email_templates_list"> | ||
<t t-call="web.layout"> | ||
<h1> | ||
<template id="email_templates_list"> | ||
<t t-call="web.layout"> | ||
<h1> | ||
Email templates for: <span t-esc="model" /> | ||
</h1> | ||
<t t-if="not templates"> | ||
<p>No template found.</p> | ||
</t> | ||
<t t-if="templates"> | ||
<div class="instructions"> | ||
<p>Here you find all the template for the given model.</p> | ||
<ol> | ||
<li>Find your template</li> | ||
<li>Copy the link</li> | ||
<li> | ||
<t t-if="not templates"> | ||
<p>No template found.</p> | ||
</t> | ||
<t t-if="templates"> | ||
<div class="instructions"> | ||
<p>Here you find all the template for the given model.</p> | ||
<ol> | ||
<li>Find your template</li> | ||
<li>Copy the link</li> | ||
<li> | ||
Paste into the address bar and change the record ID (the last value in the URL). | ||
<br | ||
/>If you don't know the ID of the record, just browse to the record via odoo interface and check its ID in the address bar `#id=XXX`. | ||
/>If you don't know the ID of the record, just browse to the record via odoo interface and check its ID in the address bar `#id=XXX`. | ||
</li> | ||
<li>Load it</li> | ||
</ol> | ||
</div> | ||
<ol class="email-template-list"> | ||
<t t-foreach="templates" t-as="tmpl"> | ||
<t t-set="xid" t-value="xids.get(tmpl.id)" /> | ||
<li class="email-template-item" style="padding:0.5em"> | ||
<strong>Name:</strong> <span class="name" t-field="tmpl.name" /><br /> | ||
<t t-if="xid"> | ||
<strong>XMLID:</strong> <span class="xid" t-esc="xid" /><br /> | ||
</t> | ||
<strong>Link:</strong> | ||
<a | ||
<li>Load it</li> | ||
</ol> | ||
</div> | ||
<ol class="email-template-list"> | ||
<t t-foreach="templates" t-as="tmpl"> | ||
<t t-set="xid" t-value="xids.get(tmpl.id)" /> | ||
<li class="email-template-item" style="padding:0.5em"> | ||
<strong>Name:</strong> | ||
<span class="name" t-field="tmpl.name" /> | ||
<br /> | ||
<t t-if="xid"> | ||
<strong>XMLID:</strong> | ||
<span class="xid" t-esc="xid" /> | ||
<br /> | ||
</t> | ||
<strong>Link:</strong> | ||
<a | ||
class="preview" | ||
t-attf-href="/email-preview/#{model}/#{xid or tmpl.id}/1" | ||
> | ||
Preview | ||
</a><br /> | ||
<a | ||
</a> | ||
<br /> | ||
<a | ||
class="preview" | ||
t-attf-href="/web#id=#{tmpl.id}&view_type=form&model=mail.template" | ||
> | ||
View in backend | ||
</a> | ||
</li> | ||
</t> | ||
</ol> | ||
</t> | ||
</t> | ||
</template> | ||
|
||
</li> | ||
</t> | ||
</ol> | ||
</t> | ||
</t> | ||
</template> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters