def sig_save_as(self, widget=None): fields = [] while(self.screen.view_to_load): self.screen.load_view_to_load(mode = self.screen.view_to_load[0]) screen_fields = copy.deepcopy(self.screen.models.fields) win = win_export.win_export(self.model, self.screen.ids_get(), screen_fields, fields, parent=self.window, context=self.context) res = win.go()
def sig_save_as(self, widget=None): fields = [] win = win_export.win_export(self.model, self.tree_res.sel_ids_get(), self.tree_res.fields, [], parent=self.window, context=self.context) res = win.go()
def sig_save_as(self, widget=None): fields = [] while (self.screen.view_to_load): self.screen.load_view_to_load() win = win_export.win_export(self.model, self.screen.ids_get(), self.screen.fields, fields, parent=self.window, context=self.context) res = win.go()
def sig_save_as(self, widget=None): fields = [] while(self.screen.view_to_load): self.screen.load_view_to_load() screen_fields = copy.deepcopy(self.screen.models.fields) ids = self.screen.ids_get() if not ids: msg = _('No records to export! \n Select at least one record ') if not ids and self.context.get('group_by_no_leaf', False): msg = _('You cannot export these record(s) ! Either use copy and paste') common.warning(msg,_('Warning !'), parent=self.window) return win = win_export.win_export(self.model, ids, screen_fields, fields, parent=self.window, context=self.context) res = win.go()
def sig_save_as(self, widget=None): fields = [] while (self.screen.view_to_load): self.screen.load_view_to_load() screen_fields = copy.deepcopy(self.screen.models.fields) ids = self.screen.ids_get() if not ids: msg = _('No records to export! \n Select at least one record ') if not ids and self.context.get('group_by_no_leaf', False): msg = _( 'You cannot export these record(s) ! Either use copy and paste' ) common.warning(msg, _('Warning !'), parent=self.window) return win = win_export.win_export(self.model, ids, screen_fields, fields, parent=self.window, context=self.context) res = win.go()
def sig_save_as(self, widget=None): fields = [] tree_fields = copy.deepcopy(self.tree_res.fields) win = win_export.win_export(self.model, self.tree_res.sel_ids_get(), tree_fields, [], parent=self.window, context=self.context) res = win.go()