在openerp报告解析器中获得产品精度

时间:2015-11-25 11:09:53

标签: python openerp rml

我想在report parser中获得产品精度,以便在RML代码中使用它来替换{​​{1}}方法。

我有这段代码:

get_digits

有可能吗?

1 个答案:

答案 0 :(得分:0)

是的,这是可能的。

例如,我的.rml文件中有以下行。我们可以直接指定任何静态值,如

[[ formatLang(line.price_unit, digits=4) ]]
相关问题