Openerp Base报表设计器从其他对象添加新字段(base_report_designer)

时间:2014-10-13 11:07:41

标签: openerp-7 openoffice-writer

在采购订单order.swx中,我需要在行项目行中显示一个新字段(ean13),该字段来自product.product对象。我怎么能用base_report_designer和openoffice writer呢?

我看过从税收领域取得的字段,如

[[ ', '.join(map(lambda x: x.name, line.taxes_id)) ]]

但是,如果我通过以下方式尝试将product_id作为产品对象的关系:

[[ ', '.join(map(lambda x: x.ean13, line.product_id)) ]]

它不起作用。我是新手。帮帮我!! 在此先感谢!!

1 个答案:

答案 0 :(得分:0)

试试这个。

[[ line.product_id.ean13 ]]