Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

I just noticed we can create directories/files on certain locations on Odoo.sh using its shell and I'm looking a way to take advantage of this. Now the question is... am I allowed to do it? Will it cause any repercussion or problem? If you want to see the big picture, let me explain:

I'm looking forward to create .xml files through a method on a module I coded. The thing is. I'm getting permission errors. But what if I can create those files on a different location other than inside my module? somewhere where I can create/edit/delete files? 
The .xml file will be sent to a SOAP ws. And it needs to have an specific name. So apart from my permission names, there the issue where I cannot use temporary files since the libraries for temporary files also make the name of the object random. Then trying to change its name would cause a series of other issues to resolve.

So... Am I allowed to create/edit/delete directories/files on Odoo.sh (Odoo11)? I'm thinking about creating a new directory on /home/odoo/ and in store files in there which will be erased when my method finishes.

 Link for the permission error.
\Permission error when trying to write file using ElementTree 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 22
8486
1
thg 10 17
8215
1
thg 8 18
3517
3
thg 7 18
13957
1
thg 9 21
4381