コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4098 ビュー

I have two Point of Sales. Both are occupied. When I try to access to Point of Sale dashboard, it is throwing following error:

Software Server Error

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/Software/http.py", line 638, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/Software/http.py", line 675, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/dist-packages/Software/http.py", line 331, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/Software/service/model.py", line 119, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/Software/http.py", line 324, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python2.7/dist-packages/Software/http.py", line 933, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/dist-packages/Software/http.py", line 504, in response_wrap response = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/Software/addons/web/controllers/main.py", line 820, in search_read return self.do_search_read(model, fields, offset, limit, domain, sort) File "/usr/lib/python2.7/dist-packages/Software/addons/web/controllers/main.py", line 842, in do_search_read offset=offset or 0, limit=limit or False, order=sort or False) File "/usr/lib/python2.7/dist-packages/Software/models.py", line 4671, in search_read result = records.read(fields) File "/usr/lib/python2.7/dist-packages/Software/models.py", line 3007, in read values[name] = field.convert_to_read(record[name], record, use_name_get) File "/usr/lib/python2.7/dist-packages/Software/models.py", line 5186, in __getitem__ return self._fields[key].__get__(self, type(self)) File "/usr/lib/python2.7/dist-packages/Software/fields.py", line 869, in __get__ self.determine_value(record) File "/usr/lib/python2.7/dist-packages/Software/fields.py", line 980, in determine_value self.compute_value(recs) File "/usr/lib/python2.7/dist-packages/Software/fields.py", line 935, in compute_value self._compute_value(records) File "/usr/lib/python2.7/dist-packages/Software/fields.py", line 926, in _compute_value getattr(records, self.compute)() File "/usr/lib/python2.7/dist-packages/Software/addons/point_of_sale/models/pos_config.py", line 162, in _compute_current_session_user pos_config.pos_session_username = pos_config.session_ids.filtered(lambda s: s.state == 'opened').user_id.name File "/usr/lib/python2.7/dist-packages/Software/fields.py", line 863, in __get__ record.ensure_one() File "/usr/lib/python2.7/dist-packages/Software/models.py", line 4798, in ensure_one raise ValueError("Expected singleton: %s" % self)ValueError: Expected singleton: pos.session(95, 94)

We have not customized anything. 

アバター
破棄
著作者 最善の回答

I was able to figure out the problem. There were concurrently two sessions of point of sale. After I deleted one session, it worked fine. What I am confused about is- how was a user able to start two concurrent sessions on same PoS. Both session have same start date and time. 

アバター
破棄

Same thing just happened to me, not sure what happened. Thanks to your previous message it was a quick fix.

著作者

It's a bug. Update to latest nightly and it will work fine.

関連投稿 返信 ビュー 活動
1
12月 24
1404
0
12月 24
1078
1
1月 21
2442
6
11月 19
14715
0
2月 17
3167