Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! linter
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s committed Jan 16, 2025
1 parent 90deeb7 commit e0112ac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def _match_attachment(self, re_pattern, model, res_ids):
)
)

@api.onchange("template_id", "res_ids", "model")
def _compute_object_attachment_ids(self):
@api.depends("composition_mode", "model", "res_domain", "res_ids", "template_id")
def _compute_attachment_ids(self):
for composer in self:
composer.object_attachment_ids = self.env["ir.attachment"].browse()
if (
Expand All @@ -43,8 +43,8 @@ def _compute_object_attachment_ids(self):
pattern, composer.model, parse_res_ids(composer.res_ids)
)

def get_mail_values(self, res_ids):
res = super().get_mail_values(res_ids)
def _prepare_mail_values_dynamic(self, res_ids):
res = super()._prepare_mail_values_dynamic(res_ids)
self.ensure_one()
if (
self.template_id
Expand Down

0 comments on commit e0112ac

Please sign in to comment.