Skip to content

Commit

Permalink
Merge commit 'refs/pull/2263/head' of https://github.com/oca/purchase…
Browse files Browse the repository at this point in the history
…-workflow into 17.0-6887
  • Loading branch information
docker-odoo committed May 5, 2024
2 parents db54209 + 8220de8 commit 54c5330
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions purchase_request/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def _purchase_request_confirm_message(self):
request, requests_dict[request_id]
)
request.message_post(
body=message, subtype_id=self.env.ref("mail.mt_comment").id
body=message,
subtype_id=self.env.ref("mail.mt_comment").id,
body_is_html=True,
)
return True

Expand Down Expand Up @@ -180,7 +182,9 @@ def update_service_allocations(self, prev_qty_received):
message_data
)
alloc.purchase_request_line_id.request_id.message_post(
body=message, subtype_id=self.env.ref("mail.mt_comment").id
body=message,
subtype_id=self.env.ref("mail.mt_comment").id,
body_is_html=True,
)

alloc.purchase_request_line_id._compute_qty()
Expand Down
4 changes: 3 additions & 1 deletion purchase_request/models/purchase_request_allocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,7 @@ def _notify_allocation(self, allocated_qty):
message_data = self._prepare_message_data(po_line, request, allocated_qty)
message = self._purchase_request_confirm_done_message_content(message_data)
request.message_post(
body=message, subtype_id=self.env.ref("mail.mt_comment").id
body=message,
subtype_id=self.env.ref("mail.mt_comment").id,
body_is_html=True,
)
1 change: 1 addition & 0 deletions purchase_request/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def allocate(self):
ml.move_id.picking_id.message_post(
body=picking_message,
subtype_id=self.env.ref("mail.mt_comment").id,
body_is_html=True,
)

allocation._compute_open_product_qty()
Expand Down

0 comments on commit 54c5330

Please sign in to comment.