Merge pull request #1559 from expsa/pla815184-fix-issue-in-depart
Pla815184 fix issue in depart
This commit is contained in:
commit
e19e4239eb
|
|
@ -50,7 +50,7 @@ class VehicleDelegation(models.Model):
|
|||
km_number = fields.Integer(string='KM Number', compute='get_km', store=True,help='The value of the difference between the odometer at the moment of delivery and receipt')
|
||||
last_department_id = fields.Many2one(related='vehicle_id.department_id', string="Last Department",help='The last Department the vehicle was authorized for')
|
||||
last_project_id = fields.Many2one('project.project', string='Last Project', compute="get_last_project", store=True)
|
||||
last_branch_id = fields.Many2one('res.branch', string="Last Branch", compute="get_last_branch", store=True,help='The last Branch the vehicle was authorized for')
|
||||
last_branch_id = fields.Many2one('hr.department', string="Last Branch", compute="get_last_branch", store=True,help='The last Branch the vehicle was authorized for')
|
||||
|
||||
@api.depends("vehicle_id")
|
||||
def get_first_odometer(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue