Merge lp:~vauxoo/openerp-mexico-localization/7.0-l10n_mx_facturae_lib-dev-murillo into lp:openerp-mexico-localization/7.0

Proposed by Alejandro Ramirez Murillo
Status: Merged
Approved by: Jorge Angel Naranjo Rogel - http://www.vauxoo.com
Approved revision: 380
Merged at revision: 380
Proposed branch: lp:~vauxoo/openerp-mexico-localization/7.0-l10n_mx_facturae_lib-dev-murillo
Merge into: lp:openerp-mexico-localization/7.0
Diff against target: 47 lines (+4/-5)
1 file modified
l10n_mx_facturae_lib/facturae_lib.py (+4/-5)
To merge this branch: bzr merge lp:~vauxoo/openerp-mexico-localization/7.0-l10n_mx_facturae_lib-dev-murillo
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Pending
Jorge Angel Naranjo Rogel - http://www.vauxoo.com Pending
Review via email: mp+234166@code.launchpad.net

Description of the change

fixed up the bug of autoimport into file facturae_lib

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
=== modified file 'l10n_mx_facturae_lib/facturae_lib.py'
--- l10n_mx_facturae_lib/facturae_lib.py 2014-04-07 17:51:59 +0000
+++ l10n_mx_facturae_lib/facturae_lib.py 2014-09-10 17:57:12 +0000
@@ -37,7 +37,6 @@
37import binascii37import binascii
38import logging38import logging
39_logger = logging.getLogger(__name__)39_logger = logging.getLogger(__name__)
40from l10n_mx_facturae_lib import facturae_lib
4140
42all_paths = tools.config["addons_path"].split(",")41all_paths = tools.config["addons_path"].split(",")
43for my_path in all_paths:42for my_path in all_paths:
@@ -215,7 +214,7 @@
215 """214 """
216 if context is None:215 if context is None:
217 context = {}216 context = {}
218 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = facturae_lib.library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)217 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)
219 if not app_xsltproc_fullpath:218 if not app_xsltproc_fullpath:
220 raise osv.except_osv(_("Error!"), _(219 raise osv.except_osv(_("Error!"), _(
221 "Failed to find in path '%s' app. This app is required for sign Mexican Electronic Invoice"%(app_xsltproc) ))220 "Failed to find in path '%s' app. This app is required for sign Mexican Electronic Invoice"%(app_xsltproc) ))
@@ -282,7 +281,7 @@
282 """281 """
283 if context is None:282 if context is None:
284 context = {}283 context = {}
285 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = facturae_lib.library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)284 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)
286 if not app_openssl_fullpath:285 if not app_openssl_fullpath:
287 raise osv.except_osv(_("Error!"), _(286 raise osv.except_osv(_("Error!"), _(
288 "Failed to find in path '%s' app. This app is required for sign Mexican Electronic Invoice"%(app_openssl) ))287 "Failed to find in path '%s' app. This app is required for sign Mexican Electronic Invoice"%(app_openssl) ))
@@ -311,7 +310,7 @@
311 if context is None:310 if context is None:
312 context = {}311 context = {}
313 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = \312 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = \
314 facturae_lib.library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)313 library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)
315 result = ""314 result = ""
316 cmd = ''315 cmd = ''
317 if type_key == 'PEM':316 if type_key == 'PEM':
@@ -336,7 +335,7 @@
336 #xmlstarlet val -e --xsd cfdv2.xsd cfd_example.xml335 #xmlstarlet val -e --xsd cfdv2.xsd cfd_example.xml
337 if context is None:336 if context is None:
338 context = {}337 context = {}
339 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = facturae_lib.library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)338 msj, app_xsltproc_fullpath, app_openssl_fullpath, app_xmlstarlet_fullpath = library_openssl_xsltproc_xmlstarlet(cr, uid, ids, context)
340 if app_xmlstarlet_fullpath:339 if app_xmlstarlet_fullpath:
341 cmd = ''340 cmd = ''
342 if type_scheme == 'xsd':341 if type_scheme == 'xsd':