
Working with Odoo 10
By :

In the previous examples, we have been extending the Odoo framework to include additional fields in the models and functionality in our views. Odoo also provides a powerful framework for creating your own websites and web services that can integrate easily with Odoo applications.
Let's see how we can create a simple web service that displays the rush orders on a page.
We begin by creating a controller that is tied to a URL. When we navigate to this URL in our browser, the controller will do whatever processing we require.
Create the controller file using the following command in your terminal window:
sudo nano controller.py
Add in the following code to create a simple output so we can test our controller and make sure it is functioning properly.
Place this code in the controller.py
file:
from odoo import http class Web_RushOrders(http.Controller): @http.route('/orders/rush/', auth='public') Def...
Change the font size
Change margin width
Change background colour