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

When I try to import a invoice CSV I get "Server error price_unit", or "Server error quantity", the error is with first float field from line

Same file can be importe ok v15 community, but get error in v16 Enterprise, I have tried two different databases (just editing external id from product)


The CSV file is 

"id","name","invoice_date","invoice_date_due","amount_total","invoice_line_ids/price_unit","invoice_line_ids/quantity","invoice_line_ids/product_id/id","invoice_line_ids/amount_currency"
"","nueva_v2","2023-03-12","2023-03-12",30.0,30.0,10.0,"__export__.product_product_10_803b28e0",300.0

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

Hi,

Are you using Odoo saas 16.1 ? If yes, there is an issue with relational field import and it has been fixed already.

Hope the source code will updated soon in the odoo online db's.


FIX: https://github.com/odoo/odoo/commit/871690afdc2ce4da2770a144cc4fc5ed038e6f73


Thanks

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

Yes I use ODOO saas I suppose is last version, thanks

Câu trả lời hay nhất

To repair a corrupt CSV file, you need to make sure it's saved with UTF-8 encoding. You might also need to remove special characters like semicolons and commas that are causing data cells to be wrongfully split in two. 

Regards,
Peter

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 24
1508
5
thg 5 17
15100
2
thg 5 25
1344
4
thg 5 25
5069
1
thg 8 24
2350