[Fix] purchase : Fix the problem of id

bzr revid: sbh@tinyerp.com-20100722135727-rnsetg63hq77m9fi
This commit is contained in:
sbh (Open ERP) 2010-07-22 19:27:27 +05:30
parent 2aaa5efc7f
commit 4054773cc7
1 changed files with 2 additions and 2 deletions

View File

@ -305,13 +305,13 @@ class purchase_order(osv.osv):
def inv_line_create(self, cr, uid, a, ol):
return (0, False, {
'name': ol.name,
'account_id': a,
'account_id': a.id,
'price_unit': ol.price_unit or 0.0,
'quantity': ol.product_qty,
'product_id': ol.product_id.id or False,
'uos_id': ol.product_uom.id or False,
'invoice_line_tax_id': [(6, 0, [x.id for x in ol.taxes_id])],
'account_analytic_id': ol.account_analytic_id.id,
'account_analytic_id': ol.account_analytic_id.id or False,
})
def action_cancel_draft(self, cr, uid, ids, *args):