projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1082d3
)
[FIX]:in the purchase journal when refence is not avalible use the invoice number...
author
ksa (OpenERP)
<ksa@tinyerp.com>
Wed, 15 Feb 2012 10:17:04 +0000
(15:47 +0530)
committer
ksa (OpenERP)
<ksa@tinyerp.com>
Wed, 15 Feb 2012 10:17:04 +0000
(15:47 +0530)
bzr revid: ksa@tinyerp.com-
20120215101704
-wuwkrdf1olsyfi15
addons/account/invoice.py
patch
|
blob
|
history
diff --git
a/addons/account/invoice.py
b/addons/account/invoice.py
index
696e75d
..
fc4e5fb
100644
(file)
--- a/
addons/account/invoice.py
+++ b/
addons/account/invoice.py
@@
-752,7
+752,10
@@
class account_invoice(osv.osv):
raise osv.except_osv(_('Warning !'), _('There is no active invoice sequence defined for the journal !'))
if invtype in ('in_invoice', 'in_refund'):
- ref = reference
+ if not reference:
+ ref = self._convert_ref(cr, uid, number)
+ else:
+ ref = reference
else:
ref = self._convert_ref(cr, uid, number)
cr.execute('UPDATE account_invoice SET number=%s ' \