İçereği Atla
Menü
Bu soru işaretlendi
4085 Görünümler

Can anyone explain why this OpenERP SA module uses such a confusing label for the date field?
Why is 'date' labeled 'name'?


    class hr_attendance(osv.osv):

      #... [omitted for clarity]... 

    _columns = {
        'name': fields.datetime('Date', required=True, select=1),

(This is in V7.0 hr_attendance.py)

Avatar
Vazgeç

Attendances can be uniquely identified by datetime ony. If you use employee name as the name field, there might different attendances for the same employee. So datetime is used as name.

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 23
1882
0
Mar 15
4729
0
Tem 24
3437
1
Ağu 25
1323
3
Tem 25
2150