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

i want to install this library

sudo apt install python3-pyodbc


my requirements.txt file




this txt file is not working in odoo.sh build failed ... unable to install error


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

The location where Odoo looks for the requirements.txt file is documented at https://www.odoo.com/documentation/user/14.0/odoo_sh/getting_started/first_module.html#use-an-external-python-library


The file needs to be in the root folder of your repository.  

/home/odoo/src/user/requirements.txt
Ảnh đại diện
Huỷ bỏ

It worked perfectly for Odoo Sh, Thank you Ray

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

Hello Usman,

include below details to __manifest__.py and after committing it goto Apps with debug mode on -> update applist file and update the module.

'external_dependencies': {

    'python' : ['unixodbc','unixodbc-dev','pyodbc'],

},

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

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

its working perfectly fine in local and any vps server but not in odoo.sh

Bài viết liên quan Trả lời Lượt xem Hoạt động
7
thg 7 25
51249
0
thg 12 24
1747
ODOO.sh Đã xử lý
2
thg 10 24
13646
1
thg 9 24
2247
1
thg 5 24
3963