~jfb-tempo-consulting/unifield-wm/us-864

« back to all changes in this revision

Viewing changes to sale_override/sale.py

  • Committer: jf
  • Date: 2016-01-22 10:09:53 UTC
  • mfrom: (2704.1.1 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20160122100953-pse2kf5qw5t3nd3j
US-848 [FIX] PO line was canceled, all FO lines of the FO sourced by this line were put to a bad state
lp:~unifield-team/unifield-wm/us-848

Show diffs side-by-side

added added

removed removed

Lines of Context:
2324
2324
        for line in self.read(cr, uid, ids, ['order_id'], context=context):
2325
2325
            ltc_ids = self.search(cr, uid, [
2326
2326
                ('order_id', '=', line['order_id'][0]),
 
2327
                ('order_id.state', '=', 'validated'),
2327
2328
                ('id', '!=', line['id']),
2328
2329
            ], limit=1, context=context)
2329
2330
            if ltc_ids and ltc_ids[0] not in lines_to_check: