跳至內容
選單
此問題已被標幟
4159 瀏覽次數

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)

頭像
捨棄

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.

相關帖文 回覆 瀏覽次數 活動
0
9月 23
1981
0
3月 15
4810
0
7月 24
3437
1
8月 25
1456
3
7月 25
2473