@@ -0,0 +1,1666 @@
+# -*- coding: utf-8 -*-%0A##############################################################################%0A#%0A# Copyright (C) 2012 OpenERP - Team de Localizaci%C3%B3n Argentina.%0A# https://launchpad.net/~openerp-l10n-ar-localization%0A#%0A# This program is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License as published by%0A# the Free Software Foundation, either version 3 of the License, or%0A# (at your option) any later version.%0A#%0A# This program is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A# GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A#%0A##############################################################################%0A%22%22%22%0AThis structure keep a cache structure to bind to not have continues connection%0Ato the server.%0A%22%22%22%0Afrom sslhttps import HTTPSConnectionSSLVersion%0Afrom stub.LoginCMSService_types import *%0A%0APROXY_SIZE=5%0ATRACE_FILE=None # To DEBUG: sys.stdout%0A%0AServiceSoap=ServiceLocator().getServiceSoap%0A%0A_bind_cache = %7B%7D%0A_bind_list  = %5B%5D%0A%0Adef get_bind(server):%0A    if not server.id in _bind_cache:%0A        if len(_bind_list) %3E PROXY_SIZE:%0A            del _bind_cache%5B_bind_list.pop(0)%5D%0A        _bind_cache%5Bserver.id%5D = ServiceSoap(url=server.url, transport=HTTPSConnectionSSLVersion, tracefile=TRACE_FILE)%0A        _bind_list.append(server.id)%0A    return _bind_cache%5Bserver.id%5D%0A%0A# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:%0A

Test for electronic invoice. [FIX] Change l10n_ar_wsfe to l10n_ar_wsafip_fe