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

[FIX] mail_enterprise: display all attachements in preview widget #31923

Closed
wants to merge 1 commit into from

Conversation

len-foss
Copy link
Contributor

If res_id is not defined, this method used to crash.
Made obvious by commit a26496b,
which added a call to that function in the main controller of web.

opw 1950403

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

If res_id is not defined, this method used to crash.
Made obvious by commit a26496b,
which added a call to that function in the main controller of web.

opw 1950403
@len-foss len-foss requested a review from nle-odoo March 18, 2019 15:31
len-foss referenced this pull request Mar 18, 2019
…ed via widget

Create a record.
Add an attachment, using the widget (aptly named 'add an attachment').
It is not set as message_main_attachment_id.
If you add the message through 'log note', then it is.

We add a hook to make sure that it is set as message_main_attachment_id
when added through the widget.

opw 1950403

closes #31847

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
@nle-odoo
Copy link
Contributor

robodoo r+

yes it makes no sense for record without res_id

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Mar 18, 2019
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Mar 18, 2019
@robodoo robodoo closed this in eee6e26 Mar 18, 2019
@robodoo
Copy link
Contributor

robodoo commented Mar 18, 2019

Merged, thanks!

@len-foss len-foss deleted the 12.0-opw1950403-fl-len branch March 18, 2019 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants