hr_timesheet: added a timesheet in the previous month
bzr revid: ced-964c1cd491a29e8851ce3684703783a5014b7c29
This commit is contained in:
parent
2b477bfeea
commit
5ef543138b
|
@ -141,5 +141,17 @@
|
|||
<field name="general_account_id" ref="account.a_recv"/>
|
||||
</record>
|
||||
|
||||
<record model="hr.analytic.timesheet" id="analytic_timesheet10">
|
||||
<field name="amount">-210.0</field>
|
||||
<field name="date" eval="time.strftime('%Y-%m-08', time.localtime(time.mktime(time.localtime()[0:2] + (0,)*7)-1))"/>
|
||||
<field name="name">Quotation 42</field>
|
||||
<field name="unit_amount">5.0</field>
|
||||
<field name="account_id" ref="account.analytic_agrolait"/>
|
||||
<field name="product_id" ref="hr_timesheet.product_consultant"/>
|
||||
<field name="product_uom_id" ref="hr_timesheet.uom_hour"/>
|
||||
<field name="user_id" ref="base.user_admin"/>
|
||||
<field name="journal_id" ref="analytic_journal"/>
|
||||
<field name="general_account_id" ref="account.a_recv"/>
|
||||
</record>
|
||||
</data>
|
||||
</terp>
|
||||
|
|
|
@ -32,5 +32,12 @@
|
|||
<field name="to_invoice" ref="timesheet_invoice_factor1" />
|
||||
</record>
|
||||
|
||||
<record model="hr.analytic.timesheet" id="hr_timesheet.analytic_timesheet9">
|
||||
<field name="to_invoice" ref="timesheet_invoice_factor1" />
|
||||
</record>
|
||||
|
||||
<record model="hr.analytic.timesheet" id="hr_timesheet.analytic_timesheet10">
|
||||
<field name="to_invoice" ref="timesheet_invoice_factor1" />
|
||||
</record>
|
||||
</data>
|
||||
</terp>
|
||||
|
|
|
@ -1,6 +1,18 @@
|
|||
<?xml version="1.0"?>
|
||||
<terp>
|
||||
<data noupdate="1">
|
||||
<record model="hr_timesheet_sheet.sheet" id="sheet0">
|
||||
<field name="name">Sheet 0</field>
|
||||
<field name="user_id" ref="base.user_admin" />
|
||||
<field name="date_from" eval="time.strftime('%Y-%m-01', time.localtime(time.mktime(time.localtime()[0:2] + (0,)*7)-1))"/>
|
||||
<field name="date_current" eval="time.strftime('%Y-%m-15', time.localtime(time.mktime(time.localtime()[0:2] + (0,)*7)-1))"/>
|
||||
<field name="date_to" eval="time.strftime('%Y-%m-%d', time.localtime(time.mktime(time.localtime()[0:2] + (0,)*7)-1))"/>
|
||||
</record>
|
||||
|
||||
<record model="hr.analytic.timesheet" id="hr_timesheet.analytic_timesheet10">
|
||||
<field name="sheet_id" ref="sheet0"/>
|
||||
</record>
|
||||
|
||||
<record model="hr_timesheet_sheet.sheet" id="sheet1">
|
||||
<field name="name">Sheet 1</field>
|
||||
<field name="user_id" search="[('login','=','admin')]" model="res.users"/>
|
||||
|
|
Loading…
Reference in New Issue