[7.0]attachment_use tag for report always evaluate as True even when set to False
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
attachment_use tag for report always evaluated as True even when set to False
to reproduce try to set in any report the attachment_use tag to False it will be always evaluated as True.
the main reason come from the following code in the function _tag_report of the convert.py file in the tool folder
looking at the code the attachment_use is avaluated as a string type while it should be evaluated like the "multi" tag
def _tag_report(self, cr, rec, data_node=None):
res = {}
for dest,f in (('name'
assert res[dest], "Attribute %s of report is empty !" % (f,)
for field,dest in (('rml'
if rec.get(field):
if rec.get('auto'):
if rec.get('sxw'):
if rec.get('header'):
if rec.get(
xml_id = rec.get(
this code should be replaced by the following to make it evaluates the tag correctly
def _tag_report(self, cr, rec, data_node=None):
res = {}
for dest,f in (('name'
assert res[dest], "Attribute %s of report is empty !" % (f,)
for field,dest in (('rml'
if rec.get(field):
if rec.get('auto'):
if rec.get('sxw'):
if rec.get('header'):
if rec.get(
xml_id = rec.get(
description: | updated |
description: | updated |
Changed in openobject-server: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Hi Guys,
Could we have some progress to see this merged in 7.0
Thanks