diff --git a/mis_builder_drilldown_new_window/README.rst b/mis_builder_drilldown_new_window/README.rst new file mode 100644 index 000000000..94d0b781b --- /dev/null +++ b/mis_builder_drilldown_new_window/README.rst @@ -0,0 +1,212 @@ +================================ +Mis Builder Drilldown New Window +================================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4945def167974542c35069fded28fb2b295031bccb99b38e9f416862c04d26f1 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmis--builder-lightgray.png?logo=github + :target: https://github.com/OCA/mis-builder/tree/16.0/mis_builder_drilldown_new_window + :alt: OCA/mis-builder +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/mis-builder-16-0/mis-builder-16-0-mis_builder_drilldown_new_window + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/mis-builder&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +[ This file must be max 2-3 paragraphs, and is required. + +The goal of this document is to explain quickly the features of this +module: “what” this module does and “what” it is for. ] + +Example: + +This module extends the functionality of ... to support ... and to allow +users to ... + +**Table of contents** + +.. contents:: + :local: + +Use Cases / Context +=================== + +[ This file is optional but strongly suggested to allow end-users to +evaluate the module's usefulness in their context. ] + +BUSINESS NEED: It should explain the “why” of the module: + +- what is the business requirement that generated the need to develop + this module +- in which context or use cases this module can be useful (practical + examples are welcome!). + +APPROACH: It could also explain the approach to address the mentioned +need. + +USEFUL INFORMATION: It can also inform on related modules: + +- modules it depends on and their features +- other modules that can work well together with this one +- suggested setups where the module is useful (eg: multicompany, + multi-website) + +Installation +============ + +[ This file must only be present if there are very specific installation +instructions, such as installing non-python dependencies. The audience +is systems administrators. ] + +To install this module, you need to: + +1. Do this ... + +Configuration +============= + +[ This file is not always required; it should explain **how to configure +the module before using it**; it is aimed at users with administration +privileges. + +Please be detailed on the path to configuration (eg: do you need to +activate developer mode?), describe step by step configurations and the +use of screenshots is strongly recommended.] + +To configure this module, you need to: + +- Go to *App* > Menu > Menu item +- Activate boolean… > save +- … + +Usage +===== + +[ This file is required and contains the instructions on **“how”** to +use the module for end-users. + +If the module does not have a visible impact on the user interface, just +add the following sentence: + + This module does not impact the user interface. + +If that’s not the case, please make sure that every usage step is +covered and remember that images speak more than words!] + +To use this module, you need to: + +- Go to *App* > Menu > Menu item + + *insert screenshot!* + +- In “Contact” form, add a value to field *xyz* > save + + *insert screenshot!* + +- The value of *xyz* is now displayed in the list view. + + *insert screenshot!* + +Known issues / Roadmap +====================== + +[ Enumerate known caveats and future potential improvements. It is +mostly intended for end-users, and can also help potential new +contributors discovering new features to implement. ] + +- ... + +Changelog +========= + +[ The change log. The goal of this file is to help readers understand +changes between version. The primary audience is end users and +integrators. Purely technical changes such as code refactoring must not +be mentioned here. + +This file may contain ONE level of section titles, underlined with the ~ +(tilde) character. Other section markers are forbidden and will likely +break the structure of the README.rst or other documents where this +fragment is included. ] + +11.0.x.y.z (YYYY-MM-DD) +----------------------- + +- [BREAKING] Breaking changes come first. + (`#70 `__) +- [ADD] New feature. (`#74 `__) +- [FIX] Correct this. (`#71 `__) + +11.0.x.y.z (YYYY-MM-DD) +----------------------- + +- ... + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ACSONE SA/NV + +Contributors +------------ + +- Firstname Lastname email.address@example.org (optional company + website url) +- Second Person second.person@example.org (optional company website + url) + +Other credits +------------- + +[ This file is optional and contains additional credits, other than +authors, contributors, and maintainers. ] + +The development of this module has been financially supported by: + +- Company 1 name +- Company 2 name + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/mis-builder `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mis_builder_drilldown_new_window/__init__.py b/mis_builder_drilldown_new_window/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/mis_builder_drilldown_new_window/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mis_builder_drilldown_new_window/__manifest__.py b/mis_builder_drilldown_new_window/__manifest__.py new file mode 100644 index 000000000..c02cbc683 --- /dev/null +++ b/mis_builder_drilldown_new_window/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2024 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Mis Builder Drilldown New Window", + "summary": """ + When drilling down on a cell inside a report, + open it in a new window instead of current window + to avoid reloading the report when going back + """, + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/mis-builder", + "depends": [ + "mis_builder", + ], + "data": [], + "demo": [], +} diff --git a/mis_builder_drilldown_new_window/models/__init__.py b/mis_builder_drilldown_new_window/models/__init__.py new file mode 100644 index 000000000..5f14fa3bb --- /dev/null +++ b/mis_builder_drilldown_new_window/models/__init__.py @@ -0,0 +1 @@ +from . import mis_report_instance diff --git a/mis_builder_drilldown_new_window/models/mis_report_instance.py b/mis_builder_drilldown_new_window/models/mis_report_instance.py new file mode 100644 index 000000000..e16371c44 --- /dev/null +++ b/mis_builder_drilldown_new_window/models/mis_report_instance.py @@ -0,0 +1,14 @@ +# Copyright 2024 ACSONE SA/NV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import models + + +class MisReportInstance(models.Model): + _inherit = "mis.report.instance" + + def drilldown(self, arg): + action = super().drilldown(arg) + if action and action.get("target"): + action["target"] = "new" + return action \ No newline at end of file diff --git a/mis_builder_drilldown_new_window/readme/CONTRIBUTORS.md b/mis_builder_drilldown_new_window/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..f5c6d366c --- /dev/null +++ b/mis_builder_drilldown_new_window/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Zina Rasoamanana diff --git a/mis_builder_drilldown_new_window/readme/CREDITS.md b/mis_builder_drilldown_new_window/readme/CREDITS.md new file mode 100644 index 000000000..c58020e1f --- /dev/null +++ b/mis_builder_drilldown_new_window/readme/CREDITS.md @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +- Acsone SA/NV diff --git a/mis_builder_drilldown_new_window/readme/DESCRIPTION.md b/mis_builder_drilldown_new_window/readme/DESCRIPTION.md new file mode 100644 index 000000000..a711ecc2c --- /dev/null +++ b/mis_builder_drilldown_new_window/readme/DESCRIPTION.md @@ -0,0 +1 @@ +When drilling down on a cell inside a report, open it in a new pop-up window instead of current window to avoid reloading the report when going back. diff --git a/mis_builder_drilldown_new_window/readme/newsfragments/.gitignore b/mis_builder_drilldown_new_window/readme/newsfragments/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/mis_builder_drilldown_new_window/static/description/icon.png b/mis_builder_drilldown_new_window/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mis_builder_drilldown_new_window/static/description/icon.png differ diff --git a/mis_builder_drilldown_new_window/static/description/index.html b/mis_builder_drilldown_new_window/static/description/index.html new file mode 100644 index 000000000..4280ac2e4 --- /dev/null +++ b/mis_builder_drilldown_new_window/static/description/index.html @@ -0,0 +1,557 @@ + + + + + + +Mis Builder Drilldown New Window + + + +
+

Mis Builder Drilldown New Window

+ + +

Beta License: AGPL-3 OCA/mis-builder Translate me on Weblate Try me on Runboat

+

[ This file must be max 2-3 paragraphs, and is required.

+

The goal of this document is to explain quickly the features of this +module: “what” this module does and “what” it is for. ]

+

Example:

+

This module extends the functionality of … to support … and to allow +users to …

+

Table of contents

+ +
+

Use Cases / Context

+

[ This file is optional but strongly suggested to allow end-users to +evaluate the module’s usefulness in their context. ]

+

BUSINESS NEED: It should explain the “why” of the module:

+
    +
  • what is the business requirement that generated the need to develop +this module
  • +
  • in which context or use cases this module can be useful (practical +examples are welcome!).
  • +
+

APPROACH: It could also explain the approach to address the mentioned +need.

+

USEFUL INFORMATION: It can also inform on related modules:

+
    +
  • modules it depends on and their features
  • +
  • other modules that can work well together with this one
  • +
  • suggested setups where the module is useful (eg: multicompany, +multi-website)
  • +
+
+
+

Installation

+

[ This file must only be present if there are very specific installation +instructions, such as installing non-python dependencies. The audience +is systems administrators. ]

+

To install this module, you need to:

+
    +
  1. Do this …
  2. +
+
+
+

Configuration

+

[ This file is not always required; it should explain how to configure +the module before using it; it is aimed at users with administration +privileges.

+

Please be detailed on the path to configuration (eg: do you need to +activate developer mode?), describe step by step configurations and the +use of screenshots is strongly recommended.]

+

To configure this module, you need to:

+
    +
  • Go to App > Menu > Menu item
  • +
  • Activate boolean… > save
  • +
  • +
+
+
+

Usage

+

[ This file is required and contains the instructions on “how” to +use the module for end-users.

+

If the module does not have a visible impact on the user interface, just +add the following sentence:

+
+This module does not impact the user interface.
+

If that’s not the case, please make sure that every usage step is +covered and remember that images speak more than words!]

+

To use this module, you need to:

+
    +
  • Go to App > Menu > Menu item

    +

    insert screenshot!

    +
  • +
  • In “Contact” form, add a value to field xyz > save

    +

    insert screenshot!

    +
  • +
  • The value of xyz is now displayed in the list view.

    +

    insert screenshot!

    +
  • +
+
+
+

Known issues / Roadmap

+

[ Enumerate known caveats and future potential improvements. It is +mostly intended for end-users, and can also help potential new +contributors discovering new features to implement. ]

+
    +
  • +
+
+
+

Changelog

+

[ The change log. The goal of this file is to help readers understand +changes between version. The primary audience is end users and +integrators. Purely technical changes such as code refactoring must not +be mentioned here.

+

This file may contain ONE level of section titles, underlined with the ~ +(tilde) character. Other section markers are forbidden and will likely +break the structure of the README.rst or other documents where this +fragment is included. ]

+
+

11.0.x.y.z (YYYY-MM-DD)

+
    +
  • [BREAKING] Breaking changes come first. +(#70)
  • +
  • [ADD] New feature. (#74)
  • +
  • [FIX] Correct this. (#71)
  • +
+
+ +
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

[ This file is optional and contains additional credits, other than +authors, contributors, and maintainers. ]

+

The development of this module has been financially supported by:

+
    +
  • Company 1 name
  • +
  • Company 2 name
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/mis-builder project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/setup/mis_builder_drilldown_new_window/odoo/addons/mis_builder_drilldown_new_window b/setup/mis_builder_drilldown_new_window/odoo/addons/mis_builder_drilldown_new_window new file mode 120000 index 000000000..cf07465f1 --- /dev/null +++ b/setup/mis_builder_drilldown_new_window/odoo/addons/mis_builder_drilldown_new_window @@ -0,0 +1 @@ +../../../../mis_builder_drilldown_new_window \ No newline at end of file diff --git a/setup/mis_builder_drilldown_new_window/setup.py b/setup/mis_builder_drilldown_new_window/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/mis_builder_drilldown_new_window/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)