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

[16.0] [ADD] web_url_default_fields_values #3017

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

paradoxxxzero
Copy link
Contributor

Prefill form fields directly from URL:

https://odoo.example.org/web#action=base.action_partner_form&view_type=form&res.partner_default_name=Albert%20Must&res.partner_default_email=albert.must%40example.org

Will directly open the partner form view with the name and email prefilled:

Prefilled form fields

It also handles changing the url fragment without reloading the page, updating the form fields accordingly.

The url default parameters will be kept in the url and therefore in browser history to allow leaving the page and coming back to it with the browser back button.

@paradoxxxzero paradoxxxzero marked this pull request as ready for review December 13, 2024 15:29
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.

1 participant