This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-10-13 20:20:52,439 9693 ERROR xxxxx openerp.tools.safe_eval: Cannot eval u'action_invoice_create()' | |
Traceback (most recent call last): | |
File "/home/servidor/apps/openerp-7.0/server/openerp/tools/safe_eval.py", line 285, in safe_eval | |
return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) | |
File "", line 1, in <module> | |
File "/home/servidor/apps/openerp-7.0/server/openerp/osv/orm.py", line 377, in function_proxy | |
return attr(self._cr, self._uid, [self._id], *args, **kwargs) | |
File "/home/servidor/apps/openerp-7.0/addons/purchase/purchase.py", line 561, in action_invoice_create | |
inv_id = inv_obj.create(cr, uid, inv_data, context=context) | |
File "/home/servidor/apps/openerp-7.0/addons/mail/mail_thread.py", line 252, in create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
############################################################################## | |
# | |
# E-Invoice Module - Ecuador | |
# Copyright (C) 2014 VIRTUALSAMI CIA. LTDA. All Rights Reserved | |
# [email protected] | |
# $Id$ | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
############################################################################## | |
# | |
# E-Invoice Module - Ecuador | |
# Copyright (C) 2014 VIRTUALSAMI CIA. LTDA. All Rights Reserved | |
# [email protected] | |
# $Id$ | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
############################################################################## | |
# | |
# Account Module - Ecuador | |
# Copyright (C) 2014 Cristian Salamea All Rights Reserved | |
# $Id$ | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<document filename="test.pdf"> | |
<template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20"> | |
<pageTemplate id="first"> | |
<frame id="first" x1="34.0" y1="28.0" width="530" height="786"/> | |
</pageTemplate> | |
</template> | |
<stylesheet> | |
<blockTableStyle id="Standard_Outline"> | |
<blockAlignment value="LEFT"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenERP Server Error | |
Client Traceback (most recent call last): | |
File "/home/openerp/apps/openerp-7.0/web/addons/web/http.py", line 204, in dispatch | |
response["result"] = method(self, **self.params) | |
File "/home/openerp/apps/openerp-7.0/web/addons/web/controllers/main.py", line 1132, in call_button | |
action = self._call_kw(req, model, method, args, {}) | |
File "/home/openerp/apps/openerp-7.0/web/addons/web/controllers/main.py", line 1120, in _call_kw | |
return getattr(req.session.model(model), method)(*args, **kwargs) | |
File "/home/openerp/apps/openerp-7.0/web/addons/web/session.py", line 42, in proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
factura = self._generate_xml_invoice(obj, access_key, emission_code) | |
xades = Xades() | |
file_pk12 = obj.company_id.electronic_signature | |
password = obj.company_id.password_electronic_signature | |
xmlstr = etree.tostring(factura, encoding='utf8', method='xml') | |
p = Popen([JAVA_CMD, '-jar', JAR_PATH, xmlstr, file_pk12, password], stdout=PIPE, stderr=STDOUT) | |
resultado = p.communicate()[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Xades(object): | |
def apply_digital_signature(self, xml_document, file_pk12, password): | |
""" | |
Metodo que aplica la firma digital al XML | |
""" | |
JAR_PATH = 'firma/firmaXadesBes.jar' | |
JAVA_CMD = 'java' | |
ds_document = False | |
xml_str = etree.tostring(xml_document, encoding='utf8', method='xml') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@classmethod | |
def send_receipt(self, xml): | |
buf = StringIO.StringIO() | |
buf.write(xml) | |
buffer_xml = base64.encodestring(buf.getvalue()) | |
client = Client(self.__WS_TEST_RECEIV) | |
result = client.service.validarComprobante(buffer_xml) | |
mensaje_error = "" | |
if (result[0] == 'DEVUELTA'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/openerp/apps/odoo/openerp/http.py", line 537, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/home/openerp/apps/odoo/openerp/http.py", line 574, in dispatch | |
result = self._call_function(**self.params) | |
File "/home/openerp/apps/odoo/openerp/http.py", line 310, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/home/openerp/apps/odoo/openerp/service/model.py", line 113, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/home/openerp/apps/odoo/openerp/http.py", line 307, in checked_call |
OlderNewer