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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -