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

When I import an excel from the admin user, it works completely fine.

but when I try to import from another user, it gives me the following error:

Error:
SyntaxError: expected expression, got '<'

https://erp.alitkan.com/web#action=import&cids=1&menu_id=323&model=hr.employee:1
Traceback:
DOMEval@https://erp.alitkan.com/web/content/24837-1c36db2/web.assets_common.js:709:10
globalEval@https://erp.alitkan.com/web/content/24837-1c36db2/web.assets_common.js:723:48
text script@https://erp.alitkan.com/web/content/24837-1c36db2/web.assets_common.js:1325:466
ajaxConvert@https://erp.alitkan.com/web/content/24837-1c36db2/web.assets_common.js:1278:79
done@https://erp.alitkan.com/web/content/24837-1c36db2/web.assets_common.js:1308:10
callback/<@https://erp.alitkan.com/web/content/24837-1c36db2/web.assets_common.js:1324:322

I tried turning the developer mode ON and OFF to see if it had any effect. IT DIDN'T

Please Help

Thanks In Advanced.

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

Same problem, certainly one proxy missconfiguration, it's running well with locahost adress and not with dns. 

Solution posted here with nginx www.odoo.com/fr_FR/forum/aide-1/syntaxerror-expected-expression-got-172503

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

So I discovered this was most likely because the xlsx file format that Microsoft Excel save is different from the xlsx file format that odoo uses  to export & import. So I just need to export an xlsx file from odoo, and than change it's content to what I need and than it'll run normally

Ảnh đại diện
Huỷ bỏ

That is for sure not the proper answer.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 22
6576
0
thg 5 20
2935
4
thg 5 24
2873
3
thg 11 23
7401
4
thg 10 22
18543