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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 22
|
1384 | ||
|
2
Mar 15
|
5789 | ||
|
2
Sep 24
|
1856 | ||
|
5
Aug 24
|
42983 | ||
|
3
Jun 24
|
1838 |