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),
こんにちはでエレガントなコードの書き込みをFINFオープンソースであります@ Scarlett stone、あなたの関数は値を返しません。あなたはすでに同じ質問をしています。https://stackoverflow.com/questions/46644444/how-to-call-a-method-in-odoo-7/46645162#46645162 –