跳至內容
選單
此問題已被標幟
1 回覆
4376 瀏覽次數

Hi,

For now in PO form i have 'Receive Products' button visible... but when i create a sample-data loaded database, it has both of the buttons: Receive Products, Receive Invoice.

How can i enable this button in PO form ?!

Thanks,

頭像
捨棄
最佳答案

Have a look at:

<button name="view_picking" string="Receive Products" type="object" attrs="{'invisible': ['|', ('shipped','=',True), ('state','!=', 'approved')]}" class="oe_highlight"/>
<button name="view_invoice" string="Receive Invoice" type="object" attrs="{'invisible': ['|', ('invoice_method','in', ['picking', 'manual']), '|', ('state','!=', 'approved'), ('invoiced','=',True) ]}" class="oe_highlight"/>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 16
4189
1
7月 25
1369
2
7月 25
1651
1
7月 25
2655
3
4月 25
2593