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

« back to all changes in this revision

Viewing changes to msf_doc_import/wizard/wizard_import_po_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:
262
262
                            continue
263
263
 
264
264
                        # write order line on PO
265
 
                        purchase_line_obj.create(cr, uid, to_write, context=context)
266
 
                        vals['order_line'].append((0, 0, to_write))
267
 
                        if to_write['error_list']:
268
 
                            lines_to_correct += 1
269
 
                        complete_lines += 1
 
265
                        if purchase_obj._check_service(cr, uid, wiz.po_id.id, vals, context=context):
 
266
                            purchase_line_obj.create(cr, uid, to_write, context=context)
 
267
                            vals['order_line'].append((0, 0, to_write))
 
268
                            if to_write['error_list']:
 
269
                                lines_to_correct += 1
 
270
                            complete_lines += 1
270
271
 
271
272
                    except IndexError, e:
272
273
                        message += _("Line %s in the Excel file was added to the file of the lines with errors, it got elements outside the defined %s columns. Details: %s"