Skip to Content
Menu
This question has been flagged
2 Replies
3451 Views

Hello,

I want to add a HTTP route inside the IOT BOx. I have modifield the driver.py inside the hw_drivers module. I have upgraded the module in my database, restarted IOT box and restarted IOT Box odoo server. However, I dont see any changes inside the cdoe of IOT Box.


Best Regards

Avatar
Discard
Author

Here is the code I am using:

@http.route('/hw_drivers/test', type='json', auth='user', csrf=False, method='POST')

def test(self, **kw):

return "TEST

Best Answer

Hello,

You must modify the code of your controller directly in the IoT Box.

But first the box must be writable:

'sudo mount -o remount,rw /'

Avatar
Discard
Author

Thank you for your response.

For some reasons, I am unable to make the IOT Box writable. But I have found an alternative solution

Related Posts Replies Views Activity
1
Aug 20
3428
2
Sep 24
1847
0
Nov 23
277
0
Jun 23
1472
0
Oct 22
1252