From aed092ad8e7c9976af1211e1132d7b2c3b7291c4 Mon Sep 17 00:00:00 2001 From: csn-openerp Date: Mon, 18 Feb 2013 18:34:38 +0100 Subject: [PATCH] [FIX]lunch test: the field date is now needed since we use a store=dict on date and there was no date defined in the test despite the field being recquired in form view bzr revid: csn@openerp.com-20130218173438-m77ojfl6l6xvxloe --- addons/lunch/tests/test_lunch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/lunch/tests/test_lunch.py b/addons/lunch/tests/test_lunch.py index 49e936848fe..79095f4504a 100644 --- a/addons/lunch/tests/test_lunch.py +++ b/addons/lunch/tests/test_lunch.py @@ -20,6 +20,7 @@ ############################################################################## from openerp import tools +import time from openerp.tests import common class Test_Lunch(common.TransactionCase): @@ -43,12 +44,14 @@ class Test_Lunch(common.TransactionCase): self.new_id_order = self.lunch_order.create(cr,uid,{ 'user_id': self.demo_id[0], 'order_line_ids':'[]', + 'date': time.strftime(tools.DEFAULT_SERVER_DATE_FORMAT), },context=None) self.new_id_order_line = self.lunch_order_line.create(cr,uid,{ 'order_id':self.new_id_order, 'product_id':self.product_Bolognese_id, 'note': '+Emmental', 'cashmove': [], + 'date': time.strftime(tools.DEFAULT_SERVER_DATE_FORMAT), 'price': self.lunch_product.browse(cr,uid,self.product_Bolognese_id,context=None).price, })