Skip to content

Commit

Permalink
[REM] project_task_subtask: удаляем неиспользуемую фичу с типами сооб…
Browse files Browse the repository at this point in the history
…щений
  • Loading branch information
em230418 committed Dec 27, 2024
1 parent b4efcb3 commit 8d0d8b4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
1 change: 0 additions & 1 deletion project_task_subtask/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"data": [
"security/ir.model.access.csv",
"views/project_task_subtask.xml",
"data/subscription_template.xml",
],
"assets": {
"web.assets_backend": [
Expand Down
24 changes: 0 additions & 24 deletions project_task_subtask/data/subscription_template.xml

This file was deleted.

3 changes: 0 additions & 3 deletions project_task_subtask/models/project_task_subtask.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,8 @@ def send_subtask_email(
if subtask_state == "waiting":
state = '<span style="color:#b818ce">' + state + "</span>"
partner_ids = []
subtype = "project_task_subtask.subtasks_subtype"
if user == self.env.user and reviewer == self.env.user:
body = "<p>" + "<strong>" + state + "</strong>: " + escape(subtask_name)
subtype = False
elif self.env.user == reviewer:
body = (
"<p>"
Expand Down Expand Up @@ -233,7 +231,6 @@ def send_subtask_email(
body = body + "</p>"
r.message_post(
message_type="comment",
subtime_xmlid=subtype,
body=body,
partner_ids=partner_ids,
)
Expand Down

0 comments on commit 8d0d8b4

Please sign in to comment.