Ask Your Question
0

Can't generate invoice in PDF

asked 2013-04-24 09:48:59 +0200

hosnix gravatar image hosnix
11 1 1 2

I have problem in generating invoices in PDF with openerp v7.0. this problem is not general, some invoices are generated and others are not(Please Wait...). I have openerp installed on ubuntu server 12.04.

thanks!

delete close flag offensive retag edit

Comments

Did you customize the invoice report?

Sudhir Arya ( 2013-05-07 06:12:04 +0200 )edit

4 Answers

Sort by » oldest newest most voted
1

answered 2013-05-07 06:51:29 +0200

Keyur gravatar image Keyur flag of India
1039 6 16
http://www.linkedin.com/i...

Your error log says that in your report you are trying to fetch note field of account.invoice.line which is not there in your database. It looks like you have done some changes in Invoice Report in your custom module. Try to remove note field or replace with other field of account.invoice.line of type character or note. Then maybe your invoice will generate properly.

link publish delete flag offensive edit

Comments

I found this line : [[ format(l.note or '') or removeParentNode('tr') ]] . I removed it! Wait and See!!!!

hosnix ( 2013-05-07 09:56:59 +0200 )edit

Is it working now?

Keyur ( 2013-05-07 10:37:58 +0200 )edit
0

answered 2013-04-24 11:29:08 +0200

patrick gravatar image patrick flag of Netherlands
1649 1 7 14
http://nl.linkedin.com/pu...

If you do not get a PDF-file, what will happen if you wait a long time? Do you get messages about loading, and a suggestion to take a coffee? If so, it looks like the DB is having issues.

Next time, can you look into the logging file? It is located at

/var/log/openerp/openerp-server.log

I had an issue with this kind of behaviour, caused by a greater than expected (by openERP) number of locations. This was fixed by a patch (which will come into the main and trunk some day).

link publish delete flag offensive edit

Comments

Exactly, there are messages about loading like "take a coffee, .." "You Must press F5" if it lasts! (Sorry for the translation of message, I have french version). but without any issue. Where can I find the solution ?

hosnix ( 2013-04-24 11:59:08 +0200 )edit
0

answered 2013-04-24 10:26:03 +0200

Dharmesh Rathod gravatar image Dharmesh Rathod flag of India
261 2
http://www.acespritech.co...

hi,

Did you check into attachments ?

Email : info@acespritech.com
Skype: acespritech

link publish delete flag offensive edit

Comments

attachements of what ?

hosnix ( 2013-04-24 12:03:59 +0200 )edit
0

answered 2013-05-06 17:27:15 +0200

hosnix gravatar image hosnix
11 1 1 2

Hi, Any help please ? i'm waiting for the pacth! This is an extract from the log file :

2013-05-06 15:12:24,669 1726 WARNING DB_TEST openerp.osv.orm.browse_record.account.invoice: Field 'address_invoice_id' does not exist in object 'browse_record(account.invoice, 121)' 2013-05-06 15:12:24,670 1726 ERROR DB_TEST openerp.tools.safe_eval: Cannot eval "(o.address_invoice_id and o.address_invoice_id.partner_id and o.address_invoice_id.partner_id.ref) or ' '" Traceback (most recent call last): File "/opt/openerp/server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in <module> File "/opt/openerp/server/openerp/osv/orm.py", line 486, in __getattr__ raise AttributeError(e) AttributeError: "Field 'address_invoice_id' does not exist in object 'browse_record(account.invoice, 121)'" 2013-05-06 15:12:24,704 1726 WARNING DB_TEST openerp.osv.orm.browse_record.account.invoice.line: Field 'note' does not exist in object 'browse_record(account.invoice.line, 155)' 2013-05-06 15:12:24,705 1726 ERROR DB_TEST openerp.tools.safe_eval: Cannot eval " format(l.note or '') or removeParentNode('tr') " Traceback (most recent call last): File "/opt/openerp/server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in <module> File "/opt/openerp/server/openerp/osv/orm.py", line 486, in __getattr__ raise AttributeError(e) AttributeError: "Field 'note' does not exist in object 'browse_record(account.invoice.line, 155)'" 2013-05-06 15:12:24,705 1726 WARNING DB_TEST openerp.report.render.rml2pdf.utils: rml_except: " format(l.note or '') or removeParentNode('tr') " Traceback (most recent call last): File "/opt/openerp/server/openerp/report/render/rml2pdf/utils.py", line 92, in _child_get eval(n.get('rml_except'), {}, self.localcontext) File "/opt/openerp/server/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in <module> File "/opt/openerp/server/openerp/osv/orm.py", line 486, in __getattr__ raise AttributeError(e) AttributeError: "Field 'note' does not exist in object 'browse_record(account.invoice.line, 155)'"

link publish delete flag offensive edit

Login/Signup to Answer

Documentation

You can download ebooks on Facebook or buy paper book

You can read the online documentation

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2013-04-24 09:48:59 +0200

Seen: 562 times

Last updated: May 07 '13