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

« back to all changes in this revision

Viewing changes to stock_move_tracking/stock.py

  • Committer: chloups208
  • Date: 2011-06-30 14:54:26 UTC
  • mto: (307.2.1 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 311.
  • Revision ID: chloups208@chloups208-laptop-20110630145426-qsj5j0pp3e5b23bc
[UF-53][UF-58][UF-63] initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
class stock_move(osv.osv):
25
25
    _name = 'stock.move'
26
26
    _inherit = 'stock.move'
27
 
    _order = 'date_expected asc'
28
27
    
29
28
    def _get_picking_ids(self, cr, uid, ids, context={}):
30
29
        res = []
51
50
                                }
52
51
                               
53
52
                               ),
54
 
        'expired_date': fields.related('prodlot_id', 'life_date', string='Expiry Date', type='date', readonly=True, 
 
53
        'expired_date': fields.related('prodlot_id', 'life_date', string='Expired Date', type='datetime', readonly=True, 
55
54
                                        store={
56
55
                                            'stock.production.lot': (_get_lot_ids, ['life_date'], 20),
57
56
                                            'stock.move': (lambda self, cr, uid, ids, c={}: ids, ['prodlot_id'], 20),