~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to msf_doc_import/wizard/wizard_import_tender_line.py

  • Committer: jf
  • Date: 2016-02-09 15:00:57 UTC
  • mfrom: (2764.1.4 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20160209150057-o3add088h41lzitp
Tags: uf2.1-0rc3
US-923 [FIX] Physical inventory tree view + PO follow up per supplier: no tree view
lp:~unifield-team/unifield-wm/us-923

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
                    if not context.get('yml_test', False):
204
204
                        cr.commit()
205
205
 
206
 
            categ_log = tender_obj.onchange_categ(
207
 
                    cr, uid, [tender_browse.id], tender_browse.categ, context=context).get('warning', {}).get('message', '').upper()
208
 
            categ_log = categ_log.replace('THIS', 'THE')
209
 
 
210
206
        error_log += '\n'.join(error_list)
211
207
        if error_log:
212
208
            error_log = _("Reported errors for ignored lines : \n") + error_log
213
209
        end_time = time.time()
214
210
        total_time = str(round(end_time-start_time)) + _(' second(s)')
215
 
        final_message = _('''
216
 
%s
 
211
        final_message = _(''' 
217
212
Importation completed in %s!
218
213
# of imported lines : %s on %s lines
219
214
# of ignored lines: %s
221
216
%s
222
217
 
223
218
%s
224
 
''') % (categ_log, total_time ,complete_lines, line_num, ignore_lines, lines_to_correct, error_log, message)
 
219
''') % (total_time ,complete_lines, line_num, ignore_lines, lines_to_correct, error_log, message)
225
220
#        try:
226
221
        wizard_vals = {'message': final_message, 'state': 'done'}
227
222
        if line_with_error: