-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] hr_timesheet_activity_begin_end_readonly_duration: added tempor…
…ary access to timesheet time fields in form view
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
hr_timesheet_activity_begin_end_readonly_duration/views/hr_timesheet_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<!-- TODO this view should be actually placed in OCA's hr_timesheet_activity_begin_end --> | ||
<record id="view_hr_timesheet_sheet_daily_inherit_form" model="ir.ui.view"> | ||
<field name="name">account.analytic.line.form (in hr_timesheet_activity_begin_end_readonly_duration)</field> | ||
<field name="model">account.analytic.line</field> | ||
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='unit_amount']" position="before"> | ||
<field name="time_start" widget="float_time" /> | ||
<field name="time_stop" widget="float_time" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |