Good evening my friends,
I have created a function which modify the "tension_min " values of records. This function is defined as follows:
@api.multi
def action_my_action3(self, cr, uid, ids=False, context=None):
for record in self.browse(cr, uid, ids, context=context):
tension_min = record.tension_min
self.write({'tension_min': (tension_min + 1)})
This function is applied from a button, which is defined in the xml file as follows:<button name="action_my_action4" string="My Function2" type="object"/>
But when i click on this button , i get the following erreur :
" action_my_action3() takes at least 3 arguments (2 given) "