Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4066 Visualizzazioni

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
Abbandona

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.

Post correlati Risposte Visualizzazioni Attività
0
set 23
1876
0
mar 15
4728
0
lug 24
3437
1
ago 25
1320
3
lug 25
2133