PyScript in Odoo
Using PyScript in Odoo PyScript allows developers to write python code inside HTML and call javascript libraries. Lets create a new Odoo module which will allow developers to use PyScript in their website [This module is created for Odoo version 15.0] Steps to follow to create our module: Create an empty module Create template for new page Create controller for our page Create a new menu in website Create an empty module Create a directory named pyscript_base. This will be our Odoo app Inside the directory create two python files [ __init__.py and __manifest__.py ] Copy the contents for both files from here pyscript_base/__init__.py # -*- coding: utf-8 -*- from . import controllers pyscript_base/__manifest__.py # -*- coding: utf-8 -*- { 'name' : "PyScript Base" , 'version' : '15.0.1.0' , 'summary' : """Sample pyscript to Odoo website""" , 'description' : """ Examples ...