Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4291 Visualizzazioni

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?

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona

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.

Autore

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.

Post correlati Risposte Visualizzazioni Attività
1
mag 22
2462
2
mar 15
6876
1
giu 25
2262
2
giu 25
590
2
set 24
3045