diff --git a/addons/lunch/test/test_lunch.yml b/addons/lunch/test/test_lunch.yml index 0b5e756f8b3..b6b7dc76c39 100644 --- a/addons/lunch/test/test_lunch.yml +++ b/addons/lunch/test/test_lunch.yml @@ -66,7 +66,7 @@ I create a new lunch order "LU002" for the "Club1" product, at another date. - !record {model: lunch.order, id: lunch_order_1}: - date: !eval "'%s-%s-%s' %(datetime.now().year,datetime.now().month,datetime.now().day+2)" + date: !eval "(datetime.now()+timedelta(2)).strftime('%Y-%m-%d')" product: 'lunch_product_club1' price: 2.75 user_id: base.user_root