openerp - Button in tree view odoo 9 -


i need button in tree view line. after click on button ned line id.

i'm try, not working:

<button name="copy_line" class="text-right" icon="fa-files-o" type="object"/>   @api.multi def copy_line(self):      print("not come here!")      r in self:         print(r.id) 

object has no attribute 'copy_line'


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -