Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TA#72131 [16.0][MIG] mail_activity_not_deleted #25

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

lanto-razafindrabe
Copy link
Contributor

No description provided.

def action_feedback(self, feedback=False, attachment_ids=None):
self = self.with_context(mail_activity_no_delete=True)
return super(MailActivityInactivatedInsteadOfDeleted, self).action_feedback(
False, None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lanto-razafindrabe Replace arguments "False, None" with (action_feedback, attachment_ids)


state = fields.Selection(selection_add=[("done", "Done")])

@api.depends("date_deadline")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @lanto-razafindrabe
I think "date_done" must be added to the @api.depends

):
"""When deactivating a record, deactivate activities instead of deleting them."""

_inherit = "mail.activity.mixin"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @lanto-razafindrabe

Can you please declare this class in a new file mail_activity_mixin.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants