Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2741 มุมมอง

py.warnings: :8: DeprecationWarning: invalid escape sequence '\ '

  File "/usr/lib/python3.10/ast.py", line 50, in parse

    return compile(source, filename, mode, flags,

  File "", line 0

    

SyntaxError: invalid syntax


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

This issue is likely caused by backslashes in a couple modules' __manifest__.py files of the enterprise version of Odoo. The likely culprits:

account_bank_statement_import_csv
account_bank_statement_import_ofx
account_bank_statement_import_qif

This can be fixed by simply removing the backslashes found in the files.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Check in your code whether '\' is used or not.

If you want to include a literal backslash in a string, Replace the single backslash with a double backslash `\\` or use a raw string by prefixing the string with `r`

Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
how can I know the current view id? แก้ไขแล้ว
1
ก.ย. 24
1620
0
ก.ย. 24
747
0
พ.ค. 24
1627
Automatic Batch Transfer แก้ไขแล้ว
1
ส.ค. 25
429
1
พ.ค. 25
1260