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: