Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Oct 22, 2024
1 parent 80b5070 commit 132160b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions rma_repair/models/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ class RepairOrder(models.Model):

def action_view_repair_rma(self):
return {
"name": "RMAs from " + self.name,
"type": "ir.actions.act_window",
"view_mode": "tree,form",
"view_mode": "form",
"res_model": "rma",
"domain": [("id", "in", self.rma_ids.ids)],
"res_id": self.rma_ids[0].id,
}
2 changes: 1 addition & 1 deletion rma_repair/models/rma.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _compute_can_be_returned(self):
r.can_be_returned = (
r.state in ["received", "waiting_return"]
and r.remaining_qty > 0
and r.repair_id.state != "cancel"
and r.repair_id.state == "done"
)

@api.depends("state", "repair_id.state")
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
odoo-addon-rma_lot @ git+https://github.com/OCA/rma.git@refs/pull/431/head#subdirectory=rma_lot
odoo-addon-stock_picking_return_lot @ git+https://github.com/OCA/stock-logistics-workflow.git@refs/pull/1745/head#subdirectory=stock_picking_return_lot

0 comments on commit 132160b

Please sign in to comment.