私はOdoo 9コミュニティ版を使用しています。販売注文フォームに Odoo 9のセールオーダーフォームビューで "Confirm Sale"ボタンを非表示にする
は、ボタンを次のようました:私は、ビューからの両方のボタンを非表示にしようとしている<button name="action_confirm" states="sent" string="Confirm Sale" class="btn-primary" type="object" context="{'show_sale': True}"/>
<button name="action_confirm" states="draft" string="Confirm Sale" type="object" context="{'show_sale': True}"/>
。だから私は次のコードを試してみた。私も、属性、次の試してみました
<record model="ir.ui.view" id="hide_so_confirm_button_form">
<field name="name">hide.so.confirm.button.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<button name="action_confirm" position="attributes">
<attribute name="invisible">1</attribute>
</button>
</field>
</record>
:上記のコードでは
<attribute name="states"></attribute>
、それが唯一の非表示/最初のボタンに影響を与えています。
質問:
がどのように両方の確認販売ボタンを非表示にするには?