From f69f0d18ecac6e03dd42f51e67005aaf8658cb08 Mon Sep 17 00:00:00 2001 From: "dle@openerp.com" <> Date: Fri, 21 Dec 2012 11:13:56 +0100 Subject: [PATCH] [FIX]Validated invoice with amount == 0.0 MUST be in account move line bzr revid: dle@openerp.com-20121221101356-xp6x8a5naehq5z4p --- addons/account/account_invoice.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index aa3d297557a..62ba9c179da 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -870,8 +870,6 @@ class account_invoice(osv.osv): if context is None: context = {} for inv in self.browse(cr, uid, ids, context=context): - if inv.amount_total == 0.0: - continue if not inv.journal_id.sequence_id: raise osv.except_osv(_('Error!'), _('Please define sequence on the journal related to this invoice.')) if not inv.invoice_line: @@ -1055,8 +1053,6 @@ class account_invoice(osv.osv): self.write(cr, uid, ids, {}) for obj_inv in self.browse(cr, uid, ids, context=context): - if obj_inv.amount_total == 0.0: - continue id = obj_inv.id invtype = obj_inv.type number = obj_inv.number