Commit 36477a37 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_crm: Embedded File is required as Allowed Content on Mail Message

   Since the MailMessage_send uses Embeeded File to create attachments, on the Mail Message before send it is required to add it as Allowed Content type, otherwise, it will raise, "ValueError: Disallowed subobject type: Embedded File on <Temporary Mail Message at /erp5/None>"
parent 2b48ad98
Pipeline #12506 failed with stage
in 0 seconds
......@@ -21,6 +21,9 @@
<portal_type id="Letter">
<item>Embedded File</item>
</portal_type>
<portal_type id="Mail Message">
<item>Embedded File</item>
</portal_type>
<portal_type id="Meeting">
<item>Event Path</item>
</portal_type>
......
......@@ -12,6 +12,7 @@ Event Module | Site Message
Event Module | Visit
Event Module | Web Message
Letter | Embedded File
Mail Message | Embedded File
Meeting Module | Meeting
Meeting | Event Path
Preference | Support Request
......
  • Please see 7bea7bb2 it's in erp5_base now. It seems that when we update ERP5 the allowed content type is lost, probably because erp5_base is updated before crm since crm depends on base.

    It's probably too late now, but we should have included some "keep template items" in 7bea7bb2

    /cc @klaus

  • Oh I see, thanks for the tip. I may revert this so.

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment