تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4300 أدوات العرض

I need to extend the IoT box home page adding new views and controllers. I am able to do it by changing the code inside the box (first I have to make writable the filesystem using  sudo mount -o remount, rw / ) but from time to time, when the box restart I lose all changes, I think the box is updating something and that's why I lose my changes and addons go to default state. Is a way to avoid this? Or what is the way to extend this home view?

الصورة الرمزية
إهمال
أفضل إجابة

Hello,

The box checkout the default code of the recorded database when you update modify the link of the database...

You can avoid this by comment this line of the box:

https://github.com/odoo/odoo/blob/14.0/addons/hw_drivers/main.py#L74


So you can go in the code of your box and comment this line.
After that you can modify the code of the iot

الصورة الرمزية
إهمال

Could you help me please? I have the same problem, but i can't find the line "https://github.com/odoo/odoo/blob/14.0/addons/hw_drivers/main.py#L74" is it in Odoo or the IOT Box, and where.

Thank you very much for your help.

الكاتب

Ricardo Colonia Taborda, you can go inside your IoT box if you know the IP address by SSH: ssh pi@<iot_ip_address>. Password by default is `raspberry` (unless you changed it).
Once you are inside the IoT box you can find all the addons used in the box in /home/pi/odoo/addons. If I got it right, the line you have to comment is ` helpers.check_git_branch()`. If you check that function in the helpers you can understand that they are doing the logic we want to avoid.

HINT: File system in the IoT Box is read-only everytime after you reboot or restart odoo service, so you have to run this command `sudo mount -o remount,rw /` to be able to do any of these changes.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 22
2467
2
مارس 15
6878
1
يونيو 25
2264
2
يونيو 25
596
2
سبتمبر 24
3048