Foro de Odoo Argentina


¡BIENVENIDO AL FORO DE ODOO ARGENTINA!

BRINDAMOS UN ESPACIO A LA COMUNIDAD ARGENTINA DE ODOO PARA CENTRALIZAR EL DEBATE, COMPARTIR IDEAS, DESARROLLOS, Y FORMAR PARTE DE UNA COMUNIDAD QUE CRECE DÍA A DÍA

¿No estás registrado?  REGISTRATE

0

Confirmar Orden de Compra

Avatar
Gisela

Buenas Tardes, como estan?

Tengo instalado Odoo V8 sobre Debian.

Estoy tratando de confirmar una orden de compra desde presupuesto (se encuentra en estado Licitacion Recibida) y me da el siguiente error:

 

Traceback (most recent call last):

  File "/opt/odoo/openerp/http.py", li           ne 539, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/opt/odoo/openerp/http.py", line 576, in dispatch

    result = self._call_function(**self.params)

  File "/opt/odoo/openerp/http.py", line 312, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/openerp/service/model.py", line 118, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/openerp/http.py", line 309, in checked_call

    return self.endpoint(*a, **kw)

  File "/opt/odoo/openerp/http.py", line 805, in __call__

    return self.method(*args, **kw)

  File "/opt/odoo/openerp/http.py", line 405, in response_wrap

    response = f(*args, **kw)

  File "/opt/odoo/addons/web/controllers/main.py", line 955, in exec_workflow

    return request.session.exec_workflow(model, id, signal)

  File "/opt/odoo/openerp/http.py", line 1113, in exec_workflow

    r = self.proxy('object').exec_workflow(self.db, self.uid, self.password, model, signal, id)

  File "/opt/odoo/openerp/http.py", line 881, in proxy_method

    result = dispatch_rpc(self.service_name, method, args)

  File "/opt/odoo/openerp/http.py", line 115, in dispatch_rpc

    result = dispatch(method, params)

  File "/opt/odoo/openerp/service/model.py", line 37, in dispatch

    res = fn(db, uid, *params)

  File "/opt/odoo/openerp/service/model.py", line 118, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/openerp/service/model.py", line 188, in exec_workflow

    return exec_workflow_cr(cr, uid, obj, signal, *args)

  File "/opt/odoo/openerp/service/model.py", line 182, in exec_workflow_cr

    return execute_cr(cr, uid, obj, 'signal_workflow', [res_id], signal)[res_id]

  File "/opt/odoo/openerp/service/model.py", line 164, in execute_cr

    return getattr(object, method)(cr, uid, *args, **kw)

  File "/opt/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/openerp/models.py", line 3571, in signal_workflow

    result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, cr)

  File "/opt/odoo/openerp/workflow/__init__.py", line 85, in trg_validate

    return WorkflowService.new(cr, uid, res_type, res_id).validate(signal)

  File "/opt/odoo/openerp/workflow/service.py", line 91, in validate

    res2 = wi.validate(signal)

  File "/opt/odoo/openerp/workflow/instance.py", line 80, in validate

    wi.process(signal=signal, force_running=force_running, stack=stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 120, in process

    ok = self._split_test(activity['split_mode'], signal, stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 248, in _split_test

    self._join_test(t[0], t[1], stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 257, in _join_test

    WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 95, in create

    workflow_item.process(stack=stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 120, in process

    ok = self._split_test(activity['split_mode'], signal, stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 248, in _split_test

    self._join_test(t[0], t[1], stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 272, in _join_test

    WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 95, in create

    workflow_item.process(stack=stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 120, in process

    ok = self._split_test(activity['split_mode'], signal, stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 248, in _split_test

    self._join_test(t[0], t[1], stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 257, in _join_test

    WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 95, in create

    workflow_item.process(stack=stack)

  File "/opt/odoo/openerp/workflow/workitem.py", line 116, in process

    if not self._execute(activity, stack):

  File "/opt/odoo/openerp/workflow/workitem.py", line 187, in _execute

    id_new = self.wkf_expr_execute(activity)

  File "/opt/odoo/openerp/workflow/workitem.py", line 313, in wkf_expr_execute

    return self.wkf_expr_eval_expr(activity['action'])

  File "/opt/odoo/openerp/workflow/workitem.py", line 291, in wkf_expr_eval_expr

    result = eval(line, env, nocopy=True)

  File "/opt/odoo/openerp/tools/safe_eval.py", line 314, in safe_eval

    return eval(c, globals_dict, locals_dict)

  File "", line 1, in <module>

  File "/opt/odoo/openerp/api.py", line 266, in wrapper

    return new_api(self, *args, **kwargs)

  File "/opt/odoo/openerp/api.py", line 592, in new_api

    result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)

  File "/opt/odoo/addons/purchase/purchase.py", line 700, in action_invoice_create

    inv_id = inv_obj.create(cr, uid, inv_data, context=context)

  File "/opt/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/addons/mail/mail_thread.py", line 381, in create

    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)

  File "/opt/odoo/openerp/api.py", line 268, in wrapper

    return old_api(self, *args, **kwargs)

  File "/opt/odoo/openerp/api.py", line 372, in old_api

    result = method(recs, *args, **kwargs)

  File "/opt/odoo/openerp/models.py", line 4093, in create

    record = self.browse(self._create(old_vals))

  File "/opt/odoo/openerp/api.py", line 266, in wrapper

    return new_api(self, *args, **kwargs)

  File "/opt/odoo/openerp/api.py", line 508, in new_api

    result = method(self._model, cr, uid, *args, **old_kwargs)

  File "/opt/odoo/openerp/models.py", line 4231, in _create

    tuple([u[2] for u in updates if len(u) > 2])

  File "/opt/odoo/openerp/sql_db.py", line 158, in wrapper

    return f(self, *args, **kwargs)

  File "/opt/odoo/openerp/sql_db.py", line 234, in execute

    res = self._obj.execute(query, params)

ValueError: "el valor null para la columna \xabaccount_id\xbb viola la restricci\xf3n not null

DETALLE:  La fila que falla contiene (19, null, null, 0.00, PO00003, 7, null, null, 1, 20, 2016-04-12 10:45:49.165825, 1, null, null, null, 8, null, none, 11, null, draft, null, in_invoice, null, null, f, null, null, null, null, 2016-04-12 10:45:49.165825, 1, 1, PO00003, null, PO00003, f, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null).

" while evaluating

u'action_invoice_create()'

 

Alguien podra orientarme porfa?

 

Muchas Gracias!

Avatar
Descartar