XSL/XML reports do not create attachments like RML reports do.

Bug #508358 reported by Sebastien LANGE - http://www.Syleam.fr
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Status tracked in Trunk
5.0
Won't Fix
Undecided
Unassigned
Trunk
Confirmed
Wishlist
OpenERP's Framework R&D

Bug Description

With RML report, we have the possibility to stock pdf generate in ir.attachment (eg : invoice) but if choice XSL instead of RML, the fonctionnality doesn't work.

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

Please find a patch for fixed this bug.

Please check this patch before apply.

Thanks

Changed in openobject-server:
status: New → Confirmed
assignee: nobody → Anup (Open ERP) (ach-openerp)
importance: Undecided → Medium
milestone: none → 5.0.10
summary: - XSL/XML report not create attachment like rml
+ XSL/XML reports do not create attachments like RML reports do.
Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Sebastien,

I have an optimized solution for this problem. Would you please apply the patch and check the results and notify us about the results.

Thanks

Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Sebastien,

Would you please spend your precious time here?

Thanks.

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

With this traceback with this value ('INV'+(object.name or '').replace('/','')) in "Save as Attachment prefix"

Sale.order has a name field

[2010-04-23 22:21:11,063] ERROR:web-services:[01]:
[2010-04-23 22:21:11,068] ERROR:web-services:[02]: Environment Information :
[2010-04-23 22:21:11,068] ERROR:web-services:[03]: System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
[2010-04-23 22:21:11,068] ERROR:web-services:[04]: OS Name : posix
[2010-04-23 22:21:11,068] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2010-04-23 22:21:11,068] ERROR:web-services:[06]: Description: Ubuntu lucid (development branch)
[2010-04-23 22:21:11,068] ERROR:web-services:[07]: Release: 10.04
[2010-04-23 22:21:11,068] ERROR:web-services:[08]: Codename: lucid
[2010-04-23 22:21:11,068] ERROR:web-services:[09]: Operating System Release : 2.6.32-21-generic
[2010-04-23 22:21:11,068] ERROR:web-services:[10]: Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
[2010-04-23 22:21:11,069] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-04-23 22:21:11,069] ERROR:web-services:[12]: Operating System Locale : fr_FR.UTF8
[2010-04-23 22:21:11,069] ERROR:web-services:[13]: Python Version : 2.6.5
[2010-04-23 22:21:11,069] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.9
[2010-04-23 22:21:11,069] ERROR:web-services:[15]: Last revision No. & ID : 2031 <email address hidden>
[2010-04-23 22:21:11,069] ERROR:web-services:[16]:
[2010-04-23 22:21:11,069] ERROR:web-services:[17]: Exception: 'report_xml' object has no attribute 'name'
[2010-04-23 22:21:11,069] ERROR:web-services:[18]: Traceback (most recent call last):
[2010-04-23 22:21:11,069] ERROR:web-services:[19]: File "/home/alnslang/Projets/clients/demo/openerp/5.0.9/openobject-server/bin/service/web_services.py", line 682, in go
[2010-04-23 22:21:11,069] ERROR:web-services:[20]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-04-23 22:21:11,070] ERROR:web-services:[21]: File "/home/alnslang/Projets/clients/demo/openerp/5.0.9/openobject-server/bin/report/interface.py", line 106, in create
[2010-04-23 22:21:11,070] ERROR:web-services:[22]: aname = eval(attach, {'object':ir_actions_report_xml_obj, 'time':time})
[2010-04-23 22:21:11,071] ERROR:web-services:[23]: File "<string>", line 1, in <module>
[2010-04-23 22:21:11,071] ERROR:web-services:[24]: AttributeError: 'report_xml' object has no attribute 'name'

Revision history for this message
Sebastien LANGE - http://www.Syleam.fr (alnslang) wrote :

I retried with my patch and it's always ok but not with your patch

Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Sebastien,

     Yes you are right. The error was being caused due to object problem. It has been fixed now. Would you please check the updated patch and notify us.
     Sorry for the inconvenience.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Sebastien LANGE,

Can you confirm the patch please?

Thanks.
(I am setting this as the duplicate of itself).

Changed in openobject-server:
milestone: 5.0.10 → 5.0.11
Changed in openobject-server:
milestone: 5.0.11 → 5.0.12
Changed in openobject-server:
milestone: 5.0.12 → 5.0.13
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

The Reload from attachment is still missing.
Thanks.

Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :

Hello Jay,

   Thanks for pointing out. It has been fixed now with the attached solution. Would you please check it ?

Thanks.

Revision history for this message
Anup(SerpentCS) (anup-serpent) wrote :
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Sebastien,

This really needs few core changes,so we have decided to make this feature available on 6.0 as it doesn't really block the system.

Thanks.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Sebastien,

As this issue doesn't really block the system, we have decided to make this feature available on 6.0.

Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.