diff --git a/addons/point_of_sale/point_of_sale_demo.xml b/addons/point_of_sale/point_of_sale_demo.xml
index 03d04d83f70..38987b78cf5 100755
--- a/addons/point_of_sale/point_of_sale_demo.xml
+++ b/addons/point_of_sale/point_of_sale_demo.xml
@@ -26,7 +26,7 @@
/
- 2010-10-07
+ time.strftime('%Y-%m-%d')
@@ -53,7 +53,7 @@
2011-04-07
- 2010-10-07 16:53:11
+ time.strftime('%Y-%m-%d %H:%M:%S')
@@ -62,7 +62,7 @@
paid
- 2010-10-07
+ time.strftime('%Y-%m-%d')
POS/019
tax_excluded
@@ -76,7 +76,7 @@
- 2010-10-07
+ time.strftime('%Y-%m-%d')
@@ -87,7 +87,7 @@
Cash Journal - (test)
- 2010-10-07
+ time.strftime('%Y-%m-%d')
@@ -98,18 +98,18 @@
POS/019
- 2010-10-07 16:53:46
+ time.strftime('%Y-%m-%d %H:%M:%S')
direct
POS notes
done
out
- 2010-10-07 16:53:46
- 2010-10-07 16:33:30
+ time.strftime('%Y-%m-%d %H:%M:%S')
+ time.strftime('%Y-%m-%d %H:%M:%S')
OUT/00019
none
- 2010-10-07 16:53:46
+ time.strftime('%Y-%m-%d %H:%M:%S')
POS/019
@@ -123,12 +123,12 @@
done
- 2010-10-07 16:33:30
- 2010-10-07 16:33:30
+ time.strftime('%Y-%m-%d %H:%M:%S')
+ time.strftime('%Y-%m-%d %H:%M:%S')
Stock move (POS 12)
- 2010-10-07 16:53:46
+ time.strftime('%Y-%m-%d %H:%M:%S')
@@ -166,7 +166,7 @@
- 2010/09/15
+ time.strftime('%Y-%m-%d')
[PC3] Medium PC
@@ -178,7 +178,7 @@
- 2010/09/15
+ time.strftime('%Y-%m-%d')
[PC2] Basic+ PC (assembly on order)
@@ -190,7 +190,7 @@
- 2010/09/15
+ time.strftime('%Y-%m-%d')
[PC1] Basic PC
diff --git a/addons/point_of_sale/test/point_of_sale_report.yml b/addons/point_of_sale/test/point_of_sale_report.yml
index 1a77e8f30d4..323d227f7d2 100755
--- a/addons/point_of_sale/test/point_of_sale_report.yml
+++ b/addons/point_of_sale/test/point_of_sale_report.yml
@@ -89,11 +89,11 @@
!record {model: account.bank.statement, id: account_bank_statement_st0}:
name: St.05/19
balance_end_real: 0.0
- date: '2010-05-19'
+ date: !eval time.strftime('%Y-%m-%d')
journal_id: account_journal_cash0
line_ids:
- name: statement
- date: "2010-10-13"
+ date: !eval "'%s-%s-%s' %(datetime.now().year,datetime.now().month+5,datetime.now().day)"
type: customer
account_id: account_pos_account_sales
amount: 100
diff --git a/addons/point_of_sale/test/point_of_sale_test.yml b/addons/point_of_sale/test/point_of_sale_test.yml
index 347ea961c8f..7e463b1410a 100755
--- a/addons/point_of_sale/test/point_of_sale_test.yml
+++ b/addons/point_of_sale/test/point_of_sale_test.yml
@@ -289,8 +289,8 @@
-
!record {model: pos.order, id: pos_order_pos0}:
company_id: base.main_company
- date_order: '2010-05-13 15:02:48'
- date_validity: '2010-11-13'
+ date_order: !eval time.strftime('%Y-%m-%d %H:%M:%S')
+ date_validity: !eval "'%s-%s-%s' %(datetime.now().year,datetime.now().month+6,datetime.now().day)"
lines:
- company_id: base.main_company
name: Order Line/01
@@ -336,7 +336,7 @@
!record {model: pos.make.payment, id: pos_make_payment_0}:
amount: 1615.0
journal: 7
- payment_date: "2010-05-13"
+ payment_date: !eval time.strftime("%Y-%m-%d")
payment_name: Payment
product_id: product_product_hppaviliondesktoppcs0
pricelist_id: product.list0
@@ -398,7 +398,7 @@
!record {model: pos.make.payment, id: pos_make_payment_1}:
amount: 680.0
journal: 7
- payment_date: "2010-05-13"
+ payment_date: !eval time.strftime("%Y-%m-%d")
payment_name: Payment
product_id: product_product_hppaviliondesktoppcs0
pricelist_id: product.list0
diff --git a/addons/project/test/test_project.yml b/addons/project/test/test_project.yml
index bca3bcbff41..f79c2a34224 100755
--- a/addons/project/test/test_project.yml
+++ b/addons/project/test/test_project.yml
@@ -10,7 +10,7 @@
Create task 'Technical Training' for this project
-
!record {model: project.task, id: project_task_technicaltraining0}:
- date_start: '2010-05-31 11:48:38'
+ date_start: !eval time.strftime('%Y-%m-%d %H:%M:%S')
name: Technical Training
planned_hours: 30.0
project_id: project_project_openerptrainingprogramme0
@@ -20,7 +20,7 @@
Create task 'Functional Training' for this project
-
!record {model: project.task, id: project_task_functionaltraining0}:
- date_start: '2010-05-31 11:49:11'
+ date_start: !eval time.strftime('%Y-%m-%d %H:%M:%S')
name: Functional Training
planned_hours: 30.0
project_id: project_project_openerptrainingprogramme0
@@ -136,7 +136,7 @@
-
!record {model: project.task, id: project_task_technicaltraining0, context:{'no_analytic_entry':True}}:
work_ids:
- - date: '2010-05-31 15:04:22'
+ - date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
hours: 10.0
name: Training on OpenERP modules, models and classes
user_id: base.user_root
@@ -151,7 +151,7 @@
-
!record {model: project.task, id: project_task_technicaltraining0, context:{'no_analytic_entry':True}}:
work_ids:
- - date: '2010-06-01 15:04:46'
+ - date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
hours: 10.0
name: Training on OpenERP xml views
user_id: base.user_root
@@ -166,7 +166,7 @@
-
!record {model: project.task, id: project_task_technicaltraining0, context:{'no_analytic_entry':True}}:
work_ids:
- - date: '2010-06-02 15:05:24'
+ - date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
hours: 10.0
name: Training on workflows
user_id: base.user_root
@@ -202,7 +202,7 @@
-
!record {model: project.task, id: project_task_technicaltraining0, context:{'no_analytic_entry':True}}:
work_ids:
- - date: '2010-05-31 15:08:40'
+ - date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
hours: 10.0
name: Training on reports and wizards
user_id: base.user_root
@@ -253,7 +253,7 @@
-
!record {model: project.task, id: project_task_technicaltraining0, context:{'no_analytic_entry':True}}:
work_ids:
- - date: '2010-05-31 16:55:27'
+ - date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
hours: 5.0
name: Training on yml
user_id: base.user_root
diff --git a/addons/project_long_term/test/schedule_phase_tasks.yml b/addons/project_long_term/test/schedule_phase_tasks.yml
index aa54fa1ac57..ddfdc47cc7c 100755
--- a/addons/project_long_term/test/schedule_phase_tasks.yml
+++ b/addons/project_long_term/test/schedule_phase_tasks.yml
@@ -15,7 +15,7 @@
Create phase 'Develop GUI' in Outlook
-
!record {model: project.phase, id: project_phase_phase0}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime("%Y-%m-%d")
duration: 200.0
name: Develop GUI in Outlook
product_uom: product.uom_day
diff --git a/addons/project_long_term/test/schedule_project_phases.yml b/addons/project_long_term/test/schedule_project_phases.yml
index e06feaaa4ca..38260f4df8c 100755
--- a/addons/project_long_term/test/schedule_project_phases.yml
+++ b/addons/project_long_term/test/schedule_project_phases.yml
@@ -9,7 +9,7 @@
Create a project phase 'Defining Client's Basic Idea of Project'
-
!record {model: project.phase, id: project_phase_definingclientsbasicideaofproject0}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime('%Y-%m-%d')
duration: 15.0
name: "Defining Client's Basic Idea of Project"
product_uom: product.uom_day
@@ -20,7 +20,7 @@
Create project phase 'Establishing Project Feasibility'
-
!record {model: project.phase, id: project_phase_establishingprojectfeasibility0}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime('%Y-%m-%d')
duration: 30.0
name: Establishing Project Feasibility
product_uom: product.uom_day
@@ -30,7 +30,7 @@
Create project phase 'Preparation of Engineering Designs'
-
!record {model: project.phase, id: project_phase_preparationofengineeringdesigns0}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime('%Y-%m-%d')
duration: 100.0
name: Preparation of Engineering Designs
product_uom: product.uom_hour
@@ -41,7 +41,7 @@
Create project phase 'Procurement of Works and Goods'
-
!record {model: project.phase, id: project_phase_procurementofworksandgoods0}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime('%Y-%m-%d')
duration: 24.0
name: Procurement of Works and Goods
product_uom: product.uom_hour
@@ -52,7 +52,7 @@
Create project phase 'Project Construction'
-
!record {model: project.phase, id: project_phase_projectconstruction0}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime('%Y-%m-%d')
duration: 4320.0
name: Project Construction
product_uom: product.uom_hour
@@ -63,7 +63,7 @@
Create project phase 'Project Completion'
-
!record {model: project.phase, id: project_phase_projectcompletion0}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime('%Y-%m-%d')
duration: 240.0
name: Project Completion
product_uom: product.uom_hour
diff --git a/addons/project_long_term/test/schedule_project_tasks.yml b/addons/project_long_term/test/schedule_project_tasks.yml
index 04a05437487..825b7c404d9 100755
--- a/addons/project_long_term/test/schedule_project_tasks.yml
+++ b/addons/project_long_term/test/schedule_project_tasks.yml
@@ -16,7 +16,7 @@
Create phase 'Develop GUI' in thunderbird
-
!record {model: project.phase, id: project_phase_phase1}:
- date_start: '2010-06-02'
+ date_start: !eval time.strftime('%Y-%m-%d')
duration: 200.0
name: Develop GUI in thunderbird
product_uom: product.uom_day
diff --git a/addons/project_mrp/test/project_task_procurement.yml b/addons/project_mrp/test/project_task_procurement.yml
index a997f09fd04..caea7d70e0a 100755
--- a/addons/project_mrp/test/project_task_procurement.yml
+++ b/addons/project_mrp/test/project_task_procurement.yml
@@ -19,7 +19,7 @@
I create a sale order for product Partners Training which has type 'Service'.
-
!record {model: sale.order, id: sale_order_so0}:
- date_order: '2010-05-21'
+ date_order: !eval time.strftime('%Y-%m-%d')
invoice_quantity: order
name: SO006
order_policy: manual
diff --git a/addons/project_planning/test/planning_states.yml b/addons/project_planning/test/planning_states.yml
index 12dd38c8247..5d40a199280 100755
--- a/addons/project_planning/test/planning_states.yml
+++ b/addons/project_planning/test/planning_states.yml
@@ -3,8 +3,8 @@
-
!record {model: report_account_analytic.planning, id: report_account_analytic_planning_projectplanning0}:
business_days: 20
- date_from: '2010-06-01'
- date_to: '2010-06-30'
+ date_from: !eval time.strftime('%Y-%m-%d')
+ date_to: !eval "'%s-%s-%s' %(datetime.now().year,datetime.now().month+1,datetime.now().day)"
name: Project Planning
state: draft
user_id: base.user_demo
diff --git a/addons/project_retro_planning/test/deadline_change.yml b/addons/project_retro_planning/test/deadline_change.yml
index 3e778916792..39dec6bf42a 100755
--- a/addons/project_retro_planning/test/deadline_change.yml
+++ b/addons/project_retro_planning/test/deadline_change.yml
@@ -10,9 +10,9 @@
Create task 'Plan all projects'
-
!record {model: project.task, id: project_task_planallprojects0}:
- date_deadline: '2010-06-07'
- date_end: '2010-06-04 14:00:00'
- date_start: '2010-06-01 17:25:32'
+ date_deadline: !eval "'%s-%s-%s' %(datetime.now().year,datetime.now().month,datetime.now().day+6)"
+ date_end: !eval "'%s-%s-%s %s:%s:%s' %(datetime.now().year,datetime.now().month,datetime.now().day+3,datetime.now().hour,datetime.now().minute,datetime.now().second)"
+ date_start: !eval time.strftime('%Y-%m-%d %H:%M:%S')
name: Plan all projects
planned_hours: 24.0
project_id: project_project_retroplanning0