摘要:
我需要从oe的一个one2many字段中,取出每一行的数据进行打印输出,如从订单明细中取值:for order in self.browse(cr, uid, ids, context=context): for line in order.order_line: line_info = line.name.encode('utf-8')+ str(line.discount) + str(line.price_unit) lines.append(line... 阅读全文