~unifield-team/unifield-wm/wm-2418-rw-fix

« back to all changes in this revision

Viewing changes to purchase_override/wizard/split_order_line.py

  • Committer: pierre-marie
  • Date: 2012-07-25 15:04:47 UTC
  • mfrom: (1038 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 1059.
  • Revision ID: pierre-marie@pierre-marie-laptop-20120725150447-namc1a6lqi455ez2
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
                # 1) the check box impact corresponding Fo is checked
119
119
                #    we create a Fo line by copying related Fo line. we then execute procurement creation function, and process the procurement
120
120
                #    the merge into the actual Po is forced
121
 
                if split.corresponding_so_line_id_split_po_line_wizard and split.impact_so_split_po_line_wizard:
 
121
                # if Internal Request, we do not update corresponding Internal Request
 
122
                if split.corresponding_so_line_id_split_po_line_wizard and split.impact_so_split_po_line_wizard and not split.corresponding_so_id_split_po_line_wizard.procurement_request:
122
123
                    # copy the original sale order line, reset po_cft to 'po' (we don't want a new tender if any)
123
124
                    copy_data = {'po_cft': 'po',
124
125
                                 'product_uom_qty': split.new_line_qty,