Files
odoo_source/addons/web/data/report_layout.xml
T
Simon Genin (ges) 618067aa3f [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#56995

X-original-commit: c121a246f16899735306266a3a12b526e08e7620
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-09-03 08:44:35 +00:00

46 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="report_layout_background" model="report.layout">
<field name="name">Background</field>
<field name="sequence">5</field>
<field name="view_id" ref="web.external_layout_background"/>
<field name="image">/web/static/img/preview_background.png</field>
<field name="pdf">/web/static/pdf/preview_background.pdf</field>
</record>
<record id="report_layout_standard" model="report.layout">
<field name="name">Light</field>
<field name="sequence">2</field>
<field name="view_id" ref="web.external_layout_standard"/>
<field name="image">/web/static/img/preview_standard.png</field>
<field name="pdf">/web/static/pdf/preview_standard.pdf</field>
</record>
<record id="report_layout_boxed" model="report.layout">
<field name="name">Boxed</field>
<field name="sequence">3</field>
<field name="view_id" ref="web.external_layout_boxed"/>
<field name="image">/web/static/img/preview_boxed.png</field>
<field name="pdf">/web/static/pdf/preview_boxed.pdf</field>
</record>
<record id="report_layout_clean" model="report.layout">
<field name="name">Clean</field>
<field name="sequence">4</field>
<field name="view_id" ref="web.external_layout_clean"/>
<field name="image">/web/static/img/preview_clean.png</field>
<field name="pdf">/web/static/pdf/preview_clean.pdf</field>
</record>
<record id="asset_styles_company_report" model="ir.attachment">
<field name="datas" model="res.company" eval="obj()._get_asset_style_b64()"/>
<field name="mimetype">text/scss</field>
<field name="name">res.company.scss</field>
<field name="type">binary</field>
<field name="url">/web/static/src/scss/asset_styles_company_report.scss</field>
</record>
</data>
</odoo>