Skip to Content
Menu
This question has been flagged
2 Replies
1153 Views

Can you help me with this error? Thank you!


Odoo Server Error
Traceback (most recent call last):
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\tools\pycompat.py", line 87, in reraise
    raise value
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\service\model.py", line 98, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "c:\environment\hptc\odoo-egi\odoo\addons\web\controllers\main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "c:\environment\hptc\odoo-egi\odoo\addons\web\controllers\main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\api.py", line 759, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\api.py", line 746, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "c:\environment\hptc\odoo-egi\egi-erp\egi_base\models\operation\operation.py", line 458, in goto_next_state
    self.engage()
  File "c:\environment\hptc\odoo-egi\egi-erp\hptc_chatbot_viber\templates\operation.py", line 12, in checkin
    super(OperationItems, self).checkin()
  File "c:\environment\hptc\odoo-egi\egi-erp\egi_base\models\operation\operation.py", line 393, in checkin
    if self.booking_id:
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\fields.py", line 1048, in __set__
    record.write({self.name: write_value})
  File "c:\environment\hptc\odoo-egi\odoo\addons\mail\models\mail_thread.py", line 321, in write
    result = super(MailThread, self).write(values)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\models.py", line 3344, in write
    self._write(store_vals)
  File "c:\environment\hptc\odoo-egi\odoo\addons\base_automation\models\base_automation.py", line 259, in _write
    action._process(records, domain_post=domain_post)
  File "c:\environment\hptc\odoo-egi\odoo\addons\base_automation\models\base_automation.py", line 205, in _process
    self.action_server_id.with_context(**ctx).run()
  File "c:\environment\hptc\odoo-egi\odoo\odoo\addons\base\models\ir_actions.py", line 569, in run
    res = func(action, eval_context=eval_context)
  File "c:\environment\hptc\odoo-egi\odoo\odoo\addons\base\models\ir_actions.py", line 469, in run_action_object_write
    self.env[action.model_id.model].browse(self._context.get('active_id')).write(res)
  File "c:\environment\hptc\odoo-egi\odoo\addons\mail\models\mail_thread.py", line 321, in write
    result = super(MailThread, self).write(values)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\models.py", line 3344, in write
    self._write(store_vals)
  File "c:\environment\hptc\odoo-egi\odoo\addons\base_automation\models\base_automation.py", line 255, in _write
    _write.origin(records, vals, **kw)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\models.py", line 3412, in _write
    val = field.convert_to_column(val, self, vals)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\fields.py", line 1987, in convert_to_column
    value = self.convert_to_cache(value, record)
  File "C:\Environment\HPTC\odoo-egi\odoo\odoo\fields.py", line 1999, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for operation.item.state: 'done'
Avatar
Discard
Best Answer

I think, State 'done' not mention in your code or wrongly you declare state.Please check.

Avatar
Discard
Best Answer

i think, last line here is self explanatory regarding the error, check the field operation.item.state where you are going to assisgn value 'done' 

Avatar
Discard