c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24105
[Bug 781967] [NEW] RML based reporting broken for addons with images outside root_path
Public bug reported:
Currently, in order to be found by OpenERP, image elements within RML
templates must be specified making use of paths relative to 'root_path'.
With the 'addons_path' functionality, this behaviour becomes
inconsistent; if an addon is moved to a valid directory outside the
'root_path' directory, the reporting process is broken and the server
raises an IOError exception.
To deal with this problem, the RML template must contain the full path
to the image file (which can be anything but flexible), or make use of a
custom tag to set up the path dynamically.
Attached is a patch that enables the server to recognise image elements
with paths relative to the module directory, regardless of the addons
directory where it is. I.e.:
<image file="my_addon/images/my_report_image.png" x="0" y="0"/>
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: image path report rml
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/781967
Title:
RML based reporting broken for addons with images outside root_path
Status in OpenERP Server:
New
Bug description:
Currently, in order to be found by OpenERP, image elements within RML
templates must be specified making use of paths relative to
'root_path'. With the 'addons_path' functionality, this behaviour
becomes inconsistent; if an addon is moved to a valid directory
outside the 'root_path' directory, the reporting process is broken and
the server raises an IOError exception.
To deal with this problem, the RML template must contain the full path
to the image file (which can be anything but flexible), or make use of
a custom tag to set up the path dynamically.
Attached is a patch that enables the server to recognise image
elements with paths relative to the module directory, regardless of
the addons directory where it is. I.e.:
<image file="my_addon/images/my_report_image.png" x="0" y="0"/>
Follow ups
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Vo Minh Thu (OpenERP), 2011-09-15
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Vo Minh Thu (OpenERP), 2011-09-15
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Yogesh(Open ERP), 2011-07-01
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Vo Minh Thu (OpenERP), 2011-06-29
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Yogesh(Open ERP), 2011-05-25
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Naresh(OpenERP), 2011-05-25
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Vo Minh Thu (OpenERP), 2011-05-24
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Yogesh(Open ERP), 2011-05-24
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Launchpad Bug Tracker, 2011-05-24
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Yogesh(Open ERP), 2011-05-24
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Vinay Rana (openerp), 2011-05-16
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Equipo OPENTIA (http://www.opentia.com), 2011-05-13
-
Re: [Bug 781967] [NEW] RML based reporting broken for addons with images outside root_path
From: xrg, 2011-05-13
-
[Bug 781967] Re: RML based reporting broken for addons with images outside root_path
From: Equipo OPENTIA (http://www.opentia.com), 2011-05-13
-
[Bug 781967] [NEW] RML based reporting broken for addons with images outside root_path
From: Equipo OPENTIA (http://www.opentia.com), 2011-05-13
References