i have a code like
'leave_from' : fields.date("Cuti Dari Tanggal", required=True),
'leave_until' : fields.date("Cuti Sampai Dengan", required=True),
and 1 fields to accomodate them
'leave_taken' : fields.function(function_diambil_cuti, method=True, string='Cuti Diambil(hari)', type='float'),
and what i have to do to subtract the leave_until fields and leave_from fields to get the DAY without calculate saturday and sunday and fill the leave_taken fields with the result ?