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/js/fields/field_registry.js | |
| 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/js/fields/field_registry.js')
| -rw-r--r-- | addons/web/static/src/js/fields/field_registry.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/field_registry.js b/addons/web/static/src/js/fields/field_registry.js index ef174702579..a5c8a85da0a 100644 --- a/addons/web/static/src/js/fields/field_registry.js +++ b/addons/web/static/src/js/fields/field_registry.js @@ -94,5 +94,6 @@ registry // Special fields registry .add('timezone_mismatch', special_fields.FieldTimezoneMismatch) - .add('report_layout', special_fields.FieldReportLayout); + .add('report_layout', special_fields.FieldReportLayout) + .add('iframe_wrapper', special_fields.IframeWrapper) }); |
