跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 新手求助
  4. 請教如何使自訂義的wizard左上方 Save,Save & Edit,Cancel 等三個按鈕不顯現

請教如何使自訂義的wizard左上方 Save,Save & Edit,Cancel 等三個按鈕不顯現

已定时 已固定 已锁定 已移动 Odoo 新手求助
8 帖子 3 发布者 4.1k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • K 离线
    K 离线
    kk071700
    写于 最后由 编辑
    #1

    小弟想請教自行撰寫的wizard,
    在OpenERP內執行時會自動在頁面左上方出現 Save,Save & Edit,Cancel 等三個按鈕
    該如何修改使其不顯現

    1 条回复 最后回复
    0
    • mrshellyM 离线
      mrshellyM 离线
      mrshelly
      写于 最后由 编辑
      #2

      view_type : form

      您的上一個問題解決了嗎?

      1 条回复 最后回复
      0
      • K 离线
        K 离线
        kk071700
        写于 最后由 编辑
        #3

        mrshelly大 您好
        我原本就有在XML中訂義view_type : form 但是無作用
        <act_windows
        view_type : "form"
        />

        [quote author=mrshelly link=topic=4171.msg11191#msg11191 date=1338190165]
        view_type : form

        您的上一個問題解決了嗎?
        [/quote]

        1 条回复 最后回复
        0
        • JoshuaJ 离线
          JoshuaJ 离线
          Joshua 管理员
          写于 最后由 编辑
          #4

          [quote]Save,Save & Edit,Cancel 等三個按鈕不顯現[/quote]

          @KK071700 不明白你说的意思,本来wizard就没这三个按钮,是不是你的wizard里面有一个one2many,或者many2many 字段?

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

          1 条回复 最后回复
          0
          • K 离线
            K 离线
            kk071700
            写于 最后由 编辑
            #5

            Joshua大 您好
            小弟程式同時有老式wizard(wizard.interface) 以及新式wizard(osv.osv_memory)
            在兩種wizard當中都有加入many2one的字段,
            但是只有在新式wizard出現Save,Save & Edit,Cancel 等三個按鈕,老式wizard則無

            [quote author=Joshua link=topic=4171.msg11203#msg11203 date=1338252630]
            [quote]Save,Save & Edit,Cancel 等三個按鈕不顯現[/quote]

            @KK071700 不明白你说的意思,本来wizard就没这三个按钮,是不是你的wizard里面有一个one2many,或者many2many 字段?
            [/quote]

            1 条回复 最后回复
            0
            • JoshuaJ 离线
              JoshuaJ 离线
              Joshua 管理员
              写于 最后由 编辑
              #6

              不知道你的wizard的view是怎么定义的,下面是价格表的wizard的代码,你可以比较下

              &lt;act_window id=&quot;action_product_price_list&quot;<br />&nbsp; &nbsp; 		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  key2=&quot;client_print_multi&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  name=&quot;Price List&quot;<br />&nbsp; &nbsp; 		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  res_model=&quot;product.price_list&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  src_model=&quot;product.product&quot;<br />&nbsp; &nbsp; 		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  view_mode=&quot;form&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  target=&quot;new&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  view_type=&quot;form&quot; /&gt;
              


              key2这个可以无视,这个只是因为他这里是想显示为打印按钮。

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

              1 条回复 最后回复
              0
              • K 离线
                K 离线
                kk071700
                写于 最后由 编辑
                #7

                Joshua大 您好
                我的xml中訂義如下

                &lt;act_window<br />&nbsp; 	&nbsp; &nbsp; id=&quot;cr_prescription_act_view&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;Create Prescription&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; view_mode=&quot;form&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; view_type=&quot;form&quot;<br />&nbsp; &nbsp; 	&nbsp; &nbsp; res_model=&quot;create.prescription&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; src_model=&quot;res.partner&quot;<br />&nbsp; /&gt;
                


                我反覆嘗試
                如果加上target="new"就不會出現Save,Save & Edit,Cancel 等三個按鈕,但是這是彈跳出一個新視窗,這不是我想要的--我想出現在右側主畫面
                如果沒加target="new"就會出現Save,Save & Edit,Cancel 等三個按鈕

                懇請指導

                附件為我整個wizard


                [quote author=Joshua link=topic=4171.msg11205#msg11205 date=1338254820]
                不知道你的wizard的view是怎么定义的,下面是价格表的wizard的代码,你可以比较下

                &lt;act_window id=&quot;action_product_price_list&quot;<br />&nbsp; &nbsp; 		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  key2=&quot;client_print_multi&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  name=&quot;Price List&quot;<br />&nbsp; &nbsp; 		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  res_model=&quot;product.price_list&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  src_model=&quot;product.product&quot;<br />&nbsp; &nbsp; 		&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  view_mode=&quot;form&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  target=&quot;new&quot; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  view_type=&quot;form&quot; /&gt;
                


                key2这个可以无视,这个只是因为他这里是想显示为打印按钮。
                [/quote]

                1 条回复 最后回复
                0

                • 登录

                • 没有帐号? 注册

                • 登录或注册以进行搜索。
                • 第一个帖子
                  最后一个帖子
                0
                • 版块
                • 标签
                • 热门
                • 用户
                • 群组