[FIX] account: supplier invoice value of reference field of account.move.line is not created

bzr revid: vth@tinyerp.com-20101021064939-yifdessflr827nct
This commit is contained in:
vth 2010-10-21 12:19:39 +05:30
parent a83bb776e9
commit f603f8e363
1 changed files with 1 additions and 1 deletions

View File

@ -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})