title: How to embed Youtube link in Odoo using upload button?
body: <p>Currently, I am able to embed the single video using this iframe and for every time I have to write this code in the view.</p>
  
  <p><code>&lt;iframe width="560" height="315" src="https://www.youtube.com/embed/AmTjku8n_DQ" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;</code> </p>
  
  <p>Now, I want to add upload button at attachment field. So, the user can upload any video and it will be directly embedded in my UI-view. </p>
  
  <p><a href="https://i.stack.imgur.com/eHMiG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eHMiG.png" alt="enter image description here"></a></p>
  
  <p>In Odoo I am using <code>ir.attachment</code> model but it does not have a feature of embedding videos it only creates a hyperlink and redirects to next page.</p>
  
  <p>How can we solve this issue? Any ideas are appreciated, Thank you.</p>