[FIX] sale/edi: paypal payment should be possible as soon as SO is not draft
authorOlivier Dony <odo@openerp.com>
Wed, 24 Oct 2012 12:59:57 +0000 (14:59 +0200)
committerOlivier Dony <odo@openerp.com>
Wed, 24 Oct 2012 12:59:57 +0000 (14:59 +0200)
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

index 009f575..cfe5277 100644 (file)
@@ -51,7 +51,7 @@
        % endif
     </p>
 
-    % 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)