Files
sublime-tryton-snippets/py_on_change_with.sublime-snippet

11 lines
364 B
Plaintext
Raw Permalink Normal View History

2023-01-20 15:25:20 +01:00
<snippet>
<content><![CDATA[
@fields.depends(${2:trigger/used fields})
def on_change_with_${1:fieldname}(self, name=None):${4}
return ${3}
]]></content>
<tabTrigger>tryton_on_change_with</tabTrigger>
<scope>source.python</scope>
<description>Tryton: function to compute functional field and value of field when others change value</description>
</snippet>