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:
d90170f
)
[FIX] Should have browse record of sale order instead of id
author
Josse Colpaert
<jco@openerp.com>
Wed, 20 Mar 2013 13:53:21 +0000
(14:53 +0100)
committer
Josse Colpaert
<jco@openerp.com>
Wed, 20 Mar 2013 13:53:21 +0000
(14:53 +0100)
bzr revid: jco@openerp.com-
20130320135321
-ckejagpme57sq51z
addons/sale/wizard/sale_make_invoice.py
patch
|
blob
|
history
diff --git
a/addons/sale/wizard/sale_make_invoice.py
b/addons/sale/wizard/sale_make_invoice.py
index
d4757ae
..
792fb00
100644
(file)
--- a/
addons/sale/wizard/sale_make_invoice.py
+++ b/
addons/sale/wizard/sale_make_invoice.py
@@
-50,7
+50,7
@@
class sale_make_invoice(osv.osv_memory):
if context is None:
context = {}
data = self.read(cr, uid, ids)[0]
- for sale_order in context.get(('active_ids'), []):
+ for sale_order in order_obj.browse(cr, uid, context.get(('active_ids'), []), context=context):
if sale_order.state != 'manual':
raise osv.except_osv(_('Warning!'), "You shouldn't manually invoice the following sale order %s" % (sale_order.name))