nicht anzeigen Ich wurde versucht, das Feld auf dem XML anzuzeigen. Aber das Problem ist? Die Felder werden nicht angezeigt. hier ist mein Code:odoo xml kann das Feld
xml file.
<tr>
<td class="bottom_border_only" ><span t-field="o.test_field_function"/></td>
</tr>
Python-Datei
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),
Hallo @ Scarlett Stein, Ihre Funktion gibt keine Werte zurück, und Sie haben bereits die gleiche Frage gestellt, https://stackoverflow.com/questions/46644444/how-to-call-a-method-in-odoo-7/46645162#46645162 –