Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 69

TypeError: pop() takes at most 1 argument (2 given)

$
0
0
def create(self, cr, uid, vals, context=None): id = super(sale_order, self).create(cr, uid, vals, context) order_line_ids = self.pool.get('sale.order.line').search(cr, uid, [('order_id', '=', id)], context=context) for i in self.browse(cr,uid,order_line_ids, context=context): self.pool.get('sale.order.section').create(cr, uid,(0,0,{'order_line':i.id})) return id I get the error TypeError: pop() takes at most 1 argument (2 given) when i want to create the sale order. It comes from the line : self.pool.get('sale.order.section').create(cr, uid,(0,0,{'order_line':i.id})) Where is the problem ?

Viewing all articles
Browse latest Browse all 69

Trending Articles