diff --git a/sign_oca/README.rst b/sign_oca/README.rst index d318a0fc..ff0cb297 100644 --- a/sign_oca/README.rst +++ b/sign_oca/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ======== Sign Oca ======== @@ -17,7 +13,7 @@ Sign Oca .. |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/license-AGPL--3-blue.png +.. |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%2Fsign-lightgray.png?logo=github diff --git a/sign_oca/__manifest__.py b/sign_oca/__manifest__.py index 4d14c8fc..92d202df 100644 --- a/sign_oca/__manifest__.py +++ b/sign_oca/__manifest__.py @@ -18,6 +18,7 @@ "data/ir_sequence_data.xml", "wizards/sign_oca_template_generate.xml", "wizards/sign_oca_template_generate_multi.xml", + "wizards/share.xml", "views/res_partner_views.xml", "views/sign_oca_request_log.xml", "views/sign_oca_request.xml", diff --git a/sign_oca/models/sign_oca_request.py b/sign_oca/models/sign_oca_request.py index 26c3c875..94f19f51 100644 --- a/sign_oca/models/sign_oca_request.py +++ b/sign_oca/models/sign_oca_request.py @@ -307,6 +307,16 @@ def action_send_signed_request(self): attachment_ids=attachments.ids, ) + def action_open_share_wizard(self): + return { + "name": "Share Sign Request", + "type": "ir.actions.act_window", + "res_model": "sign.request.share.wizard", + "view_mode": "form", + "target": "new", + "context": {"default_request_id": self.id}, + } + def _check_signed(self): self.ensure_one() if self.state != "0_sent": diff --git a/sign_oca/security/ir.model.access.csv b/sign_oca/security/ir.model.access.csv index a7530d69..fd04a128 100644 --- a/sign_oca/security/ir.model.access.csv +++ b/sign_oca/security/ir.model.access.csv @@ -17,3 +17,4 @@ edit_sign_generate_signer,edit_sign_generate_signer,model_sign_oca_template_gene edit_sign_generate_multi,edit_sign_generate_multi,model_sign_oca_template_generate_multi,sign_oca_group_user,1,1,1,1 access_sign_request_log,access_sign_request_log,model_sign_oca_request_log,sign_oca_group_user,1,0,0,0 access_sign_request_log_admin,access_sign_request_log_admin,model_sign_oca_request_log,sign_oca_group_admin,1,1,1,1 +access_sign_request_share_wizard,access_sign_request_share_wizard,model_sign_request_share_wizard,sign_oca_group_admin,1,1,1,1 diff --git a/sign_oca/static/description/index.html b/sign_oca/static/description/index.html index b0f76ce9..b25b0f15 100644 --- a/sign_oca/static/description/index.html +++ b/sign_oca/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Sign Oca -
+
+

Sign Oca

- - -Odoo Community Association - -
-

Sign Oca

-

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

+

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

This module allows to create documents for signature inside Odoo using OWL.

Table of contents

@@ -403,7 +398,7 @@

Sign Oca

-

Configuration

+

Configuration

There is a wizard (sign.oca.template.generate.multi) that can be used for any model needed. If there is a template without a linked model or linked to a model (res.partner for example) an action will be @@ -411,9 +406,9 @@

Configuration

Sign permissions).

-

Usage

+

Usage

-

Creation of templates

+

Creation of templates

-

Sign role

+

Sign role

  • Access Sign / Settings / Roles
  • Create a new role (Equipment employee for example)
  • @@ -436,7 +431,7 @@

    Sign role

-

Sign a document from template

+

Sign a document from template

-

Sign a pending document

+

Sign a pending document

  • Go to the pencil icon in the upper right corner (systray) of the sign request to access the pending signatures.
  • @@ -464,7 +459,7 @@

    Sign a pending document

-

Sign from template

+

Sign from template

  • Go to any list view or form view (except sign.oca models), e.g.: Contacts
  • @@ -482,9 +477,9 @@

    Sign from template

-

Known issues / Roadmap

+

Known issues / Roadmap

-

Tasks

+

Tasks

  • Ensure that the signature is inalterable. Maybe we might need to use some tools like endevise or pyHanko with a certificate. Signer can be @@ -493,7 +488,7 @@

    Tasks

-

Bug Tracker

+

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 @@ -501,15 +496,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Dixmit
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -538,6 +533,5 @@

Maintainers

-
diff --git a/sign_oca/views/sign_oca_request.xml b/sign_oca/views/sign_oca_request.xml index 65833c82..09f4a3b4 100644 --- a/sign_oca/views/sign_oca_request.xml +++ b/sign_oca/views/sign_oca_request.xml @@ -9,6 +9,13 @@
+