Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] base_user_signature: Migration to 18.0 #1562

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions base_user_signature/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
===================
Base User Signature
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bb768206e78f6c5903b31bf23452d9342f23d85833b10a8266df050e9096bcee
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.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-18-0/social-18-0-base_user_signature
: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/social&target_branch=18.0
:alt: Try me on Runboat

|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
=====

1. Go to *Settings > Users & Companies > Users*.
2. Open one of the existing users.
3. You can set a digital signature for it on the field "Signature".

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/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 <https://github.com/OCA/social/issues/new?body=module:%20base_user_signature%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Camptocamp

Contributors
------------

- Jay Vora <[email protected]>
- Lorenzo Battistini <[email protected]>
- Pedro M. Baeza <[email protected]>
- Vicent Cubells <[email protected]>
- Mayank Gosai <[email protected]>
- Maxime Chambreuil <[email protected]>
- Italo LOPES <[email protected]>
- Saran Lim. <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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 <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-imlopes|

This module is part of the `OCA/social <https://github.com/OCA/social/tree/18.0/base_user_signature>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions base_user_signature/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2004-2010 OpenERP SA (<http://www.openerp.com>)
# Copyright 2011-2015 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
24 changes: 24 additions & 0 deletions base_user_signature/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2004-2010 OpenERP SA (<http://www.openerp.com>)
# 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": "18.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"],
}
36 changes: 36 additions & 0 deletions base_user_signature/i18n/base_user_signature.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_user_signature
#
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: 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 ""

#. module: base_user_signature
#: model:ir.model,name:base_user_signature.model_res_users
msgid "User"
msgstr ""
39 changes: 39 additions & 0 deletions base_user_signature/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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"
"Language: \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"

#. module: base_user_signature
#: model:ir.model,name:base_user_signature.model_res_users
msgid "User"
msgstr ""
39 changes: 39 additions & 0 deletions base_user_signature/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_user_signature
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-06-24 11:57+0000\n"
"Last-Translator: mymage <[email protected]>\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: 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 "Pulisci"

#. module: base_user_signature
#: model:ir.model.fields,field_description:base_user_signature.field_res_users__digital_signature
msgid "Digital Signature"
msgstr "Firma digitale"

#. 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 "Firma"

#. module: base_user_signature
#: model:ir.model,name:base_user_signature.model_res_users
msgid "User"
msgstr "Utente"
1 change: 1 addition & 0 deletions base_user_signature/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_users
28 changes: 28 additions & 0 deletions base_user_signature/models/res_users.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2004-2010 OpenERP SA (<http://www.openerp.com>)
# 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"]
3 changes: 3 additions & 0 deletions base_user_signature/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
10 changes: 10 additions & 0 deletions base_user_signature/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- Jay Vora \<<[email protected]>\>
- Lorenzo Battistini \<<[email protected]>\>
- Pedro M. Baeza \<<[email protected]>\>
- Vicent Cubells \<<[email protected]>\>
- Mayank Gosai \<<[email protected]>\>
- Maxime Chambreuil \<<[email protected]>\>
- Italo LOPES \<<[email protected]>\>
- Saran Lim. \<<[email protected]>\>
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
- Bhavesh Heliconia
2 changes: 2 additions & 0 deletions base_user_signature/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module provides a new field on users to store the user's digital
signature
3 changes: 3 additions & 0 deletions base_user_signature/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1. Go to *Settings \> Users & Companies \> Users*.
2. Open one of the existing users.
3. You can set a digital signature for it on the field "Signature".
Binary file added base_user_signature/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading