From f603f8e3635ca7bce6b4ab02bd7dfd8003912512 Mon Sep 17 00:00:00 2001 From: vth Date: Thu, 21 Oct 2010 12:19:39 +0530 Subject: [PATCH] [FIX] account: supplier invoice value of reference field of account.move.line is not created bzr revid: vth@tinyerp.com-20101021064939-yifdessflr827nct --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 9ce9b593f0f..4b09f6fbad1 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -970,7 +970,7 @@ class account_invoice(osv.osv): invtype = obj_inv.type number = obj_inv.number move_id = obj_inv.move_id and obj_inv.move_id.id or False - reference = obj_inv.reference or '' + reference = obj_inv.reference or number or '' self.write(cr, uid, ids, {'internal_number':number})