Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
4575 Lượt xem

Hi

Please help me

How to print recurring calendar or view list meeting, create a report but send me error with recurring meeting

If i need a card with the meeting of each client

Thank you



Ảnh đại diện
Huỷ bỏ
Tác giả

this my error

Odoo Server Error

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1671, in report_download

response = self.report_routes(reportname, docids=docids, converter=converter)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1598, in report_routes

docids = [int(i) for i in docids.split(',')]

File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1598, in <listcomp>

docids = [int(i) for i in docids.split(',')]

ValueError: invalid literal for int() with base 10: '9-20190626173000'

Tác giả Câu trả lời hay nhất

Thank you I just want to take the values ​​of a view that lists and stop the card, the model is calendar.event, only want the 'start' field, which is so likely to do i.













Citas programadas



















Citas Fecha Inicio Fecha Fin Data






Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

The error says itself, you are trying to convert invalid literal to INT type. I think you are trying to make the type list of values from the string. Try to use python's builtin function eval().

docids = "[2,3,4]"

eval(docids) = [2,3,4]

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 17
4580
0
thg 6 25
992
1
thg 1 24
1639
0
thg 4 19
3510
1
thg 3 16
7038