Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4005 Zobrazení

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
Zrušit

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 Odpovědi Zobrazení Aktivita
0
zář 23
1825
0
bře 15
4683
0
čvc 24
3437
1
srp 25
1253
3
čvc 25
1979