Advertisement
ego201982

Error en historico de suscripciones SATELCA

Jun 14th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. RPC_ERROR
  2. Odoo Server Error
  3. Traceback (most recent call last):
  4. File "/home/odoo/src/odoo/odoo/api.py", line 899, in get
  5. return field_cache[record._ids[0]]
  6. KeyError: 1
  7.  
  8. During handling of the above exception, another exception occurred:
  9.  
  10. Traceback (most recent call last):
  11. File "/home/odoo/src/odoo/odoo/fields.py", line 1083, in __get__
  12. value = env.cache.get(record, self)
  13. File "/home/odoo/src/odoo/odoo/api.py", line 902, in get
  14. raise CacheMiss(record, field)
  15. odoo.exceptions.CacheMiss: 'subscription.history(1,).display_name'
  16.  
  17. During handling of the above exception, another exception occurred:
  18.  
  19. Traceback (most recent call last):
  20. File "/home/odoo/src/odoo/odoo/models.py", line 5240, in ensure_one
  21. _id, = self._ids
  22. ValueError: too many values to unpack (expected 1)
  23.  
  24. The above exception was the direct cause of the following exception:
  25.  
  26. Traceback (most recent call last):
  27. File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 242, in _dispatch
  28. result = request.dispatch()
  29. File "/home/odoo/src/odoo/odoo/http.py", line 702, in dispatch
  30. result = self._call_function(**self.params)
  31. File "/home/odoo/src/odoo/odoo/http.py", line 368, in _call_function
  32. return checked_call(self.db, *args, **kwargs)
  33. File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
  34. return f(dbname, *args, **kwargs)
  35. File "/home/odoo/src/odoo/odoo/http.py", line 357, in checked_call
  36. result = self.endpoint(*a, **kw)
  37. File "/home/odoo/src/odoo/odoo/http.py", line 925, in __call__
  38. return self.method(*args, **kw)
  39. File "/home/odoo/src/odoo/odoo/http.py", line 546, in response_wrap
  40. response = f(*args, **kw)
  41. File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1282, in search_read
  42. return self.do_search_read(model, fields, offset, limit, domain, sort)
  43. File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1301, in do_search_read
  44. return Model.web_search_read(domain, fields, offset=offset, limit=limit, order=sort)
  45. File "/home/odoo/src/odoo/addons/web/models/models.py", line 62, in web_search_read
  46. records = self.search_read(domain, fields, offset=offset, limit=limit, order=order)
  47. File "/home/odoo/src/odoo/odoo/models.py", line 5091, in search_read
  48. result = records.read(fields, **read_kwargs)
  49. File "/home/odoo/src/odoo/odoo/models.py", line 3243, in read
  50. return self._read_format(fnames=fields, load=load)
  51. File "/home/odoo/src/odoo/odoo/models.py", line 3263, in _read_format
  52. vals[name] = convert(record[name], record, use_name_get)
  53. File "/home/odoo/src/odoo/odoo/models.py", line 5936, in __getitem__
  54. return self._fields[key].__get__(self, self.env.registry[self._name])
  55. File "/home/odoo/src/odoo/odoo/fields.py", line 1132, in __get__
  56. self.compute_value(recs)
  57. File "/home/odoo/src/odoo/odoo/fields.py", line 1295, in compute_value
  58. records._compute_field_value(self)
  59. File "/home/odoo/src/odoo/odoo/models.py", line 4277, in _compute_field_value
  60. fields.determine(field.compute, self)
  61. File "/home/odoo/src/odoo/odoo/fields.py", line 88, in determine
  62. return needle(*args)
  63. File "/home/odoo/src/user/odoo-mastercore/isp_addons/subscription_isp/models/subscription_history.py", line 28, in _compute_display_name
  64. self.display_name = self.subscription_id.template_id.code + '/' + self.subscription_id.code
  65. File "/home/odoo/src/odoo/odoo/fields.py", line 1076, in __get__
  66. record.ensure_one()
  67. File "/home/odoo/src/odoo/odoo/models.py", line 5243, in ensure_one
  68. raise ValueError("Expected singleton: %s" % self)
  69. Exception
  70.  
  71. The above exception was the direct cause of the following exception:
  72.  
  73. Traceback (most recent call last):
  74. File "/home/odoo/src/odoo/odoo/http.py", line 658, in _handle_exception
  75. return super(JsonRequest, self)._handle_exception(exception)
  76. File "/home/odoo/src/odoo/odoo/http.py", line 301, in _handle_exception
  77. raise exception.with_traceback(None) from new_cause
  78. ValueError: Expected singleton: sale.subscription(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 19, 20, 23, 24, 25, 26, 27, 28, 29, 31, 32, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 49, 50, 51, 52, 55, 56, 58, 59, 60, 61, 62, 63, 66, 67, 68, 70, 71, 73, 74, 75, 77, 78, 80, 81, 82, 83, 85, 86, 87, 89, 90, 91, 94, 95, 99, 100, 101, 103, 104, 105, 106, 108, 109, 110)
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement