Navigation

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

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

    請教自定義Function放置的問題

    Odoo 新手求助
    3
    4
    2086
    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.
    • K
      kk071700 last edited by

      小弟利用OpenERP介面產生一個自定義DB table同時也產生出對應的Form View,想在Form View其內加入一個button指到某個Function來針對這個view的內容作處理

      想請教如果我將這個Function放在自定義的wizard當中該如何呼叫?所見的方式好像是呼叫整個wizard
      <button type="action" name="%(wizard_id)d" string="Label"/>

      若是不能放在wizard中 ,我應該將此Function訂義在哪? 如何呼叫?

      感恩請大大解惑

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

        "針對這個view的內容作處理"

        針對這個view的什麼內容做什麼處理呢?
        新的 wizard 不推薦%(wizard_id)d 了. 一般可以直接在 對象裡寫Function. 然後你的button調用這個Function即可. button  --> name="Function's name" and type = "object"

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

          利用OpenERP介面產生
          那还有机会写python代码。只剩server action了,不过server action可实现不了onchange

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