Files
odoo_source/addons/l10n_de/data/report_layout.xml
T
Christophe Matthieu 61eef73b52 [IMP] base, *: use a many2one for the company report layout
Before this rev. one could set the report layout on the company using a
hardcoded list (background, clean, standard, etc.). Other modules (typically
accounting modules) could add options in this list. The used template was built
on the layout key.

Now, the layout is a many2one field to a newly created model `report.layout`,
which is linked to a view with the layout architecture.

This gives more control to customize reports and create a new layout (without
creating a python module that extend the layout selection).
2018-08-13 17:09:28 +02:00

10 lines
384 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="report_layout_din5008" model="report.layout">
<field name="view_id" ref="l10n_de.external_layout_din5008"/>
<field name="image">/l10n_de/static/img/preview_din.png</field>
<field name="pdf">/l10n_de/static/pdf/preview_din.pdf</field>
</record>
</data>
</odoo>