openerp - Object button don't call method in python -


i'm trying call function in python following buttons:

<form string="settings" class="oe_form_configuration">      <header>          <button string="apply" type="object" name="execute" class="oe_highlight"/>          <button string="cancel" type="object" name="cancel" class="oe_link"/>     </header>      ... </form> 

but, never called. after time, saw called method of update, is, def write(...).

can me understand problem?

edit: actually, remove logic methods:

def execute(self, cr, uid, ids, context=none):     pass  def cancel(self, cr, uid, ids, context=none):     pass 

best regards

instead of using old v7 api, try v8:

@api.one def execute(self):     pass  @api.one def cancel(self):     pass 

(or multi instead of one. here's difference)


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -