From 0b26b11f1921fa7336fda71b82887d23d28b2d54 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 27 Aug 2015 12:08:52 +0200 Subject: [PATCH] [IMP] portal_sale: adaptation due to the new Sale module Major changes: - No use of UoS anymore Reason: complete rewrite of the Sale module. Responsible: fp, dbo, nim --- addons/portal_sale/portal_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_sale/portal_sale.py b/addons/portal_sale/portal_sale.py index ba24ce40027..8f82d2a01b7 100644 --- a/addons/portal_sale/portal_sale.py +++ b/addons/portal_sale/portal_sale.py @@ -20,7 +20,7 @@ class sale_order(osv.Model): result = dict.fromkeys(ids, False) payment_acquirer = self.pool['payment.acquirer'] for this in self.browse(cr, SUPERUSER_ID, ids, context=context): - if this.state not in ('draft', 'cancel') and not this.invoiced: + if this.state not in ('draft', 'cancel', 'done'): result[this.id] = payment_acquirer.render_payment_block( cr, uid, this.name, this.amount_total, this.pricelist_id.currency_id.id, partner_id=this.partner_id.id, company_id=this.company_id.id, context=context)