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.

  1. how check our javascript, whether running in our browser or not? in page reflecting? how find that?
  2. and how override calendar in our java script , call in xml?
  3. 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

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -