Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
目前通过window.onbeforeunload能实现关闭浏览器时触发事件,但是无法在离开单据时触发事件,例如从单据到列表,就无法通过window.onbeforeunload触发相应的事件。
@eric2017 试一下在页面销毁的时候的 触发事件就好了
@leuan 在 odoo10,如何在离开页面时触发事件? 中说:
谢谢!改成window.onunload后果然就可以了。真是出乎意料