[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
This commit is contained in:
Nicolas Martinelli
2015-08-27 18:10:19 +02:00
parent 75f79bd4c4
commit 0b26b11f19
+1 -1
View File
@@ -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)