Adding a fallback system so that you own implementer module can define its default template

--HG--
branch : odoo8
This commit is contained in:
Florent Aide
2015-06-02 09:51:15 +02:00
parent 2c47a47082
commit ef01166fdf
3 changed files with 78 additions and 4 deletions

View File

@@ -23,6 +23,18 @@ class report_xml(osv.Model):
'py3o.template',
u"Template",
),
'module': fields.char(
u"Module",
size=64,
help=u"The implementer module that provides this report",
),
'py3o_template_fallback': fields.char(
u"Fallback",
size=128,
help=(u"If the user does not provide a template this will be used "
u"it should be a relattive path to root of YOUR module",
),
),
'report_type': fields.selection(
[
('qweb-pdf', u"PDF"),