Mercurial > hgweb > health
changeset 2584:2d0a9340cd86
health_inpatient : Fix bug #50269: Traceback when assigning a new meal order
| author | Luis Falcon <falcon@gnu.org> |
|---|---|
| date | Thu, 09 Feb 2017 21:58:55 +0000 |
| parents | af57d9ac2298 |
| children | 53b988cf0dd5 |
| files | tryton/health_inpatient/health_inpatient.py |
| diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health_inpatient/health_inpatient.py +++ b/tryton/health_inpatient/health_inpatient.py @@ -821,12 +821,9 @@ # has special needs on meals (religion / philosophy ) if (self.name.patient.vegetarian_type or self.name.patient.diet_belief): - meal_warning = True - meal_warning_ack = False - return { - 'meal_warning': meal_warning, - 'meal_warning_ack': meal_warning_ack, - } + self.meal_warning = True + self.meal_warning_ack = False + @classmethod def __setup__(cls):
