odoomrp / odoomrp-wip

WIP of OdooMRP
http://www.odoomrp.com
GNU Affero General Public License v3.0
117 stars 247 forks source link

CL01: clientes relacionados traceback #66

Closed anajuaristi closed 10 years ago

anajuaristi commented 10 years ago

Dijimos de quitar el segundo one2many y que la relación se hiciera automáticamente por dentro para simular un many2many.

El one2many sigue ahí y además al intentar meter manualmente un dato da este traceback

  return self.endpoint(*a, **kw)
  File "/opt/odoo/odoomrp/odoo/openerp/http.py", line 688, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoomrp/odoo/openerp/http.py", line 363, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoomrp/odoo/addons/web/controllers/main.py", line 941, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/odoomrp/odoo/addons/web/controllers/main.py", line 933, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/odoomrp/odoo/openerp/api.py", line 234, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoomrp/odoo/openerp/api.py", line 357, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/odoomrp/odoo/openerp/models.py", line 5679, in onchange
    record._onchange_eval(name, field_onchange[name], result)
  File "/opt/odoo/odoomrp/odoo/openerp/models.py", line 5613, in _onchange_eval
    method_res = getattr(self._model, method)(*args)
  File "/opt/odoo/odoomrp/odoo/openerp/api.py", line 234, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoomrp/temp_addons/partner_rel_ext/models/partner_rel_ext.py", line 36, in onchange_customer1_id
    if client1_id == part.id:
NameError: global name 'client1_id' is not defined
oihane commented 10 years ago

https://github.com/odoomrp/odoomrp-almetac/pull/14