我试图在xml上显示该字段。但是,问题是?它没有显示的字段。这里是我的代码:odoo xml无法显示字段
xml file.
<tr>
<td class="bottom_border_only" ><span t-field="o.test_field_function"/></td>
</tr>
Python文件
def test_function(self,cr,uid,ids,origin, args, context=None) :
print "success"
'test_field_function' : fields.function(test_function, method=True, string='data_po', type='char', store=True),
喜@斯嘉丽石,你的函数不返回值,并且你已经问过同样的问题,https://stackoverflow.com/questions/46644444/how-to-call-a-method-in-odoo-7/46645162#46645162 –