Merge lp:~vauxoo/openerp-mexico-localization/6.1_bug_facturae_cer_dev_luis into lp:openerp-mexico-localization/6.1

Proposed by Luis Torres - http://www.vauxoo.com
Status: Merged
Merged at revision: 213
Proposed branch: lp:~vauxoo/openerp-mexico-localization/6.1_bug_facturae_cer_dev_luis
Merge into: lp:openerp-mexico-localization/6.1
Diff against target: 15 lines (+1/-3)
1 file modified
l10n_mx_facturae_cer/res_company.py (+1/-3)
To merge this branch: bzr merge lp:~vauxoo/openerp-mexico-localization/6.1_bug_facturae_cer_dev_luis
Reviewer Review Type Date Requested Status
Ulises Lopez Pending
Moisés López - http://www.vauxoo.com Pending
Review via email: mp+142757@code.launchpad.net

Description of the change

Se reparo un el bug reportado, se agrego a la linea que me valida que el certificado, el key y el password sea correcto, la palabra raise.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_mx_facturae_cer/res_company.py'
2--- l10n_mx_facturae_cer/res_company.py 2012-09-08 04:34:50 +0000
3+++ l10n_mx_facturae_cer/res_company.py 2013-01-10 19:01:25 +0000
4@@ -70,10 +70,8 @@
5 key_der_b64str = certificate.certificate_key_file
6 password = certificate.certificate_password
7 data = self.onchange_certificate_info(cr, uid, ids, cer_der_b64str, key_der_b64str, password, context=context)
8- #print "data['serial_number']",data['serial_number']
9- #print "data",data
10 if data['warning']:
11- osv.osv_except(data['warning']['title'], data['warning']['message'] )
12+ raise osv.except_osv(data['warning']['title'], data['warning']['message'] )
13 return self.write(cr, uid, ids, data['value'], context)
14
15 def onchange_certificate_info(self, cr, uid, ids, cer_der_b64str, key_der_b64str, password, context=None):