Skip to content

Commit

Permalink
[MIG] repair_type: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJForgeFlow committed Jul 26, 2023
1 parent 5f2d753 commit fadaf9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion repair_type/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Repair Type",
"version": "15.0.1.0.0",
"version": "16.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/repair",
"summary": "Repair type",
Expand Down
2 changes: 2 additions & 0 deletions repair_type/models/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class Repair(models.Model):

@api.depends("repair_type_id")
def _compute_location_id(self):
res = super()._compute_location_id()
for rec in self:
if rec.repair_type_id.source_location_id:
rec.location_id = rec.repair_type_id.source_location_id
return res


class RepairLine(models.Model):
Expand Down

0 comments on commit fadaf9e

Please sign in to comment.