Skip to content
Snippets Groups Projects
Commit 8e78f0e8 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] purchase: PO without picking

When an order is created without any picking, the button
"RECEIVE PRODUCTS" can be hidden.

opw:669081
parent a5e8f227
Branches
Tags
No related merge requests found
......@@ -146,7 +146,7 @@
<button name="button_confirm" type="object" states="sent" string="Confirm Order" class="oe_highlight" id="bid_confirm"/>
<button name="button_approve" type="object" states='to approve' string="Approve Order" class="oe_highlight" groups="purchase.group_purchase_manager"/>
<button name="action_rfq_send" states="purchase" string="Send PO by Email" type="object" context="{'send_rfq':False}"/>
<button name="action_view_picking" string="Receive Products" type="object" attrs="{'invisible': [('state','not in', ('purchase','done'))]}"/>
<button name="action_view_picking" string="Receive Products" type="object" attrs="{'invisible': ['|', ('state','not in', ('purchase','done')), ('picking_count', '=', 0)]}"/>
<button name="button_draft" states="cancel" string="Set to Draft" type="object" />
<button name="button_cancel" states="draft,to approve,sent,purchase" string="Cancel" type="object" />
<button name="button_done" type="object" string="Set to Done" states="purchase"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment