mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] maintenance_timesheet: migrate to 17.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
'name': 'Equipment Timesheets',
|
||||
'version': '16.0.1.0.0',
|
||||
'version': '17.0.1.0.0',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'category': 'Human Resources',
|
||||
'summary': 'Record time on maintenance requests.',
|
||||
|
||||
@@ -31,6 +31,8 @@ class MaintenanceRequest(models.Model):
|
||||
help="Computed using the sum of the maintenance work done.")
|
||||
remaining_hours = fields.Float(compute='_hours_get', store=True, string='Remaining Hours',
|
||||
help="Total remaining time.")
|
||||
department_id = fields.Many2one('hr.department')
|
||||
|
||||
|
||||
@api.model
|
||||
def create(self, values):
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<field name="inherit_id" ref="maintenance_notebook.hr_equipment_request_view_form_notebook"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//notebook" position="inside">
|
||||
<page string="Timesheets" attrs="{'invisible': [('project_id', '=', False)]}">
|
||||
<page string="Timesheets" invisible="not project_id">
|
||||
<field name="timesheet_ids" context="{'default_project_id': project_id}">
|
||||
<tree editable="bottom" string="Timesheet Activities" default_order="date">
|
||||
<field name="date"/>
|
||||
|
||||
Reference in New Issue
Block a user