Error in print screen (ps_list.py)

Bug #585467 reported by Christophe CRIER
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
JMA(Open ERP)

Bug Description

When i try to print an intrastat report (for exemple) in have this error message.

---------------------
[2010-05-25 16:40:52,981] ERROR:web-services:[01]:
[2010-05-25 16:40:52,981] ERROR:web-services:[02]: Environment Information :
[2010-05-25 16:40:52,982] ERROR:web-services:[03]: System : Linux-2.6.32-5-amd64-x86_64-with-debian-5.0.4
[2010-05-25 16:40:52,982] ERROR:web-services:[04]: OS Name : posix
[2010-05-25 16:40:52,982] ERROR:web-services:[05]: Distributor ID: Debian
[2010-05-25 16:40:52,982] ERROR:web-services:[06]: Description: Debian GNU/Linux 5.0.4 (lenny)
[2010-05-25 16:40:52,982] ERROR:web-services:[07]: Release: 5.0.4
[2010-05-25 16:40:52,982] ERROR:web-services:[08]: Codename: lenny
[2010-05-25 16:40:52,982] ERROR:web-services:[09]: Operating System Release : 2.6.32-5-amd64
[2010-05-25 16:40:52,982] ERROR:web-services:[10]: Operating System Version : #1 SMP Mon May 17 17:51:57 UTC 2010
[2010-05-25 16:40:52,982] ERROR:web-services:[11]: Operating System Architecture : 64bit
[2010-05-25 16:40:52,982] ERROR:web-services:[12]: Operating System Locale : fr_FR.UTF8
[2010-05-25 16:40:52,982] ERROR:web-services:[13]: Python Version : 2.5.5
[2010-05-25 16:40:52,982] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.10
[2010-05-25 16:40:52,982] ERROR:web-services:[15]: Last revision No. & ID :
[2010-05-25 16:40:52,982] ERROR:web-services:[16]: Exception: unsupported operand type(s) for /: 'str' and 'int'
[2010-05-25 16:40:52,983] ERROR:web-services:[17]: Traceback (most recent call last):
[2010-05-25 16:40:52,983] ERROR:web-services:[18]: File "/home/cch/synchro/travail/oerp-hnm2/server/bin/service/web_services.py", line 682, in go
[2010-05-25 16:40:52,983] ERROR:web-services:[19]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-05-25 16:40:52,983] ERROR:web-services:[20]: File "/home/cch/synchro/travail/oerp-hnm2/server/bin/report/printscreen/ps_list.py", line 81, in create
[2010-05-25 16:40:52,983] ERROR:web-services:[21]: res = self._create_table(uid, datas['ids'], result['fields'], fields_order, rows, context, model_desc)
[2010-05-25 16:40:52,983] ERROR:web-services:[22]: File "/home/cch/synchro/travail/oerp-hnm2/server/bin/report/printscreen/ps_list.py", line 121, in _create_table
[2010-05-25 16:40:52,983] ERROR:web-services:[23]: t += fields[f].get('size', 80) / 28 + 1
[2010-05-25 16:40:52,983] ERROR:web-services:[24]: TypeError: unsupported operand type(s) for /: 'str' and 'int'
-------------------------

I propose the following patch

Related branches

Revision history for this message
Christophe CRIER (christophe-crier) wrote :
Changed in openobject-server:
status: New → Confirmed
Changed in openobject-server:
assignee: nobody → JMA(Open ERP) (jma-openerp)
affects: openobject-server → openobject-addons
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision 2743 <email address hidden>.
Thanks.

Changed in openobject-addons:
milestone: none → 5.0.11
status: Confirmed → Fix Released
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.