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

« back to all changes in this revision

Viewing changes to sale_override/sale.py

  • Committer: Quentin THEURET
  • Date: 2014-11-03 11:10:22 UTC
  • mto: (2319.1.3 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 2338.
  • Revision ID: qt@tempo-consulting.fr-20141103111022-5u06ptv9ddhrt46c
UFTP-359 [FIX] Display the good FO/IR on the Sourcing progress

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
 
433
433
            # state_hidden_sale_order
434
434
            result[obj.id]['state_hidden_sale_order'] = obj.state
435
 
            if obj.state == 'done' and obj.split_type_sale_order == 'original_sale_order':
 
435
            if obj.state == 'done' and obj.split_type_sale_order == 'original_sale_order' and not obj.procurement_request:
436
436
                result[obj.id]['state_hidden_sale_order'] = 'split_so'
437
437
 
438
438
        return result