diff --git a/odoo/import_xml.rng b/odoo/import_xml.rng index adcbd19e0333a431f58fdc6aa0a551bf87cecca1..81fef2b35c6c4660ad462993d4c0922ed82dcc26 100644 --- a/odoo/import_xml.rng +++ b/odoo/import_xml.rng @@ -73,6 +73,7 @@ <rng:attribute name="string"/> <rng:attribute name="model"/> <rng:attribute name="name"/> + <rng:optional><rng:attribute name="print_report_name"/></rng:optional> <rng:optional><rng:attribute name="report_type"/></rng:optional> <rng:optional><rng:attribute name="multi"/></rng:optional> <rng:optional><rng:attribute name="menu"/></rng:optional> diff --git a/odoo/tools/convert.py b/odoo/tools/convert.py index 7e8e9f6e3ce56fb45d7bd500651e338edb797601..76c7ec523af51ec355544c611fd0e513cb6ca7f4 100644 --- a/odoo/tools/convert.py +++ b/odoo/tools/convert.py @@ -285,8 +285,14 @@ form: module.record_id""" % (xml_id,) for dest,f in (('name','string'),('model','model'),('report_name','name')): res[dest] = rec.get(f,'').encode('utf8') assert res[dest], "Attribute %s of report is empty !" % (f,) - for field,dest in (('attachment','attachment'),('attachment_use','attachment_use'), ('usage','usage'), - ('file', 'report_file'), ('report_type', 'report_type'), ('parser', 'parser')): + for field, dest in (('attachment', 'attachment'), + ('attachment_use', 'attachment_use'), + ('usage', 'usage'), + ('file', 'report_file'), + ('report_type', 'report_type'), + ('parser', 'parser'), + ('print_report_name', 'print_report_name'), + ): if rec.get(field): res[dest] = rec.get(field).encode('utf8') if rec.get('auto'):