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, change _get_access_link to get the action id #16595

Closed
wants to merge 2 commits into from

Conversation

ismaelcj
Copy link

Description of the issue/feature this PR addresses:
When sending an email, for example an invitation to follow a sale order, the address of the related document is wrong. Specifically, the action is the xml_id instead of an integer id. So the link is not working.

Current behavior before PR:
An example of wrong url: http://127.0.0.1:8069/web?db=odoo_test#action=mail.action_mail_redirect&login=admin%40odoo.com&res_id=35611&model=sale.order

Desired behavior after PR is merged:
The expected url: http://127.0.0.1:8069/web?db=odoo_test#action=103&login=admin%40odoo.com&res_id=35611&model=sale.order

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

@mart-e
Copy link
Contributor

mart-e commented Apr 24, 2017

Hello,

Sorry but I disagree. The actions using an external id should work fine. I confirm both id and xml id version works.

Please elaborate on how to reproduce your bug.

@mart-e mart-e added the Blocked will not be processed until a blocking point is resolved label Apr 24, 2017
@ismaelcj
Copy link
Author

I've tested it now on runbot and it works well, so there must be something wrong in my server.

Sorry for the inconvenience.

@ismaelcj ismaelcj closed this Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked will not be processed until a blocking point is resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants