Wrong number of cells declared in sale order report.

Bug #702847 reported by tchiboo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Hi,

Using openerp 6 RC 2 rev3262 I cannont print a quotation (standard, without layout) :

(<type 'exceptions.AssertionError'>, AssertionError(), <traceback object at 0x947c414>)

And, the quotation with layout is creating the PDF, but not translated.

Related branches

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello,

Unfortunately you do not provide much information to start with... and trying to print a quotation or sale order on OpenERP v6RC2 seems to work fine, as you can experience yourself on http://demo.openerp.com (even with sale_layout installed)

Do you have any more information we could work with, such as the content of the traceback (as shown in server-side log), the list of installed modules that could interfere with normal modules, etc.

Thanks!

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
tchiboo (tchiboo) wrote :
Download full text (5.1 KiB)

Hi,

here is the list of installed modules

and the server traceback :

[2011-01-14 14:55:11,546][acvs] ERROR:web-services:[01]: Exception:
[2011-01-14 14:55:11,546][acvs] ERROR:web-services:[02]: Traceback (most recent call last):
[2011-01-14 14:55:11,546][acvs] ERROR:web-services:[03]: File "/home/entreprises/openobject-server/bin/service/web_services.py", line 724, in go
[2011-01-14 14:55:11,546][acvs] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-01-14 14:55:11,547][acvs] ERROR:web-services:[05]: File "/home/entreprises/openobject-server/bin/report/report_sxw.py", line 428, in create
[2011-01-14 14:55:11,547][acvs] ERROR:web-services:[06]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2011-01-14 14:55:11,547][acvs] ERROR:web-services:[07]: File "/home/entreprises/openobject-server/bin/report/report_sxw.py", line 491, in create_source_pdf
[2011-01-14 14:55:11,547][acvs] ERROR:web-services:[08]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2011-01-14 14:55:11,547][acvs] ERROR:web-services:[09]: File "/home/entreprises/openobject-server/bin/report/report_sxw.py", line 513, in create_single_pdf
[2011-01-14 14:55:11,547][acvs] ERROR:web-services:[10]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2011-01-14 14:55:11,547][acvs] ERROR:web-services:[11]: File "/home/entreprises/openobject-server/bin/report/interface.py", line 197, in create_pdf
[2011-01-14 14:55:11,548][acvs] ERROR:web-services:[12]: obj.render()
[2011-01-14 14:55:11,548][acvs] ERROR:web-services:[13]: File "/home/entreprises/openobject-server/bin/report/render/render.py", line 63, in render
[2011-01-14 14:55:11,548][acvs] ERROR:web-services:[14]: result = self._render()
[2011-01-14 14:55:11,548][acvs] ERROR:web-services:[15]: File "/home/entreprises/openobject-server/bin/report/render/rml.py", line 41, in _render
[2011-01-14 14:55:11,548][acvs] ERROR:web-services:[16]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2011-01-14 14:55:11,548][acvs] ERROR:web-services:[17]: File "/home/entreprises/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
[2011-01-14 14:55:11,548][acvs] ERROR:web-services:[18]: r.render(fp)
[2011-01-14 14:55:11,549][acvs] ERROR:web-services:[19]: File "/home/entreprises/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 303, in render
[2011-01-14 14:55:11,549][acvs] ERROR:web-services:[20]: pt_obj.render(el)
[2011-01-14 14:55:11,549][acvs] ERROR:web-services:[21]: File "/home/entreprises/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 942, in render
[2011-01-14 14:55:11,549][acvs] ERROR:web-services:[22]: fis += r.render(node_story)
[2011-01-14 14:55:11,549][acvs] ERROR:web-services:[23]: File "/home/entreprises/openobject-server/bin/report/render/rml2pdf/trml2pdf.py", line 861, in render
[2011-01-14 14:55:11,549][acvs] ERROR:web-services:[24]: return process_story(node_story)
[2011-01-14 14:55:11,549][acvs] ERROR:web-services:[25]: F...

Read more...

Revision history for this message
tchiboo (tchiboo) wrote :

and I use OpenERP in french

Revision history for this message
tchiboo (tchiboo) wrote :

I found something,

When the notes in the product field is empty, I don't have the bug.

Revision history for this message
xrg (xrg) wrote : Re: [Bug 702847] Re: print quotation error

On Friday 14 January 2011, you wrote:
> Hi,
>
> here is the list of installed modules
> assert length ==
> len(node.get('colWidths').split(',')) [2011-01-14 14:55:11,552][acvs]
> ERROR:web-services:[41]: AssertionError
>

Just a wild guess:
when you get that assertion, it means that the number of columns are not
consistent throughout your table. Sth like:

 <table>
 <tr><td>1</td> <td>2</td></tr>
 <tr><td>a1</td> <td>a2</td><td>a3</td></tr>
 </table>

Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote : Re: print quotation error
affects: openobject-server → openobject-addons
Changed in openobject-addons:
status: Incomplete → New
summary: - print quotation error
+ Wrong number of cells declared in sale order report.
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello tchiboo,

Thanks for the additional info, we can confirm it too now, as soon as you add notes on a sale order line.
It is under investigation...

Changed in openobject-addons:
importance: Undecided → Medium
milestone: none → 6.0
status: New → Confirmed
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

Hello,

Thanks for posting such a bug. I am confirming this bug as it is not working good, when we are giving the values in note field of sale order line.

Thanks.

Changed in openobject-addons:
assignee: OpenERP's Framework R&D (openerp-dev-framework) → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
milestone: 6.0 → none
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
Changed in openobject-addons:
importance: Medium → Low
importance: Low → Wishlist
importance: Wishlist → Medium
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix has landed in addons with revision 4268 <email address hidden>.
 (@Addons-Teams-3: sorry, an urgent patch was needed for internal use)

Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP's Framework R&D (openerp-dev-framework)
milestone: none → 6.0
status: Confirmed → Fix Released
Revision history for this message
dhanapal (dhanapal) wrote :
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.