diff --git a/web_save_discard_button/README.md b/web_save_discard_button/README.md new file mode 100644 index 000000000..bb777a91e --- /dev/null +++ b/web_save_discard_button/README.md @@ -0,0 +1 @@ +# Save Discard Button diff --git a/web_save_discard_button/README.rst b/web_save_discard_button/README.rst new file mode 100644 index 000000000..0fa2750ef --- /dev/null +++ b/web_save_discard_button/README.rst @@ -0,0 +1,92 @@ +====================== +Save & Discard Buttons +====================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:dd9062d415006fd0e96b895dd0d272f8b09c81b737731e6fc7e67cf1aab60485 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/17.0/web_save_discard_button + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_save_discard_button + :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/web&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Change Save & Discard Button style. + +|image| + +.. |image| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_save_discard_button/static/description/save_button.png + +**Table of contents** + +.. contents:: + :local: + +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 +------- + +* Synconics Technologies Pvt. Ltd. + +Contributors +------------ + +- Synconics Technologies Pvt. Ltd. (https://www.synconics.com) + +- Codeforward (https://www.codeforward.nl/): + + - Joep Sanders + +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. + +.. |maintainer-synconics| image:: https://github.com/synconics.png?size=40px + :target: https://github.com/synconics + :alt: synconics + +Current `maintainer `__: + +|maintainer-synconics| + +This module is part of the `OCA/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_save_discard_button/__init__.py b/web_save_discard_button/__init__.py new file mode 100644 index 000000000..c7fbf8f4b --- /dev/null +++ b/web_save_discard_button/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2023-TODAY Synconics Technologies Pvt. Ltd. (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/web_save_discard_button/__manifest__.py b/web_save_discard_button/__manifest__.py new file mode 100644 index 000000000..aadf47e4d --- /dev/null +++ b/web_save_discard_button/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright (C) 2023-TODAY Synconics Technologies Pvt. Ltd. (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Save & Discard Buttons", + "version": "17.0.1.0.0", + "summary": "Save & Discard Buttons", + "license": "AGPL-3", + "category": "Tools", + "author": "Synconics Technologies Pvt. Ltd., Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", + "maintainers": ["synconics"], + "depends": ["web"], + "data": [], + "assets": { + "web.assets_backend": [ + "web_save_discard_button/static/src/xml/template.xml", + ], + }, +} diff --git a/web_save_discard_button/i18n/es.po b/web_save_discard_button/i18n/es.po new file mode 100644 index 000000000..63514c162 --- /dev/null +++ b/web_save_discard_button/i18n/es.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_save_discard_button +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-10-08 23:01+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Discard" +msgstr "Descartar" + +#. module: web_save_discard_button +#: model:ir.model,name:web_save_discard_button.model_ir_http +msgid "HTTP Routing" +msgstr "Enrutamiento HTTP" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Save" +msgstr "Guardar" diff --git a/web_save_discard_button/i18n/fr.po b/web_save_discard_button/i18n/fr.po new file mode 100644 index 000000000..77f7e0ef1 --- /dev/null +++ b/web_save_discard_button/i18n/fr.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_save_discard_button +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-08-18 10:08+0000\n" +"PO-Revision-Date: 2023-08-18 10:08+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Discard" +msgstr "Ignorer" + +#. module: web_save_discard_button +#: model:ir.model,name:web_save_discard_button.model_ir_http +msgid "HTTP Routing" +msgstr "Routage HTTP" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Save" +msgstr "Sauvegarder" diff --git a/web_save_discard_button/i18n/it.po b/web_save_discard_button/i18n/it.po new file mode 100644 index 000000000..c47919d0a --- /dev/null +++ b/web_save_discard_button/i18n/it.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_save_discard_button +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-11-27 11:34+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Discard" +msgstr "Abbandona" + +#. module: web_save_discard_button +#: model:ir.model,name:web_save_discard_button.model_ir_http +msgid "HTTP Routing" +msgstr "Instradamento HTTP" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Save" +msgstr "Salva" diff --git a/web_save_discard_button/i18n/web_save_discard_button.pot b/web_save_discard_button/i18n/web_save_discard_button.pot new file mode 100644 index 000000000..5e0413a3a --- /dev/null +++ b/web_save_discard_button/i18n/web_save_discard_button.pot @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_save_discard_button +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Discard" +msgstr "" + +#. module: web_save_discard_button +#: model:ir.model,name:web_save_discard_button.model_ir_http +msgid "HTTP Routing" +msgstr "" + +#. module: web_save_discard_button +#. odoo-javascript +#: code:addons/web_save_discard_button/static/src/xml/template.xml:0 +#, python-format +msgid "Save" +msgstr "" diff --git a/web_save_discard_button/models/__init__.py b/web_save_discard_button/models/__init__.py new file mode 100644 index 000000000..83cfd7c9d --- /dev/null +++ b/web_save_discard_button/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2023-TODAY Synconics Technologies Pvt. Ltd. (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import ir_http diff --git a/web_save_discard_button/models/ir_http.py b/web_save_discard_button/models/ir_http.py new file mode 100644 index 000000000..3ba289134 --- /dev/null +++ b/web_save_discard_button/models/ir_http.py @@ -0,0 +1,13 @@ +# Copyright (C) 2023-TODAY Synconics Technologies Pvt. Ltd. (). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class IrHttp(models.AbstractModel): + _inherit = "ir.http" + + @classmethod + def _get_translation_frontend_modules_name(cls): + modules = super()._get_translation_frontend_modules_name() + return modules + ["web_save_discard_button"] diff --git a/web_save_discard_button/pyproject.toml b/web_save_discard_button/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/web_save_discard_button/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_save_discard_button/readme/CONTRIBUTORS.md b/web_save_discard_button/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..f5a9c216d --- /dev/null +++ b/web_save_discard_button/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- Synconics Technologies Pvt. Ltd. (https://www.synconics.com) + +- Codeforward (https://www.codeforward.nl/): + > - Joep Sanders \<\> diff --git a/web_save_discard_button/readme/DESCRIPTION.md b/web_save_discard_button/readme/DESCRIPTION.md new file mode 100644 index 000000000..215cc92a0 --- /dev/null +++ b/web_save_discard_button/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +Change Save & Discard Button style. + +![image](../static/description/save_button.png) diff --git a/web_save_discard_button/static/description/icon.png b/web_save_discard_button/static/description/icon.png new file mode 100644 index 000000000..c1c901116 Binary files /dev/null and b/web_save_discard_button/static/description/icon.png differ diff --git a/web_save_discard_button/static/description/index.html b/web_save_discard_button/static/description/index.html new file mode 100644 index 000000000..af4439580 --- /dev/null +++ b/web_save_discard_button/static/description/index.html @@ -0,0 +1,434 @@ + + + + + +Save & Discard Buttons + + + +
+

Save & Discard Buttons

+ + +

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

+

Change Save & Discard Button style.

+

image

+

Table of contents

+ +
+

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

+
    +
  • Synconics Technologies Pvt. Ltd.
  • +
+
+
+

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.

+

Current maintainer:

+

synconics

+

This module is part of the OCA/web project on GitHub.

+

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

+
+
+
+ + diff --git a/web_save_discard_button/static/description/save_button.png b/web_save_discard_button/static/description/save_button.png new file mode 100644 index 000000000..1c3f98ae6 Binary files /dev/null and b/web_save_discard_button/static/description/save_button.png differ diff --git a/web_save_discard_button/static/src/xml/template.xml b/web_save_discard_button/static/src/xml/template.xml new file mode 100644 index 000000000..85ea26bc3 --- /dev/null +++ b/web_save_discard_button/static/src/xml/template.xml @@ -0,0 +1,25 @@ + + + + + + + + + o_form_button_save btn btn-primary + + + Save + + + Discard + + +