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账号

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

    odoo中怎么使用js获取当前页面的表单数据?

    Odoo 开发与实施交流
    4
    8
    3831
    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.
    • 鲍
      鲍永道 last edited by

      我在做odoo项目中,有一个需求odoo官方没有方法,想自己使用js获取当前页面的表单数据,但不知道具体js的使用方法,要怎么写就能直接回去到当前页面的表单数据呢?想请教下odoo大神们。。。

      G 1 Reply Last reply Reply Quote 0
      • G
        Gkilyar @鲍永道 last edited by

        @鲍永道
        网上可以搜到js 获取表单方法 是一样的

        鲍 2 Replies Last reply Reply Quote 0
        • 鲍
          鲍永道 @Gkilyar last edited by

          @gkilyar 是想获取odoo当前表单的数据。

          1 Reply Last reply Reply Quote 0
          • 鲍
            鲍永道 @Gkilyar last edited by

            @gkilyar 我在页面调试中写入this,里面包含的东西太多,不知道是在那个里面是odoo当前页面数据。

            1 Reply Last reply Reply Quote 0
            • mrshelly
              mrshelly last edited by

              实在不行, 你可以使用 jQuery 直接获取 DOM元素的 value

              鲍 1 Reply Last reply Reply Quote 0
              • 鲍
                鲍永道 @mrshelly last edited by

                @mrshelly 不知道odoo本身有没有js方法。

                1 Reply Last reply Reply Quote 0
                • Joshua
                  Joshua 管理员 last edited by

                  @鲍永道 你可以参考odoo文档里面介绍web widget的做法 https://www.odoo.com/documentation/10.0/howtos/web.html#widgets-basics

                  【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

                  鲍 1 Reply Last reply Reply Quote 0
                  • 鲍
                    鲍永道 @Joshua last edited by

                    @joshua 谢谢,非常感谢。

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post