diff --git a/base_user_signature/README.rst b/base_user_signature/README.rst new file mode 100644 index 000000000..988dc6346 --- /dev/null +++ b/base_user_signature/README.rst @@ -0,0 +1,94 @@ +=================== +Base User Signature +=================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |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%2Fsocial-lightgray.png?logo=github + :target: https://github.com/OCA/social/tree/15.0/base_user_signature + :alt: OCA/social +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/social-15-0/social-15-0-base_user_signature + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/205/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module provides a new field on users to store the user's digital signature + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +#. Go to *Settings > Users > Users*. +#. Open one of the existing users. +#. You can set a digital signature for it on the field "Signature". + +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 +~~~~~~~ + +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Jay Vora +* Lorenzo Battistini +* Pedro M. Baeza +* Vicent Cubells +* Mayank Gosai +* Maxime Chambreuil +* Italo LOPES + +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-imlopes| image:: https://github.com/imlopes.png?size=40px + :target: https://github.com/imlopes + :alt: imlopes + +Current `maintainer `__: + +|maintainer-imlopes| + +This module is part of the `OCA/social `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_user_signature/__init__.py b/base_user_signature/__init__.py new file mode 100644 index 000000000..063c02516 --- /dev/null +++ b/base_user_signature/__init__.py @@ -0,0 +1,5 @@ +# Copyright 2004-2010 OpenERP SA () +# Copyright 2011-2015 Serpent Consulting Services Pvt. Ltd. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/base_user_signature/__manifest__.py b/base_user_signature/__manifest__.py new file mode 100644 index 000000000..25ea52481 --- /dev/null +++ b/base_user_signature/__manifest__.py @@ -0,0 +1,24 @@ +# Copyright 2004-2010 OpenERP SA () +# Copyright 2011-2015 Serpent Consulting Services Pvt. Ltd. +# Copyright 2017 Tecnativa - Vicent Cubells +# Copyright 2019 Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Base User Signature", + "version": "15.0.1.0.0", + "author": "Camptocamp," "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/social", + "license": "AGPL-3", + "category": "Social", + "depends": [ + "mail", + "web", + ], + "data": [ + "views/res_users_view.xml", + ], + "installable": True, + "development_status": "Production/Stable", + "maintainers": ["imlopes"], +} diff --git a/base_user_signature/i18n/base_user_signature.pot b/base_user_signature/i18n/base_user_signature.pot new file mode 100644 index 000000000..4a80314a6 --- /dev/null +++ b/base_user_signature/i18n/base_user_signature.pot @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_user_signature +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-09-07 10:48+0000\n" +"PO-Revision-Date: 2022-09-07 10:48+0000\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: base_user_signature +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_form +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_preferences_form +msgid "Clear" +msgstr "" + +#. module: base_user_signature +#: model:ir.model.fields,field_description:base_user_signature.field_res_users__digital_signature +msgid "Digital Signature" +msgstr "" + +#. module: base_user_signature +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_form +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_preferences_form +msgid "Signature" +msgstr "" + + diff --git a/base_user_signature/i18n/fr.po b/base_user_signature/i18n/fr.po new file mode 100644 index 000000000..647da65cc --- /dev/null +++ b/base_user_signature/i18n/fr.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_user_signature +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-09-07 10:48+0000\n" +"PO-Revision-Date: 2022-09-07 10:48+0000\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: base_user_signature +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_form +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_preferences_form +msgid "Clear" +msgstr "Effacer" + +#. module: base_user_signature +#: model:ir.model.fields,field_description:base_user_signature.field_res_users__digital_signature +msgid "Digital Signature" +msgstr "Signature numérique" + +#. module: base_user_signature +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_form +#: model_terms:ir.ui.view,arch_db:base_user_signature.inherited_res_users_preferences_form +msgid "Signature" +msgstr "Signature" diff --git a/base_user_signature/models/__init__.py b/base_user_signature/models/__init__.py new file mode 100644 index 000000000..883516533 --- /dev/null +++ b/base_user_signature/models/__init__.py @@ -0,0 +1 @@ +from . import res_users diff --git a/base_user_signature/models/res_users.py b/base_user_signature/models/res_users.py new file mode 100644 index 000000000..b8ddef0d8 --- /dev/null +++ b/base_user_signature/models/res_users.py @@ -0,0 +1,28 @@ +# Copyright 2004-2010 OpenERP SA () +# Copyright 2011-2015 Serpent Consulting Services Pvt. Ltd. +# Copyright 2017 Tecnativa - Vicent Cubells +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + + +from odoo import fields, models + + +class ResUsers(models.Model): + _inherit = "res.users" + + digital_signature = fields.Image( + copy=False, + max_width=1024, + max_height=1024, + ) + + def clear_digital_signature(self): + self.digital_signature = False + + @property + def SELF_READABLE_FIELDS(self): + return super().SELF_READABLE_FIELDS + ["digital_signature"] + + @property + def SELF_WRITEABLE_FIELDS(self): + return super().SELF_WRITEABLE_FIELDS + ["digital_signature"] diff --git a/base_user_signature/readme/CONTRIBUTORS.rst b/base_user_signature/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..e8b219cb1 --- /dev/null +++ b/base_user_signature/readme/CONTRIBUTORS.rst @@ -0,0 +1,7 @@ +* Jay Vora +* Lorenzo Battistini +* Pedro M. Baeza +* Vicent Cubells +* Mayank Gosai +* Maxime Chambreuil +* Italo LOPES diff --git a/base_user_signature/readme/DESCRIPTION.rst b/base_user_signature/readme/DESCRIPTION.rst new file mode 100644 index 000000000..16e006329 --- /dev/null +++ b/base_user_signature/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module provides a new field on users to store the user's digital signature diff --git a/base_user_signature/readme/USAGE.rst b/base_user_signature/readme/USAGE.rst new file mode 100644 index 000000000..1533be616 --- /dev/null +++ b/base_user_signature/readme/USAGE.rst @@ -0,0 +1,3 @@ +#. Go to *Settings > Users > Users*. +#. Open one of the existing users. +#. You can set a digital signature for it on the field "Signature". diff --git a/base_user_signature/static/description/index.html b/base_user_signature/static/description/index.html new file mode 100644 index 000000000..dfc9395ed --- /dev/null +++ b/base_user_signature/static/description/index.html @@ -0,0 +1,436 @@ + + + + + + +Base User Signature + + + +
+

Base User Signature

+ + +

Production/Stable License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

+

This module provides a new field on users to store the user’s digital signature

+

Table of contents

+ +
+

Usage

+
    +
  1. Go to Settings > Users > Users.
  2. +
  3. Open one of the existing users.
  4. +
  5. You can set a digital signature for it on the field “Signature”.
  6. +
+
+
+

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

+
    +
  • Camptocamp
  • +
+
+
+

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:

+

imlopes

+

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

+

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

+
+
+
+ + diff --git a/base_user_signature/views/res_users_view.xml b/base_user_signature/views/res_users_view.xml new file mode 100644 index 000000000..dcef6ba1a --- /dev/null +++ b/base_user_signature/views/res_users_view.xml @@ -0,0 +1,54 @@ + + + + + inherited.res.users.form + res.users + + + + + + + + + inherited.res.users.preferences.form + res.users + + + + + + + + diff --git a/setup/base_user_signature/odoo/addons/base_user_signature b/setup/base_user_signature/odoo/addons/base_user_signature new file mode 120000 index 000000000..c80fe9c38 --- /dev/null +++ b/setup/base_user_signature/odoo/addons/base_user_signature @@ -0,0 +1 @@ +../../../../base_user_signature \ No newline at end of file diff --git a/setup/base_user_signature/setup.py b/setup/base_user_signature/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/base_user_signature/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)