odoo-chile / l10n_cl_invoice

Sistema de apoyo a la facturación localización Chilena
http://blancomartin.cl/blog/novedades-odoo-1
GNU Affero General Public License v3.0
8 stars 14 forks source link

journal_activities_ids dominio no está correcto del todo #9

Closed dansanti closed 7 years ago

dansanti commented 8 years ago

Hola!

he estado tratando de resolver el siguiente problema:

en la línea 37 del archivo journal_view.xml se encuentra : xml domain="[('partner_ids', '=', company_id)]"/>

Inicialmente funciona bien, porque se dan las coincidencias de que el company_id == partner_id && partner_ids.length == 1

Danisan commented 8 years ago

quizá una solución sería algo como [('company_id', 'in', 'partner_ids')]

Habria que probar

Danisan commented 8 years ago

Yo tomé para otro lado las prioridades ahora, mientras así sirve.. pero si.. dejo abierto este issue para probar como se arregla.

Cu4rach4 commented 7 years ago

Hola...asumo que este es el error!

`Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 544, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 581, in dispatch result = self._call_function(_self.params) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 317, in _call_function return checked_call(self.db, args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper return f(dbname, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 314, in checked_call return self.endpoint(_a, _kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 810, in call return self.method(_args, _kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 410, in response_wrap response = f(_args, _kw) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/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 "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 495, in _button_immediate_function registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True) File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 370, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 355, in load_modules loaded_modules, update_module) File "/usr/lib/python2.7/dist-packages/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 "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 176, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 118, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 897, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 983, in convert_xml_import obj.parse(doc.getroot(), mode=mode) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 849, in parse self._tags[rec.tag](self.cr, rec, n, mode=mode) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 753, in _tag_record f_val = _eval_xml(self,field, self.pool, cr, self.uid, self.idref) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 173, in _eval_xml for n in node]), idref) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 162, in _process idref[id] = self.id_get(cr, id) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 828, in id_get res = self.model_id_get(cr, id_str, raise_if_not_found) File "/usr/lib/python2.7/dist-packages/openerp/tools/convert.py", line 839, in model_id_get raise_if_not_found=raise_if_not_found) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "/usr/lib/python2.7/dist-packages/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 "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, _args, _kwargs) File "", line 2, in xmlid_lookup File "/usr/lib/python2.7/dist-packages/openerp/tools/cache.py", line 74, in lookup value = d[key] = self.method(_args, *_kwargs) File "/usr/lib/python2.7/dist-packages/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_invoice.action_account_journal_document_config_form" while parsing /home/ubuntu/odoo-bmya-cl/l10n_cl_invoice/views/journal_view.xml:16, near

account.journal account.journal.ar.form ```
dansanti commented 7 years ago

No , eso es por error de dependencia, el error que planteo es de dominio, y ocurre cuando tienes multiempresa

dansanti commented 7 years ago

si usas odoo 9 verifica de que has clonado el branch 9.0

Cu4rach4 commented 7 years ago

Hola Daniel,

Las dependencias ya las instale, encontré los módulos faltantes, y estoy usando la versión 8, para no tener problemas...podría volver a instalar los módulos ya que dieron algunos problemas sclmo tu bien indicas de dependencias...te avisaré nuevamente