Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4106 Prikazi

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
Opusti

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.

Related Posts Odgovori Prikazi Aktivnost
0
sep. 23
1901
0
mar. 15
4744
0
jul. 24
3437
1
avg. 25
1368
3
jul. 25
2206