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

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

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

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

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

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



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



  • view_type : form

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



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

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

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


  • 管理员

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

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



  • 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]


  • 管理员

    不知道你的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大 您好
    我的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]


Log in to reply