~unifield-team/unifield-wm/us-671-homere

« back to all changes in this revision

Viewing changes to stock_batch_recall/stock.py

  • Committer: jf
  • Date: 2011-05-11 09:27:04 UTC
  • Revision ID: jf@tempo4-20110511092704-7x732yjla38vegen
[FIX] BAtch recall: search lot by date

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            
49
49
            domain = []
50
50
            if track.expired_date:
51
 
                domain.append(('expired_date', '=', track.expired_date))
 
51
                domain.append(('expired_date', '>=', track.expired_date))
 
52
                domain.append(('expired_date', '<=', track.expired_date))
52
53
            if track.product_id:
53
54
                domain.append(('product_id', '=', track.product_id.id))
54
55
            if track.prodlot_id:
156
157
 
157
158
report_batch_recall()
158
159
 
159
 
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
 
b'\\ No newline at end of file'
 
160
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: