Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

I am getting this argument 2 to map() must support iteration error when writting to one2many record in openerp7 [Closed]

By
santhosh
on 12/21/15, 5:28 AM 1,864 views

The Question has been closed for reason: not relevant or out dated

by
santhosh
on 06/13/2016 04:58:07

Hi  every one,

I want to create account.move id and need to create move lines for that move id below is my code but  i am getting

TypeError: argument 2 to map() must support iteration

below is my code correct me if i am wrong:

line1={

'name':exp.employee_name.name,

'account_id':acc,

'credit':amount

}

line2={

'name':exp.company_id.id,

'account_id':com_acc,

'debit':amount

}

line3={

'journal_id':j_id,

'line_id':[(0,0,line1),(0,0,line2)]

}

move_id= self.pool.get('account.move').create(cr, uid, line3, context=context)


Thanks In Advance...



About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/21/15, 5:28 AM
Seen: 1864 times
Last updated: 6/13/16, 4:58 AM