Jam.py documentation

download

download()

domain: client

language: javascript

class Field class

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();
  });
}