summaryrefslogtreecommitdiff
path: root/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2015-08-27 11:48:16 +0200
committerNicolas Martinelli <nim@odoo.com>2015-08-27 18:10:18 +0200
commite021a08b300a14f0f41ffe545ffda2c8e0088100 (patch)
tree7a540e736c854a16bb8e35ab259e3a87a67a44be /addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
parent868e7c6a6ecaf7b763e1943222b638e01316f030 (diff)
[IMP] hr*: adaptation due to the new Sale module
Major changes: - No use of UoS anymore - No journal since invoicing is managed in Sale - No invoicing from timesheet Reason: complete rewrite of the Sale module. Responsible: fp, dbo, nim
Diffstat (limited to 'addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml')
-rw-r--r--addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml23
1 files changed, 5 insertions, 18 deletions
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
index 7f7d8b729bd..9bf04bc2560 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
@@ -11,7 +11,6 @@
<field name="sheet_id"/>
<field name="name" groups="analytic.group_analytic_accounting"/>
<field name="total" sum="Total"/>
- <field name="invoice_rate"/>
</group>
</form>
</field>
@@ -22,7 +21,6 @@
<field name="arch" type="xml">
<search string="Search Account">
<field name="name" groups="analytic.group_analytic_accounting"/>
- <field name="invoice_rate"/>
<field name="sheet_id" />
</search>
</field>
@@ -35,7 +33,6 @@
<field name="sheet_id"/>
<field name="name" groups="analytic.group_analytic_accounting"/>
<field name="total" sum="Total"/>
- <field name="invoice_rate"/>
</tree>
</field>
</record>
@@ -130,27 +127,17 @@
<field context="{'employee_id': employee_id, 'user_id':user_id, 'timesheet_date_from': date_from, 'timesheet_date_to': date_to, 'default_is_timesheet' : 1}" name="timesheet_ids" nolabel="1">
<tree editable="bottom" string="Timesheet Activities">
<field name="date"/>
- <field domain="[('type','in',['normal', 'contract']), ('state', '!=', 'close'),('invoice_on_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id, unit_amount, is_timesheet, context)" options="{'no_open': True, 'no_create': True}" context="{'default_use_timesheets': 1}"/>
+ <field domain="[('use_timesheets','=',1)]" name="account_id" on_change="on_change_account_id(account_id, user_id, unit_amount, is_timesheet, context)" options="{'no_open': True, 'no_create': True}" context="{'default_use_timesheets': 1}"/>
<field name="name"/>
- <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time" string="Hours" sum="Hours"/>
- <field name="to_invoice" widget="selection"/>
- <field invisible="1" name="journal_id"/>
- <field invisible="1" name="product_id" domain="[('type','=','service')]" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
- <field invisible="1" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
- <field invisible="1" name="amount"/>
- <field invisible="1" name="general_account_id"/>
+ <field name="unit_amount" widget="float_time" string="Hours" sum="Hours"/>
<field invisible="1" name="user_id" required="1"/>
<field name="is_timesheet" invisible="1"/>
</tree>
<form string="Timesheet Activities">
<field name="date"/>
- <field domain="[('type','=','normal'), ('state', '!=', 'close')]" name="account_id" on_change="on_change_account_id(account_id, user_id, unit_amount, is_timesheet, context)"/>
+ <field domain="[('use_timesheets','=',1)]" name="account_id"/>
<field name="name"/>
- <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)" widget="float_time"/>
- <field name="to_invoice"/>
- <field name="journal_id"/>
- <field name="product_id" domain="[('type','=','service')]" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
- <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
+ <field name="unit_amount" widget="float_time"/>
<field name="amount"/>
<field name="general_account_id"/>
<field name="user_id" required="1"/>
@@ -387,7 +374,7 @@
<record id="hr_timesheet_sheet_employee_extd_form" model="ir.ui.view">
<field name="name">hr.timesheet.sheet.employee.extd_form</field>
<field name="model">hr.employee</field>
- <field name="inherit_id" ref="hr_timesheet.hr_timesheet_employee_extd_form"/>
+ <field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<div name="button_box" position="inside">
<button name="%(act_hr_employee_2_hr_timesheet)d"