Friday, 23 August 2013

invoice line tax info is not getting saved by webservice

invoice line tax info is not getting saved by webservice

I am creating invoice by the webservice. Everything is fine, I can see the
saved record. But invoice line tax line is not getting saved via
webservice. I dont know why. When I save by simply web. It is getting
saved. here is code
abc = {
'comment': False,
'origin': '123123',
'date_due': False,
'user_id': 1,
'account_id': 9,
'supplier_invoice_number': '1212323234444',
'partner_id': 6,
'journal_id': 1,
'date_invoice': False,
'fiscal_position': False,
'type': 'out_invoice',
'invoice_line':
[
[
0,
False,
{
'uos_id': 1,
'product_id': 20,
'name': 'HDD on Demand',
'price_unit': 18.0,
'account_id': 40,
'invoice_line_tax_id': [
4,
6
],
'quantity': 1.0
}
]
]
}
account_invoice = self.pool.get('account.invoice')
return account_invoice.create(cr, uid, abc, context)
Remember I am using OpenERP7 Thanks for immediate response.

No comments:

Post a Comment