title: How do i make and attache action to button
body: <p>Hello I have created a button on my Odoo 10 form "SET geprint" now i want to attach an action to the button. If i press the button the value of the boolean geprint must change to 1. How can I make this possible? </p>
  
  <p>If possible i would also like to create that button in the list view to update multiple records. 
  Thx for your help</p>
  
  <p><a href="https://i.stack.imgur.com/4gzLT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4gzLT.png" alt="enter image description here"></a></p>
  
  <p>I tried your code but i am getting the following error now
  (name field to update is x_geprint)
  button code : 
                       </p>
  
  <p><a href="https://i.stack.imgur.com/Mr91Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mr91Q.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/XFDlh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XFDlh.png" alt="enter image description here"></a></p>