[FIX] hr_timesheet: hr_timesheet_demo.yml data adapted to be coherent with attendance demo data

This commit is contained in:
Denis Vermylen (dve)
2016-07-06 16:32:12 +02:00
parent 510d260434
commit d28479fec1
+7 -6
View File
@@ -2,11 +2,12 @@
Creating demo data that require looking for accounts
-
!python {model: ir.model.data} : |
import time
from datetime import datetime
from dateutil.relativedelta import relativedelta
vals = {
'name': 'Requirements analysis and specification',
'user_id': ref('base.user_root'),
'date': time.strftime('%Y-%m-%d'),
'date': (datetime.now()+relativedelta(days=-1)).strftime('%Y-%m-%d'),
'unit_amount': 2.00,
'product_id': ref('product.product_product_1'),
'product_uom_id': ref('product.product_uom_hour'),
@@ -17,7 +18,7 @@
vals = {
'name': 'Design and specification',
'user_id': ref('base.user_root'),
'date': time.strftime('%Y-%m-%d'),
'date': (datetime.now()+relativedelta(days=-1)).strftime('%Y-%m-%d'),
'unit_amount': 1.00,
'product_id': ref('product.product_product_1'),
'product_uom_id': ref('product.product_uom_hour'),
@@ -28,7 +29,7 @@
vals = {
'name': 'Coding and module testing',
'user_id': ref('base.user_root'),
'date': time.strftime('%Y-%m-%d'),
'date': (datetime.now()+relativedelta(days=-1)).strftime('%Y-%m-%d'),
'unit_amount': 3.00,
'product_id': ref('product.product_product_1'),
'product_uom_id': ref('product.product_uom_hour'),
@@ -39,7 +40,7 @@
vals = {
'name': 'Integration and system testing',
'user_id': ref('base.user_root'),
'date': time.strftime('%Y-%m-%d'),
'date': (datetime.now()+relativedelta(days=-1)).strftime('%Y-%m-%d'),
'unit_amount': 1.00,
'product_id': ref('product.product_product_1'),
'product_uom_id': ref('product.product_uom_hour'),
@@ -50,7 +51,7 @@
vals = {
'name': 'Delivery and maintenance',
'user_id': ref('base.user_root'),
'date': time.strftime('%Y-%m-%d'),
'date': (datetime.now()+relativedelta(days=-1)).strftime('%Y-%m-%d'),
'unit_amount': 1.00,
'product_id': ref('product.product_product_1'),
'product_uom_id': ref('product.product_uom_hour'),