What do the [ ] mean in this python line : self.message_post(cr, uid, [new_id], body=_("Quotation created"), context=ctx)?
I don't know why the bold new_id is between [ ] in the second sentence??? What does it mean? What do the two [ ] do there?
new_id = super(sale_order, self).create(cr, uid, vals, context=ctx)
self.message_post(cr, uid, [new_id], body=_("Quotation created"), context=ctx)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/2/15, 9:53 PM|
|Seen: 558 times|
|Last updated: 11/3/15, 10:03 AM|