Project

General

Profile

« Previous | Next » 

Revision 72dbfaca

Added by Mikaël Ates about 12 years ago

actes: change how to lock an act.

View differences:

calebasse/actes/validation.py
14 14
def unlock_all_acts_of_the_day(date, service=None):
15 15
    for act in get_acts_of_the_day(date, service):
16 16
        if not act.is_billed:
17
            act.update(validation_locked=False)
17
            act.validation_locked = False
18
            act.save()
18 19

  
19 20
def are_all_acts_of_the_day_locked(date, service=None):
20 21
    for act in get_acts_of_the_day(date, service):

Also available in: Unified diff