[IMP] pos: correct outdated comment

So 2015
This commit is contained in:
Martin Trigaux
2017-02-27 12:43:24 +01:00
parent 16b93b6dcc
commit a3f4c4974d
+1 -1
View File
@@ -51,7 +51,7 @@ class PosMakePayment(models.TransientModel):
order = self.env['pos.order'].browse(self.env.context.get('active_id', False))
amount = order.amount_total - order.amount_paid
data = self.read()[0]
# this is probably a problem of osv_memory as it's not compatible with normal OSV's
# add_payment expect a journal key
data['journal'] = data['journal_id'][0]
if amount != 0.0:
order.add_payment(data)