Skip to content
Snippets Groups Projects
Commit 0b26b11f authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[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
parent 75f79bd4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment