You have to change code in this file. openobject-client/bin/widget/view/form_gtk/binary.py
here is the method which saves the file in tmp. def sig_execute(self,widget=None): try: filename = self._get_filename() if filename: data = self._view.model.value.get(self.data_field_name) if not data: data = self._view.model.get(self.data_field_name)[self.data_field_name] if not data: raise Exception(_("Unable to read the file data")) ext = os.path.splitext(filename)[1][1:] (fileno, fp_name) = tempfile.mkstemp('.'+ext, 'openerp_') os.write(fileno, base64.decodestring(data)) os.close(fileno) printer.printer.print_file(fp_name, ext, preview=True) except Exception, ex: common.message(_('Error reading the file: %s') % str(ex)) raise ------------------------ OpenERP=Easier, Adaptable, Affordable, Modular -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=40552#40552 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
