Merge branch 'pawan_branch' into 'development'
Pawan branch See merge request prakash.jain/cor-odoo!95
This commit is contained in:
commit
aae9c7c950
|
@ -16,7 +16,7 @@ class AccountAnalyticLine(models.Model):
|
|||
start_time = fields.Float(string='Start Time', digits=(16, 2))
|
||||
end_time = fields.Float(string='End Time', digits=(16, 2))
|
||||
unit_amount = fields.Float('Duration', default=0.0)
|
||||
parent_project = fields.Many2one('project.project', string='Parent Project', related='project_id.parent_project', readonly=True)
|
||||
sub_project = fields.Many2one('project.project', string='Sub Project', related='project_id.sub_project', readonly=True)
|
||||
|
||||
@api.onchange('employee_id')
|
||||
def _onchange_employee_id(self):
|
||||
|
|
|
@ -202,7 +202,7 @@ class ProjectConsultantTimesheetHrs(models.Model):
|
|||
_description = 'Project Consultant Timesheet Hrs'
|
||||
|
||||
project_id = fields.Many2one('project.project', "Project")
|
||||
employee_id = fields.Many2one('hr.employee')
|
||||
employee_id = fields.Many2one('hr.employee', string="Consultant")
|
||||
employee_price = fields.Float(string="Consultant Price", default=0.0)
|
||||
timesheet_hour = fields.Float("Timesheet Hour", default=0.0)
|
||||
consultant_cost = fields.Float("Actual Cost", compute='_compute_consultant_timesheet_cost', default=0.0)
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<field name="end_time" widget="float_time"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='unit_amount']" position="after">
|
||||
<field name="parent_project"/>
|
||||
<field name="sub_project"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
@ -6,4 +6,4 @@ class SubProject(models.Model):
|
|||
_description = "Sub Project"
|
||||
|
||||
is_sub_project = fields.Boolean("Is Sub Project")
|
||||
parent_project = fields.Many2one('project.project', string='Parent Project')
|
||||
sub_project = fields.Many2one('project.project', string='Sub Project')
|
|
@ -14,7 +14,7 @@
|
|||
<field name="is_sub_project"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="parent_project" attrs="{'invisible': [('is_sub_project', '=', False)], 'required': [('is_sub_project', '=', True)]}"
|
||||
<field name="sub_project" attrs="{'invisible': [('is_sub_project', '=', False)], 'required': [('is_sub_project', '=', True)]}"
|
||||
options="{'no_open': True, 'no_create': True, 'no_create_edit': True}"/>
|
||||
</group>
|
||||
</page>
|
||||
|
|
Loading…
Reference in New Issue