Commits

kantntreiber committed f3bd233

Fixed typos

Comments (0)

Files changed (1)

         if not levels:
             return []
 
-        dunnend_lines = []
+        dunned_lines = []
         move_line_ids = move_line_obj.search(self._get_dunnable_lines_search(
                 id_, base_date))
         for line in move_line_obj.browse(move_line_ids):
             if (delta >= next_level.days and
                     (not cur_level or cur_level != next_level)):
                 # reached the first or proceed to the next dunning level
-                dunnend_lines += [line.id]
+                dunned_lines += [line.id]
                 dunning_obj.dun(line.id,  next_level.id, base_date)
 
-        return dunnend_lines
+        return dunned_lines
 
     def _get_dunnable_lines_search(self, id_, base_date):
         '''
         procedure_obj = Pool().get('account.dunning.procedure')
 
         procedure_id = session.start.procedure.id
-        dunnend_line_ids = procedure_obj.dunning_run(procedure_id)
+        dunned_line_ids = procedure_obj.dunning_run(procedure_id)
         data = {
             'procedure': procedure_id,
-            'dunnend_lines': dunnend_line_ids,
+            'dunned_lines': dunned_line_ids,
         }
         return action, data
 
         procedure_id = session.start.procedure.id
         dunning_ids = dunning_obj.search([('level.procedure', '=',
                                            procedure_id)])
-        dunnend_line_ids = list(set(d.line.id
+        dunned_line_ids = list(set(d.line.id
                                     for d in dunning_obj.browse(dunning_ids)))
         data = {
             'procedure': procedure_id,
-            'dunnend_lines': dunnend_line_ids,
+            'dunned_lines': dunned_line_ids,
         }
         return action, data
 
         line_obj = pool.get('account.move.line')
 
         procedure = procedure_obj.browse(data['procedure'])
-        dunnend_lines = line_obj.browse(data['dunnend_lines'])
-        dunning_objects = self._get_dunning_objects(procedure, dunnend_lines) \
+        dunned_lines = line_obj.browse(data['dunned_lines'])
+        dunning_objects = self._get_dunning_objects(procedure, dunned_lines) \
                                     .values()
         localcontext.update({
             'dunning_objects': dunning_objects,