我想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
可能吗?