From 21b56902b7eb7ad4eabb2b3be97ca42384d12fdc Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 24 Oct 2012 14:59:57 +0200 Subject: [PATCH] [FIX] sale/edi: paypal payment should be possible as soon as SO is not draft Most companies won't mind if customers pay too early. Even if the amount is not 100% correct, it can be adjusted later, and it's better than missing a revenue opportunity. bzr revid: odo@openerp.com-20121024125957-oo8r9zmazzdonhd7 --- addons/sale/edi/sale_order_action_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/edi/sale_order_action_data.xml b/addons/sale/edi/sale_order_action_data.xml index 009f575f00d..cfe5277d3ce 100644 --- a/addons/sale/edi/sale_order_action_data.xml +++ b/addons/sale/edi/sale_order_action_data.xml @@ -51,7 +51,7 @@ % endif

- % if object.order_policy in ('prepaid','manual') and object.company_id.paypal_account and object.state not in ('draft', 'sent'): + % if object.order_policy in ('prepaid','manual') and object.company_id.paypal_account and object.state != 'draft': <% comp_name = quote(object.company_id.name) order_name = quote(object.name)