Commit Graph
2 Commits
Author SHA1 Message Date
Josse Colpaert ffc6fe1704 [FIX] l10n_de: need to give a name to the DIN5008 lay-out
The report layout was refactored before, but we forgot
to give the specific German lay-out a name, although the field
was added.  This gave a traceback when we wanted to
select a lay-out or this particular lay-out (name False)
in the Settings.

closes odoo/odoo#47321

X-original-commit: 162eb09159a8e8836d5decd6d1a210d2659b55a9
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-10 16:26:21 +00:00
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