Aeroo报告行编号

时间:2018-07-16 14:28:47

标签: odoo odoo-8 odoo-9

如何在Aeroo报表中进行行编号。我找到了此解决方案,但出现错误

Aeroo Reports: Error while generating the report.
sale.order.line(23,) has no member named "index"
sale.order.line(23,) has no member named "index"
For more reference inspect error logs.: (<type 'exceptions.Exception'>, Exception('Aeroo Reports: Error while generating the report.', UndefinedError('sale.order.line(23,) has no member named "index"',),

for each="line in o.order_line"

<str(o.order_line.index(line)+1)> 

1 个答案:

答案 0 :(得分:0)

找到了解决方案。映射将返回列表,然后您可以在列表上建立索引。

str(o.order_line.mapped('id').index(line.id)+1)