transformatek / odoo-addons

Odoo addons developped by TransformaTek team
https://transformatek.dz
Apache License 2.0
0 stars 2 forks source link

odoo-addons

Odoo addons developped by TransformaTek team

Prerequisite

Develop

First time only

docker-compose build 
docker-compose up

Acces the Web server at the folowing address http://localhost:8069

After updating a python file

docker container restart wadifny_odoo

Regenerate assets using RPC calls

curl 'http://localhost:8069/jsonrpc' -X POST  -H 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0","method": "call","params": {"service": "object","method": "execute","args": ["<dbname>",2,"<password>","ir.attachment","search",["&",["res_model","=","ir.ui.view"], "|","|","|",["name","=like","%.assets_%.css"],["name","=like","%.assets_%.js"],["name","=","web_editor.summernote.css"],["name","=","web_editor.summernote.js"]]]},"id":14996920}'

curl 'http://localhost:8069/jsonrpc' -X POST  -H 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0","method": "call","params": {"service": "object","method": "execute","args": ["<dbname>",2,"<password>","ir.attachment","unlink",[<returned list from first command>]]},"id":14996920}'

Force assets regenaration by coionnecting to : http://localhost:8069/web?debug=asset