download

Field.download()
Domain:

client

Language:

javascript

Class:

Field()

Description

Call download for fields of type FILE to download the file.

Example

function on_view_form_created(item) {
  item.add_view_button('Download').click(function() {
     item.attachment.download();
  });
}