콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
4242 화면
How can I update a module through the command line?

I am using linux ubuntu 22.04

even using the command

./odoo-bin -c /etc/odoo-server.conf -d demo -u my_module --addons-path=/odoo/odoo-server/addons,/odoo/custom/addons

It doesn't work for me.

When I make any changes to the code, the update is not done automatically, I would have to stop executing the command and then execute it again for it to work and that is what I don't want


I would like to know some command or some way so that when I make any changes to the code of a module, I can see the changes immediately.
아바타
취소
베스트 답변

Hi,
Refer:  How To Upgrade Module From Terminal in Odoo


To get XML Changes Without Upgrading The Module in Odoo, See:  https://www.youtube.com/watch?v=ZoofkhL0ph4


Thanks

아바타
취소
베스트 답변

Hi,

Follow the below command to upgrade a module.

./odoo-bin -u your_module -c /etc/odoo-server.conf


Also update the apps list from Apps > Update apps" and by then clicking on "Update" in the app itself.


Hope it helps

아바타
취소
베스트 답변

Hello Guojian Wen,


To update an Odoo module through the command line on Ubuntu and see changes immediately without restarting the server, follow these steps:


    Install Python's watchdog Library:

    First, install the watchdog library, which can monitor file changes:


pip install watchdog


Use the --dev=all; Option:

When running the odoo-bin command, add the --dev=all; option to automatically watch for changes in Python code and templates. The command might look like this:


    ./odoo-bin -c /etc/odoo-server.conf -d demo -u my_module --dev=all;

    ./odoo-bin -c /etc/odoo-server.conf -d demo -u my_module --dev=reload;


        reload: This option automatically reloads Python code when changes are detected.


By using these methods, you should be able to see changes in your module immediately without needing to stop and restart the server.


Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

아바타
취소
베스트 답변

Hi Guojian Wen,

In Odoo, if you make changes to an XML file, you need to upgrade the module and restart the server every time. However, if you make changes to a Python file, you must restart the server every time. There is no other way to see the changes immediately without restarting the server.

Thanks.


아바타
취소
관련 게시물 답글 화면 활동
0
3월 15
5412
0
4월 17
4242
1
12월 23
2574
1
3월 23
5858
2
2월 23
3244