Skip to content
Snippets Groups Projects
Commit 4054773c authored by Bhumika Shrimali's avatar Bhumika Shrimali
Browse files

[Fix] purchase : Fix the problem of id

bzr revid: sbh@tinyerp.com-20100722135727-rnsetg63hq77m9fi
parent 2aaa5efc
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment