Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1636 Widoki

Hi,

Everytime I try to sell a giftcard through POS I get this error. I only get the error when selling through POS, not when I use the sales app. It appears when I validate the payment. I then click validate a second time and its fine.

expected string or bytes-like object
Traceback (most recent call last):
  File "C:\Program Files\Odoo 17.0.20240503\server\odoo\addons\web\controllers\report.py", line 113, in report_download
    response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
  File "C:\Program Files\Odoo 17.0.20240503\server\odoo\http.py", line 725, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "C:\Program Files\Odoo 17.0.20240503\server\odoo\addons\prt_report_attachment_preview\controllers\report.py", line 149, in report_routes
    report_file_name = self._compose_report_file_name(docids, report)
  File "C:\Program Files\Odoo 17.0.20240503\server\odoo\addons\prt_report_attachment_preview\controllers\report.py", line 82, in _compose_report_file_name
    extra_ctx = self._get_extra_context_for_single_record(
  File "C:\Program Files\Odoo 17.0.20240503\server\odoo\addons\prt_report_attachment_preview\controllers\report.py", line 52, in _get_extra_context_for_single_record
    for expr in re.findall(r"%.?\(.*?\)", report_name):
  File "C:\Program Files\Odoo 17.0.20240503\python\lib\re.py", line 240, in findall
    return _compile(pattern, flags).findall(string)
TypeError: expected string or bytes-like object


Awatar
Odrzuć
Najlepsza odpowiedź

Hi,
From the shared traceback it seems to be error coming from the module:  prt_report_attachment_preview, so try to bring the latest app of this from the store and update your instance and see if it makes any difference.

Thanks

Awatar
Odrzuć
Autor Najlepsza odpowiedź

OMG thank you so much!!! You made my day. I have disabled the module and everything is perfect.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
paź 25
111
1
wrz 25
1200
2
wrz 25
1399
1
sie 25
1186
1
lip 25
1459