Skip to content

Commit 4d0aa81

Browse files
committed
Merge PR #380 into 14.0
Signed-off-by pedrobaeza
2 parents a70a6eb + 2e3c273 commit 4d0aa81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

maintenance_account/models/account_move.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def unlink(self):
1818
return super().unlink()
1919

2020
def action_post(self):
21-
super().action_post()
21+
res = super().action_post()
2222
# Prevent error if user does not have permission to create equipments
2323
equipment_model = self.env["maintenance.equipment"].sudo()
2424
for move in self.filtered(lambda r: r.is_purchase_document()):
@@ -41,6 +41,7 @@ def action_post(self):
4141
).create(vals.copy())
4242
equipment_ids.append((4, equipment.id))
4343
line.equipment_ids = equipment_ids
44+
return res
4445

4546
def action_view_equipments(self):
4647
items = self.env["maintenance.equipment"].search([("move_id", "=", self.id)])

0 commit comments

Comments
 (0)