From 25292ef0a5c1a7819d6de144e9f4ee59047380c9 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 4 Jun 2014 15:19:57 +0200 Subject: [PATCH] [FIX] point_of_sale: correct call to default value The default value should be called with a lambda otherwise the payment_date is set to the date the server was started (opw 606715) --- addons/point_of_sale/wizard/pos_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/wizard/pos_payment.py b/addons/point_of_sale/wizard/pos_payment.py index 0a1684ca9ca..35e35e2df06 100644 --- a/addons/point_of_sale/wizard/pos_payment.py +++ b/addons/point_of_sale/wizard/pos_payment.py @@ -126,7 +126,7 @@ class pos_make_payment(osv.osv_memory): } _defaults = { 'journal_id' : _default_journal, - 'payment_date': time.strftime('%Y-%m-%d %H:%M:%S'), + 'payment_date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'), 'amount': _default_amount, }