Пример #1
0
 def _dia_vencidos(self, cr, uid, ids, field_name, arg, context):
     result = {}
     for move_line in self.browse(cr, uid, ids):
         if move_line.date:
             result[move_line.id] = (datetime.today() - util.a_fecha(move_line.date)).days
         else:
             result[move_line.id] = 0
     return result
Пример #2
0
 def _dia_vencidos(self, cr, uid, ids, field_name, arg, context):
     result = {}
     for move_line in self.browse(cr, uid, ids):
         if move_line.date:
             result[move_line.id] = (datetime.today() -
                                     util.a_fecha(move_line.date)).days
         else:
             result[move_line.id] = 0
     return result
Пример #3
0
 def _dia(self, cr, uid, ids, field_name, arg, context):
     result = {}
     for move_line in self.browse(cr, uid, ids):
         result[move_line.id] = util.a_fecha(move_line.date).day
     return result
Пример #4
0
 def _dia(self, cr, uid, ids, field_name, arg, context):
     result = {}
     for move_line in self.browse(cr, uid, ids):
         result[move_line.id] = util.a_fecha(move_line.date).day
     return result