[IMP] account*,crm*,hr*,auction,delivery,event:changed static date of 2010 to current date

bzr revid: mtr@mtr-20110105072914-mnmacnml1n6inkyh
This commit is contained in:
mtr 2011-01-05 12:59:14 +05:30
parent bb1e27f8b1
commit fd120595c6
24 changed files with 71 additions and 70 deletions

View File

@ -6,14 +6,14 @@
!record {model: account.bank.statement, id: account_bank_statement_0}:
balance_end_real: 0.0
balance_start: 0.0
date: '2010-10-14'
date: !eval time.strftime('%Y-%m-%d')
journal_id: account.bank_journal
name: /
period_id: account.period_10
line_ids:
- account_id: account.a_recv
amount: 1000.0
date: '2010-10-14'
date: !eval time.strftime('%Y-%m-%d')
name: a
partner_id: base.res_partner_4
sequence: 0.0

View File

@ -2,7 +2,7 @@
In order to test Cash statement I create a Cash statement and confirm it and check it's move created
-
!record {model: account.bank.statement, id: account_bank_statement_1}:
date: '2010-10-16'
date: !eval time.strftime('%Y-%m-%d')
journal_id: account.cash_journal
name: /
period_id: account.period_10
@ -41,7 +41,7 @@
line_ids:
- account_id: account.a_recv
amount: 1000.0
date: '2010-10-16'
date: !eval time.strftime('%Y-%m-%d')
name: test
partner_id: base.res_partner_4
sequence: 0.0

View File

@ -7,7 +7,7 @@
address_invoice_id: base.res_partner_address_zen
company_id: base.main_company
currency_id: base.EUR
date_invoice: '2010-05-26'
date_invoice: !eval time.strftime('%Y-%m-%d')
invoice_line:
- account_id: account.a_sale
name: '[PC3] Medium PC'

View File

@ -4,10 +4,10 @@
-
!record {model: account.period, id: account_period_jan0}:
company_id: base.main_company
date_start: '2010-01-01'
date_stop: '2010-01-31'
date_start: !eval "'%s-01-01' %(datetime.now().year)"
date_stop: !eval "'%s-01-31' %(datetime.now().year)"
fiscalyear_id: account.data_fiscalyear
name: Jan-2010
name: !eval "'Jan-%s' %(datetime.now().year)"
special: 1
-
@ -16,7 +16,7 @@
!assert {model: account.period, id: account_period_jan0, string: Period is in Draft state}:
- state == 'draft'
-
I use "Close a Period" wizard to close period Jan-2010
I use "Close a Period" wizard to close period
-
!record {model: account.period.close, id: account_period_close_0}:
sure: 1

View File

@ -8,36 +8,36 @@
In order to test the 'Post Journal Entries' wizard in OpenERP, I created an account move
-
!record {model: account.move, id: account_move_0}:
date: '2010-06-07'
date: !eval time.strftime('%Y-%m-%d')
journal_id: account.bank_journal
line_id:
- account_id: account.cash
amount_currency: 0.0
credit: 2000.0
date: '2010-06-07'
date: !eval time.strftime('%Y-%m-%d')
debit: 0.0
journal_id: account.bank_journal
name: Basic Computer
partner_id: base.res_partner_desertic_hispafuentes
period_id: account.period_6
ref: '2010010'
ref: '2011010'
tax_amount: 0.0
- journal_id: account.bank_journal
period_id: account.period_6
ref: '2010010'
ref: '2011010'
tax_code_id: account_tax_code_0
tax_amount: 0.0
account_id: account.a_recv
amount_currency: 0.0
credit: 0.0
date: '2010-06-07'
date: !eval time.strftime('%Y-%m-%d')
debit: 2000.0
name: Basic Computer
partner_id: base.res_partner_desertic_hispafuentes
quantity: 0.0
name: /
period_id: account.period_6
ref: '2010010'
ref: '2011010'
state: draft
-

View File

@ -43,8 +43,8 @@
-
!record {model: account.analytic.chart, id: account_analytic_chart_0}:
from_date: '2010-01-01'
to_date: '2010-06-30'
from_date: !eval "'%s-01-01' %(datetime.now().year)"
to_date: !eval "'%s-06-30' %(datetime.now().year)"
-
I clicked on Open chart Button to open the charts

View File

@ -5,9 +5,9 @@
-
!record {model: crossovered.budget, id: crossovered_budget_budget0}:
code: B2011
date_from: '2011-01-01'
date_to: '2011-12-31'
name: Budget 2011
date_from: !eval "'%s-01-01' %(datetime.now().year+1)"
date_to: !eval "'%s-12-31' %(datetime.now().year+1)"
name: !eval "'Budget %s' %(datetime.now().year+1)"
state: draft
-
I created two different budget lines
@ -17,13 +17,13 @@
!record {model: crossovered.budget, id: crossovered_budget_budget0}:
crossovered_budget_line:
- analytic_account_id: account.analytic_consultancy
date_from: '2011-01-01'
date_to: '2011-12-31'
date_from: !eval "'%s-01-01' %(datetime.now().year+1)"
date_to: !eval "'%s-12-31' %(datetime.now().year+1)"
general_budget_id: account_budget.account_budget_post_purchase0
planned_amount: 10000.0
- analytic_account_id: account.analytic_super_product_trainings
date_from: '2011-09-01'
date_to: '2011-09-30'
date_from: !eval "'%s-09-01' %(datetime.now().year+1)"
date_to: !eval "'%s-09-30' %(datetime.now().year+1)"
general_budget_id: account_budget.account_budget_post_sales0
planned_amount: 400000.0

View File

@ -66,7 +66,7 @@
I create a send followup record
-
!record {model: account.followup.print, id: account_followup_print_0}:
date: '2010-06-08'
date: !eval "'%s-06-08' %(datetime.now().year)"
followup_id: account_followup_followup_testfollowups0
@ -99,5 +99,5 @@
!python {model: account.followup.print.all}: |
self.do_print(cr, uid, [ref("account_followup_print_all_0")], {"lang": 'en_US',
"active_model": "ir.ui.menu", "active_ids": [ref("account_followup.account_followup_print_menu")],
"tz": False, "date": "2010-06-08", "followup_id": ref("account_followup_followup_testfollowups0"), "active_id": ref("account_followup.account_followup_print_menu"),
"tz": False, "date": "2011-06-08", "followup_id": ref("account_followup_followup_testfollowups0"), "active_id": ref("account_followup.account_followup_print_menu"),
})

View File

@ -60,7 +60,7 @@
!record {model: payment.order, id: payment_order_0}:
date_prefered: due
mode: payment_mode_m0
reference: 2010/006
reference: !eval "'%s/006' %(datetime.now().year)"
user_id: base.user_root
@ -68,7 +68,7 @@
Creating a payment.order.create record
-
!record {model: payment.order.create, id: payment_order_create_0}:
duedate: '2010-06-04'
duedate: !eval time.strftime('%Y-%m-%d')
-
I searched the entries using "Payment Create Order" wizard

View File

@ -122,10 +122,10 @@
acc_expense: account.a_pay
acc_income: account.a_recv
account_analytic_id: account.analytic_root
auction1: '2010-08-01'
auction2: '2010-08-31'
expo1: '2010-08-01'
expo2: '2010-08-31'
auction1: !eval "'%s-08-01' %(datetime.now().year)"
auction2: !eval "'%s-08-31' %(datetime.now().year)"
expo1: !eval "'%s-08-01' %(datetime.now().year)"
expo2: !eval "'%s-08-31' %(datetime.now().year)"
journal_id: account.expenses_journal
journal_seller_id: account.sales_journal
name: Antique furniture exhibition
@ -137,7 +137,7 @@
An object is being deposited for an auction,I create a seller's deposit record with deposit cost.
-
!record {model: auction.deposit, id: auction_deposit_ad0}:
date_dep: '2010-08-01'
date_dep: !eval "'%s-08-01' %(datetime.now().year)"
method: keep
name: AD/006
partner_id: res_partner_mrpinakin0
@ -251,7 +251,7 @@
!record {model: auction.lots.make.invoice.buyer, id: auction_lots_make_invoice_buyer_0}:
amount: 3090.0
buyer_id: res_partner_mrkjohnson0
number: 2010/003
number: !eval "'%s/003' %(datetime.now().year)"
objects: 1
-
I click on the "Create Invoices" button.

View File

@ -36,8 +36,8 @@
I fill proper data for that meeting and save it
-
!record {model: crm.meeting, id: crm_meeting_abcfuelcounits0}:
date: '2010-04-16 00:00:00'
date_deadline: '2010-04-16 08:00:00'
date: !eval time.strftime('%Y-%m-%d 00:00:00')
date_deadline: !eval time.strftime('%Y-%m-%d 08:00:00')
duration: 8.0
email_from: info@balmerinc.be
name: 'ABC FUEL CO 829264 - 10002 units'
@ -51,7 +51,7 @@
I click on "schedule call" button and select planned date for the call.
-
!record {model: crm.opportunity2phonecall, id: crm_opportunity2phonecall_abcfuelcounits0}:
date: '2010-04-17 11:15:00'
date: !eval "'%s-%s-%s 11:15:00' %(datetime.now().year,datetime.now().month,datetime.now().day+1)"
name: 'ABC FUEL CO 829264 - 10002 units'
section_id: crm.section_sales_department
user_id: base.user_demo
@ -72,7 +72,7 @@
I can see phonecall record after click on "Schedule call" wizard.
-
!record {model: crm.phonecall, id: crm_phonecall_abcfuelcounits0}:
date: '2010-04-17 11:15:00'
date: !eval "'%s-%s-%s 11:15:00' %(datetime.now().year,datetime.now().month,datetime.now().day+1)"
duration: 3.0
name: 'ABC FUEL CO 829264 - 10002 units'
partner_address_id: base.res_partner_address_1

View File

@ -2,8 +2,9 @@
I start by creating a new phonecall.
-
!record {model: crm.phonecall, id: crm_phonecall_interviewcall0}:
date: '2010-04-21 18:59:00'
date: !eval time.strftime('%Y-%m-%d 08:00:00')
name: Interview call
duration: 2.0
section_id: crm.section_sales_department
-
Now , I select partner by click on "Create a Partner" button.
@ -63,8 +64,8 @@
-
!record {model: crm.meeting, id: crm_meeting_interviewcall0}:
alarm_id: base_calendar.alarm3
date: '2010-04-20 00:00:00'
date_deadline: '2010-04-20 08:00:00'
date: !eval "'%s-%s-%s 09:00:00' %(datetime.now().year,datetime.now().month,datetime.now().day+1)"
date_deadline: !eval "'%s-%s-%s 17:00:00' %(datetime.now().year,datetime.now().month,datetime.now().day+1)"
duration: 8.0
email_from: info@balmerinc.be
name: Interview call
@ -80,7 +81,7 @@
phonecall.
-
!record {model: crm.phonecall2phonecall, id: crm_phonecall2phonecall_interviewcall0}:
date: '2010-04-21 19:49:00'
date: !eval "'%s-%s-%s 19:49:00' %(datetime.now().year,datetime.now().month,datetime.now().day+1)"
name: Interview call
section_id: crm.section_sales_department
user_id: base.user_root

View File

@ -7,7 +7,7 @@
-
!record {model: crm.claim, id: crm_claim_damagedproduct0}:
categ_id: crm_claim.categ_claim2
date: '2010-04-21 20:13:00'
date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
email_from: info@balmerinc.be
name: 'Damaged product '
partner_address_id: base.res_partner_address_1

View File

@ -4,7 +4,7 @@
I select Date at which helpdesk request is created.
-
!record {model: crm.helpdesk, id: crm_helpdesk_somefunctionalquestion0}:
date: '2010-04-22 10:17:00'
date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
email_from: info@balmerinc.be
name: Some functional question.
partner_address_id: base.res_partner_address_1

View File

@ -8,18 +8,18 @@
origin: SO001
address_id: base.res_partner_address_4
company_id: base.main_company
date: '2010-05-11 15:18:52'
date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
invoice_state: none
move_lines:
- company_id: base.main_company
date: '2010-05-11 15:18:57'
date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
location_dest_id: stock.stock_location_customers
location_id: stock.stock_location_stock
name: HP CD writers
product_id: product.product_product_pc1
product_qty: 3.0
product_uom: product.product_uom_unit
date: '2010-05-11 15:18:57'
date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
product_uos_qty: 3.0
move_type: direct
type: out

View File

@ -18,8 +18,8 @@
I'm creating one Event "Conference on OpenERP Business" which will last from 1st of this month to 10th of this month.
-
!record {model: event.event, id: event_event_conference0}:
date_begin: 2010-08-01
date_end: 2010-08-10
date_begin: !eval time.strftime('%Y-%m-01')
date_end: !eval time.strftime('%Y-%m-10')
name: Conference on OpenERP Business.
product_id: 'product_product_ticketforconcert0'
type: 'event_type_conference0'

View File

@ -30,7 +30,7 @@
action: sign_in
action_desc: 'hr_action_reason_login0'
employee_id: 'hr_employee_employee0'
name: '2010-05-18 19:08:08'
name: !eval "'%s-01-01 19:08:08' %(datetime.now().year)"
-
I check that Employee state is "Present".
-
@ -43,7 +43,7 @@
!record {model: hr.attendance, id: hr_attendance_1}:
action: sign_out
employee_id: 'hr_employee_employee0'
name: '2010-05-18 19:10:55'
name: !eval "'%s-01-01 19:10:55' %(datetime.now().year)"
-
I check that Employee state is Absent.
-

View File

@ -39,10 +39,10 @@
advantages_gross: 0.0
employee_id: 'hr_employee_employee0'
advantages_net: 0.0
date_end: '2011-05-18'
date_start: '2010-05-18'
trial_date_end: '2010-03-01'
trial_date_start: '2010-04-30'
date_end: !eval "'%s-05-18' %(datetime.now().year+1)"
date_start: !eval "'%s-05-18' %(datetime.now().year)"
trial_date_end: !eval "'%s-03-01' %(datetime.now().year)"
trial_date_start: !eval "'%s-04-30' %(datetime.now().year)"
name: contract1
wage: 1.0
wage_type_id: hr_contract_wage_type_monthlygrosswage0

View File

@ -101,7 +101,7 @@
I create an Evaluation for employee under "Manager Evaluation Plan".
-
!record {model: hr_evaluation.evaluation, id: hr_evaluation_evaluation_0}:
date: '2010-06-28'
date: !eval time.strftime('%Y-%m-%d')
employee_id: 'hr_employee_employee1'
plan_id: 'hr_evaluation_plan_managersplan0'
progress: 0.0
@ -110,7 +110,7 @@
I create an Interview Request record
-
!record {model: hr.evaluation.interview, id: hr_evaluation_interview_0}:
date_deadline: '2010-06-28'
date_deadline: !eval time.strftime('%Y-%m-%d')
evaluation_id: 'hr_evaluation_evaluation_0'
survey_id: hr_evaluation.survey_0
-

View File

@ -47,11 +47,11 @@
!record {model: hr.expense.expense, id: hr_expense_expense_september0}:
company_id: base.main_company
currency_id: base.EUR
date: '2010-05-05'
date: !eval "'%s-05-05' %(datetime.now().year)"
employee_id: hr.employee1
name: September Expenses
line_ids:
- date_value: '2010-05-27'
- date_value: !eval "'%s-05-27' %(datetime.now().year)"
name: Travel
product_id: 'product_product_travel0'
sequence: 0.0

View File

@ -46,8 +46,8 @@
holiday_status_id: hr_holidays_status_sick0
name: Sick Leaves for Phil Graves
number_of_days_temp: 12.0
date_from: '2010-05-20 13:59:00'
date_to: '2010-05-22 13:59:00'
date_from: !eval "'%s-05-20 13:59:00' %(datetime.now().year)"
date_to: !eval "'%s-05-22 13:59:00' %(datetime.now().year)"
type: add
-
I confirmed the allocation by clicking on "Confirm" button.
@ -63,8 +63,8 @@
I connect as "test_holiday_user1", and create a new leave request for employee "Phil Graves".
-
!record {model: hr.holidays, id: hr_holidays_iwanttoleaveforgotohospital0}:
date_from: '2010-05-20 11:48:00'
date_to: '2010-05-21 11:48:00'
date_from: !eval "'%s-05-20 11:48:00' %(datetime.now().year)"
date_to: !eval "'%s-05-21 11:48:00' %(datetime.now().year)"
employee_id: 'hr_employee_philgraves0'
holiday_status_id: 'hr_holidays_status_sick0'
name: Appointment with Doctor

View File

@ -11,8 +11,8 @@
contract_ids:
- advantages_gross: 0.0
advantages_net: 0.0
date_end: '2011-07-01'
date_start: '2010-07-01'
date_end: !eval "'%s-%s-%s' %(datetime.now().year+1,datetime.now().month,datetime.now().day)"
date_start: !eval time.strftime('%Y-%m-%d')
name: reference
wage: 5000.0
wage_type_id: hr_contract.hr_contract_monthly_gross

View File

@ -10,8 +10,8 @@
contract_ids:
- advantages_gross: 0.0
advantages_net: 0.0
date_end: '2011-07-01'
date_start: '2010-07-01'
date_end: !eval "'%s-%s-%s' %(datetime.now().year+1,datetime.now().month,datetime.now().day)"
date_start: !eval time.strftime('%Y-%m-%d')
name: reference
wage: 5000.0
wage_type_id: hr_contract.hr_contract_monthly_gross
@ -26,7 +26,7 @@
I create a payroll register record.
-
!record {model: hr.payroll.register, id: hr_payroll_register_payroll0}:
date: '2010-07-02'
date: !eval "'%s-%s-%s' %(datetime.now().year,datetime.now().month,datetime.now().day+1)"
line_ids:
- employee_id: hr_payroll.hr_employee_keith0
name: payroll1

View File

@ -21,8 +21,8 @@
contract_ids:
- advantages_gross: 0.0
advantages_net: 0.0
date_end: '2011-07-01'
date_start: '2010-07-01'
date_end: !eval "'%s-%s-%s' %(datetime.now().year+1,datetime.now().month,datetime.now().day)"
date_start: !eval time.strftime('%Y-%m-%d')
name: reference
wage: 5000.0
wage_type_id: hr_contract.hr_contract_monthly_gross