It is currently Sun Feb 12, 2012 7:51 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Raise except_osv in report parser
PostPosted: Wed Feb 24, 2010 12:03 am 
Offline

Joined: Mon Jul 27, 2009 12:45 pm
Posts: 148
Hey guys!!

Short question here but this thing is driving me crazy:
How can I raise an except_osv exception from my report parser?
I've searched the POS module, there is an example of a classical raise except_osv(...) - I tried it but it doesn't work :( Here is what server log shows:

Code:
raise except_osv(_('Error'),_('Currency error!'))
except_osv: ('warning', 'Error')


Long story short: I'm printing an invoice in difference currencies, and in my report parser I'm checking if a currency rate for the invoice date exist. If not - a warning exception should pop up.

Any ideas?
Thanks in advance!
Pavel


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP