i'm trying to call a function in python with following buttons:
<form string="Settings" class="oe_form_configuration">
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
But, they will never be called. After some time, I saw that is just called the method of update, that is, def write(...).
Can someone help me understand the problem?
Actually, I remove all logic from methods:
def execute(self, cr, uid, ids, context=None):
def cancel(self, cr, uid, ids, context=None):