Project

General

Profile

Actions

Bug #5307

closed

Task #5245: [Cơ hội] Hủy cơ hội, hủy cơ hội theo số điện thoại khách

[Hủy đơn theo số khách] Lỗi hủy cơ hội theo số điện thoại

Added by Tuan Sinh about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
High
Target version:
Start date:
11/27/2024
Due date:
% Done:

0%

Estimated time:

Description

- Tái hiện:
Chọn hủy cơ hội theo số khách
Nhập thông tin
Chọn hủy đơn
- Lỗi:
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1782, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying
result = func()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1809, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 2013, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 221, in _dispatch
result = endpoint(**request.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 757, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 28, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/mnt/extra-addons/dth_crm/wizard/cancel_lead_wizard.py", line 59, in action_apply
lead_to_cancel = self.env['dth.crm.lead'].search([('state', 'in', (lead_constants.LEAD_STATES.NEW, lead_constants.LEAD_STATES.OPEN, lead_constants.LEAD_STATES.IN_PROGRESS)),
AttributeError: type object 'LEAD_STATES' has no attribute 'OPEN'

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (https://devcrm.simthanglong.net/web/assets/1de8d7e/web.assets_web.min.js:2900:163)
at XMLHttpRequest.<anonymous> (https://devcrm.simthanglong.net/web/assets/1de8d7e/web.assets_web.min.js:2904:13)

Actions #1

Updated by Nguyen Hoang Duc about 1 month ago

  • Status changed from Open to In progress
Actions #2

Updated by Nguyen Hoang Duc about 1 month ago

  • Status changed from In progress to Pending
Actions #3

Updated by Nguyen Hoang Duc about 1 month ago

  • Status changed from Pending to Waiting to test
Actions #4

Updated by Tuan Sinh about 1 month ago

  • Status changed from Waiting to test to Closed
Actions

Also available in: Atom PDF