[FIX] lunch: avoid unassigned variable

Since 54245deebd, when you clicked twice
on the button "Confirm" on a slow connection, you could get an error as
values is not always defined.

This commit fixes the bad indentation level :)
This commit is contained in:
Richard Mathot
2017-04-20 09:16:03 +02:00
parent 841af2acb3
commit 8f199e4f20
+2 -2
View File
@@ -203,8 +203,8 @@ class LunchOrderLine(models.Model):
'state': 'order',
'date': self.date,
}
self.env['lunch.cashmove'].create(values)
self.state = 'confirmed'
self.env['lunch.cashmove'].create(values)
self.state = 'confirmed'
else:
raise AccessError(_("Only your lunch manager sets the orders as received."))