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:
15e0acd
)
[FIX] purchase: fix the problem for invoice while delivery order
author
Rifakat (OpenERP)
<rha@tinyerp.com>
Fri, 24 Feb 2012 12:55:01 +0000
(18:25 +0530)
committer
Rifakat (OpenERP)
<rha@tinyerp.com>
Fri, 24 Feb 2012 12:55:01 +0000
(18:25 +0530)
bzr revid: rha@tinyerp.com-
20120224125501
-av56ujhkyqv1tm79
addons/purchase/stock.py
patch
|
blob
|
history
diff --git
a/addons/purchase/stock.py
b/addons/purchase/stock.py
index
f595a3e
..
2e1ebdb
100644
(file)
--- a/
addons/purchase/stock.py
+++ b/
addons/purchase/stock.py
@@
-101,7
+101,7
@@
class stock_picking(osv.osv):
return super(stock_picking, self)._get_taxes_invoice(cursor, user, move_line, type)
def _get_account_analytic_invoice(self, cursor, user, picking, move_line):
- if move_line.purchase_line_id:
+ if picking.purchase_id and move_line.purchase_line_id:
return move_line.purchase_line_id.account_analytic_id.id
return super(stock_picking, self)._get_account_analytic_invoice(cursor, user, picking, move_line)