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

In openerp 7 how to validate time field (float data type) to accepts the format only xx:yy if user enter any other format for example 100:00 it not accepts.

In python validation for time fields available. Is there any sample code available to check time (float data type) to accept the format only xx:yy?

    def _my_check_method(self, cr, uid, ids, context=None):
          #Your code goes here
    return True or False

_constraints = [(_my_check_method, 'Your Message', ['your_field']),]

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
Take Users Timezone تم الحل
3
يوليو 25
4454
Time & Date Issue تم الحل
6
سبتمبر 19
11818
2
مارس 16
8178
1
يناير 24
12988
0
مارس 15
8498