Skip to content

Commit

Permalink
Merge PR #28 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Mar 26, 2024
2 parents 93d5f6c + d647fce commit 60f5ff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repair_type/models/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class RepairLine(models.Model):

@api.depends("type", "repair_id.repair_type_id")
def _compute_location_id(self):
res = super()._compute_location_id()
for rec in self:
if (
rec.type == "add"
Expand Down Expand Up @@ -62,6 +63,7 @@ def _compute_location_id(self):
rec.location_dest_id = (
rec.repair_id.repair_type_id.destination_location_remove_part_id
)
return res

@api.onchange("type")
def onchange_operation_type(self):
Expand Down

0 comments on commit 60f5ff3

Please sign in to comment.