-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: 16.0
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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?
No description provided.