跳至内容
菜单
此问题已终结

Hello odoo community,


I'm currently testing the spreadsheet addon but i have a problem.

I can export my spreadsheet into a JSON file, but i don't find any options to import it into a spreadsheet. Is it possible to do this, and if so where can I do that ?


Thank you



 

形象
丢弃
最佳答案

Hello, 

I test this way of doing.

I found that (v17) we have to remove de json extension of the file we want to import.

The mime type will be text/plain after the opération but it runs.

I found also that you can not import a file without replacing a file that exist, neither duplicate an attachement. You have to create a virgin file, and replace the file by the one you to import.

形象
丢弃
最佳答案

Yes but its not very user friendly to get to.

spreadsheets are basically an attachment in Odoo. (model ir_attachment)

If you enable developer mode and go to settings > Technical > Data Structure > Attachments

You will see all your attachments. If you recently create a spreadsheet it will be at the top of the list.

Look for the name of the spreadsheet and open the attachment.

It will have a File Content field (datas field name in database) with the json file for the spreadsheet. 

I downloaded the file , modified it , cleared the one on the File Content field and reuploaded it.

形象
丢弃

Hello Bertus.
I've just tried this way of uploading the json file, but it's not converting it into a spreadsheet.
When I go to documents, there is no new spreadsheet
Also, what I see different to the other spreadsheets is the Resource Model and Resource ID.
When I try to do what you say, the Model and ID are left blank, whereas in the other spreadsheet the Model is document.document and the ID is a number, but I cannot modify it.
What is the solution for this?

I created the spreadsheet in the UI first and then modified the json attachment it was linked to in the ir_attachement model.

相关帖文 回复 查看 活动
0
1月 24
1276
2
11月 24
1359
9
4月 25
3725
0
5月 24
1201
0
9月 23
1339