تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3897 أدوات العرض

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
سبتمبر 23
1708
0
مارس 15
4604
0
يوليو 24
3437
3
يوليو 25
1499
0
فبراير 25
1055