【发布时间】:2016-02-28 03:39:56
【问题描述】:
我想在report parser 中获得产品精度,以便在RML 代码中使用它来替换get_digits 方法。
我有这个代码:
class my_report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(my_report, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
'time': time,
'precision': self.get_precision,
})
def get_precision(self, product):
...
return precision
有可能吗?
【问题讨论】:
-
你试过给出答案了吗?