[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}: !record {model: account.bank.statement, id: account_bank_statement_0}:
balance_end_real: 0.0 balance_end_real: 0.0
balance_start: 0.0 balance_start: 0.0
date: '2010-10-14' date: !eval time.strftime('%Y-%m-%d')
journal_id: account.bank_journal journal_id: account.bank_journal
name: / name: /
period_id: account.period_10 period_id: account.period_10
line_ids: line_ids:
- account_id: account.a_recv - account_id: account.a_recv
amount: 1000.0 amount: 1000.0
date: '2010-10-14' date: !eval time.strftime('%Y-%m-%d')
name: a name: a
partner_id: base.res_partner_4 partner_id: base.res_partner_4
sequence: 0.0 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 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}: !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 journal_id: account.cash_journal
name: / name: /
period_id: account.period_10 period_id: account.period_10
@ -41,7 +41,7 @@
line_ids: line_ids:
- account_id: account.a_recv - account_id: account.a_recv
amount: 1000.0 amount: 1000.0
date: '2010-10-16' date: !eval time.strftime('%Y-%m-%d')
name: test name: test
partner_id: base.res_partner_4 partner_id: base.res_partner_4
sequence: 0.0 sequence: 0.0

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -66,7 +66,7 @@
I create a send followup record I create a send followup record
- -
!record {model: account.followup.print, id: account_followup_print_0}: !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 followup_id: account_followup_followup_testfollowups0
@ -99,5 +99,5 @@
!python {model: account.followup.print.all}: | !python {model: account.followup.print.all}: |
self.do_print(cr, uid, [ref("account_followup_print_all_0")], {"lang": 'en_US', 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")], "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}: !record {model: payment.order, id: payment_order_0}:
date_prefered: due date_prefered: due
mode: payment_mode_m0 mode: payment_mode_m0
reference: 2010/006 reference: !eval "'%s/006' %(datetime.now().year)"
user_id: base.user_root user_id: base.user_root
@ -68,7 +68,7 @@
Creating a payment.order.create record Creating a payment.order.create record
- -
!record {model: payment.order.create, id: payment_order_create_0}: !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 I searched the entries using "Payment Create Order" wizard

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
- -
!record {model: crm.claim, id: crm_claim_damagedproduct0}: !record {model: crm.claim, id: crm_claim_damagedproduct0}:
categ_id: crm_claim.categ_claim2 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 email_from: info@balmerinc.be
name: 'Damaged product ' name: 'Damaged product '
partner_address_id: base.res_partner_address_1 partner_address_id: base.res_partner_address_1

View File

@ -4,7 +4,7 @@
I select Date at which helpdesk request is created. I select Date at which helpdesk request is created.
- -
!record {model: crm.helpdesk, id: crm_helpdesk_somefunctionalquestion0}: !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 email_from: info@balmerinc.be
name: Some functional question. name: Some functional question.
partner_address_id: base.res_partner_address_1 partner_address_id: base.res_partner_address_1

View File

@ -8,18 +8,18 @@
origin: SO001 origin: SO001
address_id: base.res_partner_address_4 address_id: base.res_partner_address_4
company_id: base.main_company 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 invoice_state: none
move_lines: move_lines:
- company_id: base.main_company - 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_dest_id: stock.stock_location_customers
location_id: stock.stock_location_stock location_id: stock.stock_location_stock
name: HP CD writers name: HP CD writers
product_id: product.product_product_pc1 product_id: product.product_product_pc1
product_qty: 3.0 product_qty: 3.0
product_uom: product.product_uom_unit 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 product_uos_qty: 3.0
move_type: direct move_type: direct
type: out 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. 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}: !record {model: event.event, id: event_event_conference0}:
date_begin: 2010-08-01 date_begin: !eval time.strftime('%Y-%m-01')
date_end: 2010-08-10 date_end: !eval time.strftime('%Y-%m-10')
name: Conference on OpenERP Business. name: Conference on OpenERP Business.
product_id: 'product_product_ticketforconcert0' product_id: 'product_product_ticketforconcert0'
type: 'event_type_conference0' type: 'event_type_conference0'

View File

@ -30,7 +30,7 @@
action: sign_in action: sign_in
action_desc: 'hr_action_reason_login0' action_desc: 'hr_action_reason_login0'
employee_id: 'hr_employee_employee0' 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". I check that Employee state is "Present".
- -
@ -43,7 +43,7 @@
!record {model: hr.attendance, id: hr_attendance_1}: !record {model: hr.attendance, id: hr_attendance_1}:
action: sign_out action: sign_out
employee_id: 'hr_employee_employee0' 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. I check that Employee state is Absent.
- -

View File

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

View File

@ -101,7 +101,7 @@
I create an Evaluation for employee under "Manager Evaluation Plan". I create an Evaluation for employee under "Manager Evaluation Plan".
- -
!record {model: hr_evaluation.evaluation, id: hr_evaluation_evaluation_0}: !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' employee_id: 'hr_employee_employee1'
plan_id: 'hr_evaluation_plan_managersplan0' plan_id: 'hr_evaluation_plan_managersplan0'
progress: 0.0 progress: 0.0
@ -110,7 +110,7 @@
I create an Interview Request record I create an Interview Request record
- -
!record {model: hr.evaluation.interview, id: hr_evaluation_interview_0}: !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' evaluation_id: 'hr_evaluation_evaluation_0'
survey_id: hr_evaluation.survey_0 survey_id: hr_evaluation.survey_0
- -

View File

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

View File

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

View File

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

View File

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

View File

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