Question about Str concatenated with list object
Hi OpenERP Team
I have some question about python coding. (Just copy part of the code as sample)
In this code below we can see
1. str(vals[
2. str(ids[0])
3. float(query[
1. def create(self, cr, user, vals, context=None):
if ('order_id' in vals):
2. def create(self, cr, user, vals, context=None):
if ('order_id' in vals):
3. cr.execute("select price_unit, packaging_qty from purchase_order_line where id = " + str(ids[0]))
for query in cr.dictfetchall():
if query['
Question:
1. is the method in writing for the python coding is okay?
2. Will this cause str cannot concatenated with list object error?
Thanks
John Chen
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Serpent Consulting Services
- Solved:
- Last query:
- Last reply: