Skip to main content

Adds a many2one widget with a button to open the related record in a new browser tab

Project description

Beta License: AGPL-3

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

Authors

  • Som It Cooperatiu SCCL

  • Som Connexió SCCL

Contributors

  • Som It Cooperatiu SCCL

  • Som Connexió SCCL

Maintainers

This module is maintained by Som It Cooperatiu SCCL.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

File hashes

Hashes for odoo_addon_setup_many2one_widget_open_tab-16.0.1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 65b49aa3f6f1bbecfc2569308677e6db09ffd29f171e8d248a052c535f1a9302
MD5 b968741da32bf0cc553a50a2c3f0e06b
BLAKE2b-256 a0a0bfecbd53b349007294dbd7f486f22f7ce3621af393eeedb70531c0b572a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page