Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4415 Lượt xem

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,

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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"/>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 16
4212
1
thg 7 25
1424
2
thg 7 25
1731
1
thg 7 25
2729
3
thg 4 25
2665