Adds a many2one widget with a button to open the related record in a new browser tab
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_setup_many2one_widget_open_tab-16.0.1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: odoo_addon_setup_many2one_widget_open_tab-16.0.1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65b49aa3f6f1bbecfc2569308677e6db09ffd29f171e8d248a052c535f1a9302
|
|
| MD5 |
b968741da32bf0cc553a50a2c3f0e06b
|
|
| BLAKE2b-256 |
a0a0bfecbd53b349007294dbd7f486f22f7ce3621af393eeedb70531c0b572a1
|