Merge lp:~vauxoo/openerp-mexico-localization/7.0-l10n_mx_facturae_sf-fix-library-soapy-jc into lp:openerp-mexico-localization/7.0

Proposed by Juan Carlos Hernandez
Status: Merged
Approved by: Jorge Angel Naranjo Rogel - http://www.vauxoo.com
Approved revision: 382
Merged at revision: 382
Proposed branch: lp:~vauxoo/openerp-mexico-localization/7.0-l10n_mx_facturae_sf-fix-library-soapy-jc
Merge into: lp:openerp-mexico-localization/7.0
Diff against target: 18 lines (+3/-2)
1 file modified
l10n_mx_facturae_pac_sf/ir_attachment_facturae.py (+3/-2)
To merge this branch: bzr merge lp:~vauxoo/openerp-mexico-localization/7.0-l10n_mx_facturae_sf-fix-library-soapy-jc
Reviewer Review Type Date Requested Status
Juan Carlos Hernandez Pending
Jorge Angel Naranjo Rogel - http://www.vauxoo.com Pending
Review via email: mp+236361@code.launchpad.net

Description of the change

se mejoró el error controlado de la librería soapy, ya que tenia un print en vez de un log warning

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_pac_sf/ir_attachment_facturae.py'
2--- l10n_mx_facturae_pac_sf/ir_attachment_facturae.py 2013-12-10 01:11:31 +0000
3+++ l10n_mx_facturae_pac_sf/ir_attachment_facturae.py 2014-09-29 15:00:15 +0000
4@@ -49,11 +49,12 @@
5 import pytz
6 import time
7 from openerp import tools
8+import logging
9+_logger = logging.getLogger(__name__)
10 try:
11 from SOAPpy import WSDL
12 except:
13- print "Package SOAPpy missed"#TODO: Warning message
14- pass
15+ _logger.warning('Install Package SOAPpy with the command "sudo apt-get install python-soappy".')
16
17 class ir_attachment_facturae_mx(osv.Model):
18 _inherit = 'ir.attachment.facturae.mx'