[Fix] account_analytic_default: remove partner_id
bzr revid: kjo@tinyerp.com-20120321112209-i9hphbcu0g60fqtg
This commit is contained in:
parent
0b84e87820
commit
6767c92dfb
|
@ -89,7 +89,7 @@ class stock_picking(osv.osv):
|
|||
_inherit = "stock.picking"
|
||||
|
||||
def _get_account_analytic_invoice(self, cursor, user, picking, move_line):
|
||||
partner_id = picking.address_id and picking.address_id.partner_id or False
|
||||
partner_id = picking.address_id and picking.address_id.id or False
|
||||
rec = self.pool.get('account.analytic.default').account_get(cursor, user, move_line.product_id.id, partner_id and partner_id.id, user, time.strftime('%Y-%m-%d'), context={})
|
||||
|
||||
if rec:
|
||||
|
|
Loading…
Reference in New Issue