for product in order.order_line: aData[product.id]= collections.OrderedDict(( ('productID', product.id), ('product_name', product.name), ('product_quanty', product.product_uom_qty), ('product_price', product.price_unit), )) print aData
kết quả:
(7, OrderedDict([('productID', 7), ('product_name', u'Khuy\xean tai b\u1ea1c'), ('product_quanty', 20.0), ('product_price', 1000.0)]))
làm sao để không hiện "(7, "