odoo-chile / l10n_cl_dte

4 stars 6 forks source link

raise ValueError('External ID not found in the system: %s' % (xmlid)) #8

Closed pasg closed 8 years ago

pasg commented 8 years ago

Hola Buenos dias, me presento mi nombre es pablo y no soy entendido en el lenguaje python, los felicito por el trabajo que han realizado. Bueno mi consulta esa la siguiente he logrado instalar desde github odoo-chile a un equipo con ubuntu 14.04 server los modulos l10n_cl_vat ,l10n_cl_base_rut, base_state_ubication, l10n_cl_counties, l10n_cl_partner_activities ,l10n_cl_invoice, user_signature_key, l10n_cl_dte_caf, webservices_generic. Todo bajado el dia 27 de septiembre de 2016. Pero al intentar instalar el modulo l10n_cl_dte me arroja el siguiente error

Odoo Server Error

Traceback (most recent call last): File "/opt/odoo/server/openerp/http.py", line 544, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/server/openerp/http.py", line 581, in dispatch result = self._call_function(_self.params) File "/opt/odoo/server/openerp/http.py", line 317, in _call_function return checked_call(self.db, args, _kwargs) File "/opt/odoo/server/openerp/service/model.py", line 118, in wrapper return f(dbname, _args, _kwargs) File "/opt/odoo/server/openerp/http.py", line 314, in checked_call return self.endpoint(_a, _kw) File "/opt/odoo/server/openerp/http.py", line 810, in call return self.method(_args, _kw) File "/opt/odoo/server/openerp/http.py", line 410, in response_wrap response = f(_args, _kw) File "/opt/odoo/server/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/server/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/module/module.py", line 447, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/module/module.py", line 495, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/opt/odoo/server/openerp/modules/registry.py", line 370, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/server/openerp/modules/loading.py", line 355, in load_modules loaded_modules, update_module) File "/opt/odoo/server/openerp/modules/loading.py", line 255, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/opt/odoo/server/openerp/modules/loading.py", line 176, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "/opt/odoo/server/openerp/modules/loading.py", line 118, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/opt/odoo/server/openerp/tools/convert.py", line 900, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/opt/odoo/server/openerp/tools/convert.py", line 986, in convert_xml_import obj.parse(doc.getroot(), mode=mode) File "/opt/odoo/server/openerp/tools/convert.py", line 852, in parse self._tags[rec.tag](self.cr, rec, n, mode=mode) File "/opt/odoo/server/openerp/tools/convert.py", line 756, in _tag_record f_val = _eval_xml(self,field, self.pool, cr, self.uid, self.idref) File "/opt/odoo/server/openerp/tools/convert.py", line 176, in _eval_xml for n in node]), idref) File "/opt/odoo/server/openerp/tools/convert.py", line 165, in _process idref[id] = self.id_get(cr, id) File "/opt/odoo/server/openerp/tools/convert.py", line 831, in id_get res = self.model_id_get(cr, id_str, raise_if_not_found) File "/opt/odoo/server/openerp/tools/convert.py", line 842, in model_id_get raise_if_not_found=raise_if_not_found) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/ir/ir_model.py", line 909, in xmlid_to_res_model_res_id return self.xmlid_lookup(cr, uid, xmlid)[1:3] File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "", line 2, in xmlid_lookup File "/opt/odoo/server/openerp/tools/cache.py", line 74, in lookup value = d[key] = self.method(_args, *_kwargs) File "/opt/odoo/server/openerp/addons/base/ir/ir_model.py", line 899, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % (xmlid)) ParseError: "External ID not found in the system: l10n_cl_dte.action_dte_status_update_form" while parsing /opt/odoo/stable-addons/odoo-bmya-cl/l10n_cl_dte/views/invoice_view.xml:4, near

account.invoice account.invoice.sii.form {'partner_id': partner_id, 'price_type': context.get('price_type') or False, 'type': type}" name="invoice_line" on_change="onchange_invoice_line(invoice_line) ```
asjdjdk


Por lo que entiendo hay un problema con una variable foranea, pero mno logro seguirla.

Saludos y gracias de antemano

Pablo
Danisan commented 8 years ago

El ID externo que está buscando es action_dte_status_update_form. Esta definición está en el archivo wizard/dte_status_update_view.xml por lo que se vé, esto ocurre porque al instalar el addon, está intentando cargar primero la vista que te da error, antes del wizard. Quizá cambiando el orden de carga se pueda solucionar el problema. Esto se puede hacer, colocando en openerp.py el orden de los archivos de manera distinta (data:). si desinstalas, cambias el orden y reinstalas puede que se solucione. Este problema no ocurre en una instalación completa desde cero.

pasg commented 8 years ago

Estimado @Danisan acabo de reinstalar todo de cero en ubuntu 14 y aun me arroja mismo error de variables, instale dependencias previas y comente #'wizard/dte_status_update_view.xml' en openerp.py segun problema mencionado en otro hilo, solucione todos los import que no se cumplian por problemas de 'external_dependencies' . pero muestra este error.

Traceback (most recent call last): File "/opt/odoo/server/openerp/http.py", line 544, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/server/openerp/http.py", line 581, in dispatch result = self._call_function(_self.params) File "/opt/odoo/server/openerp/http.py", line 317, in _call_function return checked_call(self.db, args, _kwargs) File "/opt/odoo/server/openerp/service/model.py", line 118, in wrapper return f(dbname, _args, _kwargs) File "/opt/odoo/server/openerp/http.py", line 314, in checked_call return self.endpoint(_a, _kw) File "/opt/odoo/server/openerp/http.py", line 810, in call return self.method(_args, _kw) File "/opt/odoo/server/openerp/http.py", line 410, in response_wrap response = f(_args, _kw) File "/opt/odoo/server/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/server/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/module/module.py", line 447, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/module/module.py", line 495, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/opt/odoo/server/openerp/modules/registry.py", line 370, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/server/openerp/modules/loading.py", line 355, in load_modules loaded_modules, update_module) File "/opt/odoo/server/openerp/modules/loading.py", line 255, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/opt/odoo/server/openerp/modules/loading.py", line 176, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "/opt/odoo/server/openerp/modules/loading.py", line 118, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/opt/odoo/server/openerp/tools/convert.py", line 900, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/opt/odoo/server/openerp/tools/convert.py", line 986, in convert_xml_import obj.parse(doc.getroot(), mode=mode) File "/opt/odoo/server/openerp/tools/convert.py", line 852, in parse self._tags[rec.tag](self.cr, rec, n, mode=mode) File "/opt/odoo/server/openerp/tools/convert.py", line 756, in _tag_record f_val = _eval_xml(self,field, self.pool, cr, self.uid, self.idref) File "/opt/odoo/server/openerp/tools/convert.py", line 176, in _eval_xml for n in node]), idref) File "/opt/odoo/server/openerp/tools/convert.py", line 165, in _process idref[id] = self.id_get(cr, id) File "/opt/odoo/server/openerp/tools/convert.py", line 831, in id_get res = self.model_id_get(cr, id_str, raise_if_not_found) File "/opt/odoo/server/openerp/tools/convert.py", line 842, in model_id_get raise_if_not_found=raise_if_not_found) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/ir/ir_model.py", line 909, in xmlid_to_res_model_res_id return self.xmlid_lookup(cr, uid, xmlid)[1:3] File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "", line 2, in xmlid_lookup File "/opt/odoo/server/openerp/tools/cache.py", line 74, in lookup value = d[key] = self.method(_args, *_kwargs) File "/opt/odoo/server/openerp/addons/base/ir/ir_model.py", line 899, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % (xmlid)) ParseError: "External ID not found in the system: l10n_cl_dte.action_dte_status_update_form" while parsing /opt/odoo/stable-addons/odoo-bmya-cl/l10n_cl_dte/views/invoice_view.xml:4, near

account.invoice account.invoice.sii.form {'partner_id': partner_id, 'price_type': context.get('price_type') or False, 'type': type}" name="invoice_line" on_change="onchange_invoice_line(invoice_line) ```
asjdjdk


 que puede ser que me este faltando? Saludos

Pablo
Danisan commented 8 years ago

Por si acaso, prueba instalar la rama 8.0_ref que tiene mas actualizaciones El El mié, 28 de sept de 2016 a las 14:36, pasg notifications@github.com escribió:

Estimado @Danisan https://github.com/Danisan acabo de reinstalar todo de cero en ubuntu 14 y aun me arroja mismo error de variables, instale dependencias previas y comente #'wizard/dte_status_update_view.xml' en openerp.py segun problema mencionado en otro hilo, solucione todos los import que no se cumplian por problemas de 'external_dependencies' . pero muestra este error.

Traceback (most recent call last): File "/opt/odoo/server/openerp/http.py", line 544, in

_handle_exception return super(JsonRequest, self).handle_exception(exception) File "/opt/odoo/server/openerp/http.py", line 581, in dispatch result = self._call_function(_self.params) File "/opt/odoo/server/openerp/http.py", line 317, in _call_function return checked_call(self.db, _args, kwargs) File "/opt/odoo/server/openerp/service/model.py", line 118, in wrapper return f(dbname, args, kwargs) File "/opt/odoo/server/openerp/http.py", line 314, in checked_call return self.endpoint(a, kw) File "/opt/odoo/server/openerp/http.py", line 810, in _call return self.method(_args, _kw) File "/opt/odoo/server/openerp/http.py", line 410, in response_wrap response = f(_args, _kw) File "/opt/odoo/server/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/opt/odoo/server/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/module/module.py", line 447, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/module/module.py", line 495, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/opt/odoo/server/openerp/modules/registry.py", line 370, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo/server/openerp/modules/loading.py", line 355, in load_modules loaded_modules, update_module) File "/opt/odoo/server/openerp/modules/loading.py", line 255, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/opt/odoo/server/openerp/modules/loading.py", line 176, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "/opt/odoo/server/openerp/modules/loading.py", line 118, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/opt/odoo/server/openerp/tools/convert.py", line 900, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/opt/odoo/server/openerp/tools/convert.py", line 986, in convert_xml_import obj.parse(doc.getroot(), mode=mode) File "/opt/odoo/server/openerp/tools/convert.py", line 852, in parse self._tagsrec.tag http://self.cr,%20rec,%20n,%20mode=mode File "/opt/odoo/server/openerp/tools/convert.py", line 756, in _tag_record f_val = _eval_xml(self,field, self.pool, cr, self.uid, self.idref) File "/opt/odoo/server/openerp/tools/convert.py", line 176, in _eval_xml for n in node]), idref) File "/opt/odoo/server/openerp/tools/convert.py", line 165, in _process idref[id] = self.id_get(cr, id) File "/opt/odoo/server/openerp/tools/convert.py", line 831, in id_get res = self.model_id_get(cr, id_str, raise_if_not_found) File "/opt/odoo/server/openerp/tools/convert.py", line 842, in model_id_get raise_if_not_found=raise_if_not_found) File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/opt/odoo/server/openerp/addons/base/ir/ir_model.py", line 909, in xmlid_to_res_model_res_id return self.xmlid_lookup(cr, uid, xmlid)[1:3] File "/opt/odoo/server/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "", line 2, in xmlid_lookup File "/opt/odoo/server/openerp/tools/cache.py", line 74, in lookup value = d[key] = self.method(_args, *_kwargs) File "/opt/odoo/server/openerp/addons/base/ir/ir_model.py", line 899, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % (xmlid)) ParseError: "External ID not found in the system: l10n_cl_dte.action_dte_status_update_form" while parsing /opt/odoo/stable-addons/odoo-bmya-cl/l10n_cl_dte/views/invoice_view.xml:4, near

account.invoice account.invoice.sii.form

{'partner_id': partner_id, 'price_type': context.get('price_type') or False, 'type': type}" name="invoice_line" on_change="onchange_invoice_line(invoice_line)

        <notebook>
            <page string="Electronic Invoice" name="electronic_invoice">
                <header>
                    <div attrs="{'invisible':[                                     ('state', 'in', ['draft']),                                     ('sii_result', 'not in', ['NoEnviado'])]}">

                        <button string="Download XML" type="object" name="get_xml_file" class="oe_highlight" attrs="{'invisible':[('state', 'in', ['draft'])]}"/>
                        <button string="Send DTE" type="object" name="send_dte" class="oe_highlight"/>
                        <button string="Check DTE Status" type="object" name="check_dte_status"/>
                        <button name="%(action_dte_status_update_form)d" string="Update DTE Status" type="action" context="{                                         'sii_status': sii_result,                                         'dte_provider': dte_service_provider}"/>
                    </div>
                    <field name="sii_result" widget="statusbar" clickable="False" onchange="%(action_dte_status_update_form)d" context="{                                         'sii_status': sii_result,                                         'dte_provider': dte_service_provider}"/>
                </header>
                <group>
                    <field name="sii_batch_number"/>
                    asjdjdk
                    <field name="dte_service_provider"/>
                    <field name="sii_barcode_img" widget="image" attrs="{'invisible':['|',('sii_result', '=', ''), ('dte_service_provider', 'not in', ['SIIHOMO', 'SII'])]}"/>
                    <field name="sii_message" attrs="{'invisible':[('sii_result', 'in', ['','NoEnviado'])]}"/>
                    <field name="sii_xml_request" attrs="{'invisible':[('sii_result', '=', '')]}"/>
                    <field name="sii_xml_response" attrs="{'invisible':[('sii_result', 'in', [''])]}"/>
                    <field name="sii_send_ident" attrs="{'invisible':[('sii_result', 'in', ['','NoEnviado'])]}"/>
                </group>
            </page>
        </notebook>
    </data></field>
</record>

que puede ser que me este faltando? Saludos

Pablo

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/odoo-chile/l10n_cl_dte/issues/8#issuecomment-250240127, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXXrYNscCSFDl_LxiiRKjIL_BlGd2Kdks5quqWtgaJpZM4KHly1 .

Quedo atento a sus comentarios. Saludos:

Ing. Daniel Blanco Director Blanco Martín & Asociados Móvil: +56 9 73880409 / +54 9 351 228-0893 Skype: hdanielb Twitter: hdanielb http://linkd.in/danielblanco

Chile: Blanco Martín EIRL Apoquindo 6410 Of 212 +56 2 2840 0990 / +56 2 2979 0208 Las Condes - Región Metropolitana http://www.blancomartin.cl

Argentina: BMyA S.A. Nicasio 6970. Córdoba +54 351 5694621 / +54 351 5691933 Argüello - Córdoba http://www.blancomartin.com.ar

pasg commented 8 years ago

Estimado @Danisan gracias por la sugerencia probare

saludos

pasg commented 8 years ago

Estimado @Danisan He probado de cero nuevamente y tengo mismos errores, despues del reinicio del servidor no veo ningun detalle todos los modulos cargados correctamente siguiendo el orden de las dependencias y cuando llego a instalar el modulo l10n_cl_dte, tengo mismos errores. no sera que la variable action_dte_status_update_form no llega por que he comentado #'wizard/dte_status_update_view.xml en openerp.py , pero ai no lo hago me aparece otro error que dice que el campo idsii no existe. Ahora perdido :( (te dejo log luego del reinicio del servicio odoo para que veas que no aparecen errores solo hasta el intento de instalar modulo) Saludos Pablo

2016-09-29 11:24:45,534 1363 INFO ? openerp.service.server: Initiating shutdown 2016-09-29 11:24:45,535 1363 INFO ? openerp.service.server: Hit CTRL-C again or send a second signal to force the shutdown. 2016-09-29 11:24:47,768 3431 INFO ? openerp: OpenERP version 8.0 2016-09-29 11:24:47,770 3431 INFO ? openerp: addons paths: ['/opt/odoo/.local/share/Odoo/addons/8.0', u'/opt/odoo/server/addons', u'/opt/odoo/stable_addons/odoo-bmya-cl', u'/opt/odoo/stable_addons/odoo-bmya', u'/opt/odoo/stable_addons/aeroo_reports', '/opt/odoo/server/openerp/addons'] 2016-09-29 11:24:47,771 3431 INFO ? openerp: database hostname: localhost 2016-09-29 11:24:47,771 3431 INFO ? openerp: database port: 5432 2016-09-29 11:24:47,771 3431 INFO ? openerp: database user: odoo 2016-09-29 11:24:48,000 3431 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069 2016-09-29 11:25:09,740 3431 INFO ? openerp.addons.bus.bus: Bus.loop listen imbus on db postgres 2016-09-29 11:25:10,465 3431 INFO ? openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf 2016-09-29 11:25:10,489 3431 INFO ? openerp.addons.report.models.report: Upgrade Wkhtmltopdf to (at least) 0.12.0 2016-09-29 11:25:11,362 3431 INFO ? report_aeroo: Aeroo lock instantiated. 2016-09-29 11:25:11,385 3431 INFO ? openerp.http: HTTP Configuring static files 2016-09-29 11:25:11,428 3431 INFO odoo openerp.modules.loading: loading 1 modules... 2016-09-29 11:25:11,453 3431 INFO odoo openerp.modules.loading: 1 modules loaded in 0.02s, 0 queries 2016-09-29 11:25:11,510 3431 INFO odoo openerp.modules.loading: loading 47 modules... 2016-09-29 11:25:11,525 3431 INFO odoo passlib.registry: registered crypt handler 'pbkdf2_sha512': <class 'passlib.handlers.pbkdf2.pbkdf2_sha512'> 2016-09-29 11:25:11,526 3431 INFO odoo passlib.registry: registered crypt handler 'md5_crypt': <class 'passlib.handlers.md5_crypt.md5_crypt'> 2016-09-29 11:25:11,723 3431 INFO odoo openerp.modules.loading: 47 modules loaded in 0.21s, 0 queries 2016-09-29 11:25:13,610 3431 INFO odoo openerp.modules.loading: Modules loaded. 2016-09-29 11:25:13,613 3431 INFO odoo openerp.addons.base.ir.ir_http: Generating routing map 2016-09-29 11:25:16,342 3431 INFO odoo werkzeug: 192.168.1.205 - - [29/Sep/2016 11:25:16] "GET /web? HTTP/1.1" 200 - 2016-09-29 11:25:16,391 3431 INFO ? werkzeug: 192.168.1.205 - - [29/Sep/2016 11:25:16] "GET /web/static/src/css/full.css HTTP/1.1" 304 - 2016-09-29 11:25:16,531 3431 INFO odoo werkzeug: 192.168.1.205 - - [29/Sep/2016 11:25:16] "GET /web/css/web.assets_common/5323d6b HTTP/1.1" 200 - 2016-09-29 11:25:16,580 3431 INFO odoo werkzeug: 192.168.1.205 - - [29/Sep/2016 11:25:16] "GET /web/js/web.assets_common/5323d6b HTTP/1.1" 200 - 2016-09-29 11:25:17,251 3431 INFO odoo werkzeug: 192.168.1.205 - - [29/Sep/2016 11:25:17] "GET /web/css/web.assets_backend/013c48d HTTP/1.1" 200 -

pasg commented 8 years ago

Muy Estimado @Danisan el problema estaba en que el repositorio que estaba usando estaba en https://github.com/bmya/odoo-bmya-cl , que lo habia sacado desde la pagina de odoo-chile, lo clone desde el repositorio en particular para este modulo y ahora cargo sin ningun problema, seguramente estaba usando una version antigua de este modulo. Muy amable por su tiempo y sus consejos ahora me queda probar el funcionamiento de esta maravilla, muy agradecido Pablo

aramosarn commented 6 years ago

Pablo.

Buenos dias me podrias indicar donde esta el repositorio que mencionas, tengo el mismo problema