python - How to call JavaScript in XML? -
we struck 1 point. is, created demo module, inside created manifest files, views, models , static folders. inside static
--source folder, --javascript folder, --css folder
inside views: created new xml file , created template , called java script file inside template. followed above producer.
- how check our javascript, whether running in our browser or not? in page reflecting? how find that?
- and how override calendar in our java script , call in xml?
- what purpose of using q web? should use re-designing calendar?
you can check odoo documentation:
qweb primary templating engine used odoo. xml templating engine1 , used generate html fragments , pages.
although uses few others, either historical reasons or because remain better fits use case. odoo 8.0 still depends on jinja , mako
if creating or modifying template (i.e.: calendar template), can write javascript code directly. can use html code well.
if modifying or creating new view or report more limited. think won't need run javascript in these environments. if need can build widget well.
Comments
Post a Comment