diff options
| author | Simon Genin (ges) <ges@odoo.com> | 2020-07-30 20:21:03 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2020-09-01 08:58:40 +0000 |
| commit | c121a246f16899735306266a3a12b526e08e7620 (patch) | |
| tree | 489c09e57ae1c46a28c3c51d7b97f08c29917479 /addons/web/static/src/xml/base.xml | |
| parent | e43c35d3c95c58d6d6af424d4eebf8244c83f332 (diff) | |
[IMP] base: Document layout preview improvements
The document layout preview is a complete defferent simplified template
with its own css that replicates at best the different styles.
It does not have the external layout features and lack of fidelity.
The new preview actually use the real documents templates and put the
result in an iframe. It now has a high fidelity, though not perfect.
The goal is for a better onboarding, where clients see easely how
documents will look if they had an app to generate them. Of course, the
data on the document is a false invoice.
Refactor all this from base to web.
Task ID 2304177
closes odoo/odoo#56415
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 27cc0fdc4f9..374b7715a33 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1852,4 +1852,12 @@ </button> </t> +<t t-name="web.IframeWrapper"> + <div class="o_preview_iframe_wrapper"> + <i class="o_iframe_wrapper_spinner fa fa-spinner fa-spin fa-4x" style="color: #875a7b; z-index: 2"/> + <!--suppress CheckTagEmptyBody --> + <iframe src="about:blank" class="o_preview_iframe" style="display:none"></iframe> + </div> +</t> + </templates> |
