This module provides a new many2one_open_tab widget for Many2one fields. It extends the standard Many2one widget by adding an extra button that opens the related record in a new browser tab, while keeping all the original Many2one functionality intact.
This is the Many2one counterpart of the OCA module web_widget_open_tab, which provides similar functionality for tree/list views.
Table of contents
Usage
To use this widget, add the widget="many2one_open_tab" attribute to any Many2one field in a form view:
<field name="partner_id" widget="many2one_open_tab"/>
The widget behaves exactly like the standard Many2one widget, with the following additions:
Edit mode: An extra fa-external-link icon button appears next to the existing internal link arrow. Clicking it opens the related record’s form view in a new browser tab.
Read-only mode: A small fa-external-link icon appears after the record name link. Clicking it opens the related record in a new browser tab, while clicking the record name itself navigates in the same tab with breadcrumbs (standard Odoo behavior).
Known issues / Roadmap
Add support for many2many_tags widget variant with open-in-new-tab functionality.
Bug Tracker
Bugs are tracked on GitLab Issues. In case of trouble, please check there if your issue has already been reported.
Credits
Contributors
Som It Cooperatiu SCCL
Som Connexió SCCL
Maintainers
This module is maintained by Som It Cooperatiu SCCL.
Metadata
Release files for odoo-addon-setup-many2one-widget-open-tab 16.0.1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odoo_addon_setup_many2one_widget_open_tab-16.0.1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / odoo_addon_setup_many2one_widget_open_tab-16.0.1.0.0-py2.py3-none-any.whl
| Download URL | odoo_addon_setup_many2one_widget_open_tab-16.0.1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
65b49aa3f6f1bbecfc2569308677e6db09ffd29f171e8d248a052c535f1a9302
|
|
BLAKE2b-256 checksum How to use checksums |
a0a0bfecbd53b349007294dbd7f486f22f7ce3621af393eeedb70531c0b572a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Security for odoo-addon-setup-many2one-widget-open-tab 16.0.1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.