~vauxoo/addons-vauxoo/6.0-trunk

« back to all changes in this revision

Viewing changes to contract_enterprise_openerp/model/account_analytic_analysis.py

  • Committer: Jose Morales
  • Date: 2014-07-28 20:00:11 UTC
  • mfrom: (543.7.551 7.0-addons-vauxoo)
  • Revision ID: jose@vauxoo.com-20140728200011-csytovehrzwp24lr
[FORWARD PORT] 7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
            return False
44
44
        pids = self.search(cr, uid,
45
45
                           [('end_date', '>=', obj_warranty.start_date),
46
 
                          ('start_date', '<=', obj_warranty.end_date),
47
 
                               ('id', '<>', obj_warranty.id)])
 
46
                                ('start_date','<=', obj_warranty.end_date),
 
47
                                ('contract_id', '=', obj_warranty.contract_id.id),
 
48
                                ('id', '<>', obj_warranty.id),])
48
49
        if len(pids) > 0:
49
50
            return False
50
51
        return True