Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

    Solved [已解决]odoo如何在离开页面时触发事件?

    Odoo 开发与实施交流
    2
    3
    190
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eric2017 last edited by eric2017

      目前通过window.onbeforeunload能实现关闭浏览器时触发事件,但是无法在离开单据时触发事件,例如从单据到列表,就无法通过window.onbeforeunload触发相应的事件。

      L 1 Reply Last reply Reply Quote 0
      • L
        leuan @eric2017 last edited by

        @eric2017 试一下在页面销毁的时候的 触发事件就好了

        E 1 Reply Last reply Reply Quote 0
        • L
          leuan @eric2017 last edited by

          @eric2017 试一下在页面销毁的时候的 触发事件就好了

          E 1 Reply Last reply Reply Quote 0
          • E
            eric2017 @leuan last edited by

            @leuan 在 odoo10,如何在离开页面时触发事件? 中说:

            @eric2017 试一下在页面销毁的时候的 触发事件就好了

            谢谢!改成window.onunload后果然就可以了。真是出乎意料

            1 Reply Last reply Reply Quote 0
            • Topic has been marked as a question  digitalsatori digitalsatori 
            • Topic has been marked as solved  digitalsatori digitalsatori 
            • First post
              Last post