Skip to content

Commit

Permalink
[IMP] hr_timesheet_activity_begin_end_readonly_duration: added tempor…
Browse files Browse the repository at this point in the history
…ary access to timesheet time fields in form view
  • Loading branch information
dalonsod committed Mar 16, 2023
1 parent 759916d commit 9fc3fea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"category": "Project",
"website": "https://github.com/solvosci/slv-timesheet",
"depends": ["hr_timesheet_activity_begin_end"],
"data": [],
"data": ["views/hr_timesheet_views.xml"],
'installable': True,
}
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>

0 comments on commit 9fc3fea

Please sign in to comment.