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 #614

Closed
wants to merge 1 commit into from

Conversation

ismaelcj
Copy link
Member

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

@pedrobaeza
Copy link
Member

Please make the corresponding PR upstream

@ismaelcj
Copy link
Member Author

Done odoo#16595

@ismaelcj
Copy link
Member 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants