diff --git a/attachment_action/README.rst b/attachment_action/README.rst new file mode 100644 index 00000000..28fdb36c --- /dev/null +++ b/attachment_action/README.rst @@ -0,0 +1,78 @@ +================================ +Container for attachment actions +================================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fknowledge-lightgray.png?logo=github + :target: https://github.com/OCA/knowledge/tree/10.0/attachment_action + :alt: OCA/knowledge +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/knowledge-10-0/knowledge-10-0-attachment_action + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/118/10.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module was written to provide a container for other modules to add buttons for actions on attachments. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +This module doesn't do anything useful on its own, it's meant to be used by other developers. + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Therp BV + +Contributors +~~~~~~~~~~~~ + +* Holger Brunn + +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/knowledge `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/attachment_action/__init__.py b/attachment_action/__init__.py new file mode 100644 index 00000000..8c501711 --- /dev/null +++ b/attachment_action/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# Copyright 2018 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/attachment_action/__manifest__.py b/attachment_action/__manifest__.py new file mode 100644 index 00000000..fbfa3e87 --- /dev/null +++ b/attachment_action/__manifest__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Copyright 2018 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Container for attachment actions", + "version": "10.0.1.0.0", + "author": "Therp BV,Odoo Community Association (OCA)", + "license": "AGPL-3", + "category": "Hidden/Dependency", + "summary": "Base for addons adding buttons to attachments", + "depends": [ + 'web', + ], + "data": [ + 'views/templates.xml', + ], + "qweb": [ + 'static/src/xml/attachment_action.xml', + ], +} diff --git a/attachment_action/readme/CONTRIBUTORS.rst b/attachment_action/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..b120a956 --- /dev/null +++ b/attachment_action/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Holger Brunn diff --git a/attachment_action/readme/DESCRIPTION.rst b/attachment_action/readme/DESCRIPTION.rst new file mode 100644 index 00000000..47cdcb7b --- /dev/null +++ b/attachment_action/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module was written to provide a container for other modules to add buttons for actions on attachments. diff --git a/attachment_action/readme/USAGE.rst b/attachment_action/readme/USAGE.rst new file mode 100644 index 00000000..238c0f82 --- /dev/null +++ b/attachment_action/readme/USAGE.rst @@ -0,0 +1 @@ +This module doesn't do anything useful on its own, it's meant to be used by other developers. diff --git a/attachment_action/static/description/icon.png b/attachment_action/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/attachment_action/static/description/icon.png differ diff --git a/attachment_action/static/description/index.html b/attachment_action/static/description/index.html new file mode 100644 index 00000000..b40beeb0 --- /dev/null +++ b/attachment_action/static/description/index.html @@ -0,0 +1,402 @@ + + + + + + +Container for attachment actions + + + +
+

Container for attachment actions

+ + +

Beta License: AGPL-3 OCA/knowledge Translate me on Weblate Try me on Runbot

+

This module was written to provide a container for other modules to add buttons for actions on attachments.

+

Table of contents

+ +
+

Usage

+

This module doesn’t do anything useful on its own, it’s meant to be used by other developers.

+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
+
+
+

Contributors

+ +
+
+

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/knowledge project on GitHub.

+

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

+
+
+
+ + diff --git a/attachment_action/static/src/css/attachment_action.css b/attachment_action/static/src/css/attachment_action.css new file mode 100644 index 00000000..9df4a5a0 --- /dev/null +++ b/attachment_action/static/src/css/attachment_action.css @@ -0,0 +1,21 @@ +.o_control_panel .o_cp_sidebar .o_sidebar_delete_attachment { + position: initial; + top: auto; + right: auto; +} +.o_control_panel .o_cp_sidebar .o_sidebar_attachment_action { + padding: 0px; + position: absolute; + top: 5px; + bottom: 5px; + right: 10px; + display: flex; + visibility: hidden; +} +.o_control_panel .o_cp_sidebar li:hover .o_sidebar_attachment_action { + visibility: visible; + background-color: inherit; +} +.o_control_panel .o_cp_sidebar .o_sidebar_attachment_action > span { + margin-left: 5px; +} diff --git a/attachment_action/static/src/xml/attachment_action.xml b/attachment_action/static/src/xml/attachment_action.xml new file mode 100644 index 00000000..27669f72 --- /dev/null +++ b/attachment_action/static/src/xml/attachment_action.xml @@ -0,0 +1,11 @@ + + + + + + + + jQuery(this).appendTo(this.siblings('.o_sidebar_attachment_action')); + + + diff --git a/attachment_action/views/templates.xml b/attachment_action/views/templates.xml new file mode 100644 index 00000000..b660899c --- /dev/null +++ b/attachment_action/views/templates.xml @@ -0,0 +1,10 @@ + + + + + +