Skip to content

Commit 46e7977

Browse files
committed
Merge PR #121 into 18.0
Signed-off-by pedrobaeza
2 parents 3c94e01 + 12b2d3f commit 46e7977

File tree

7 files changed

+392
-29
lines changed

7 files changed

+392
-29
lines changed

sign_oca/README.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
========
62
Sign Oca
73
========
@@ -17,7 +13,7 @@ Sign Oca
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsign-lightgray.png?logo=github

sign_oca/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"sign_oca/static/src/components/sign_oca_pdf_portal/sign_oca_pdf_portal.xml",
8080
"sign_oca/static/src/elements/elements.xml",
8181
"sign_oca/static/src/scss/sign_oca.scss",
82+
"sign_oca/static/src/components/sign_oca_pdf_portal/sign_oca_navigator.esm.js",
8283
"sign_oca/static/src/components/sign_oca_pdf_common/sign_oca_pdf_common.esm.js",
8384
"sign_oca/static/src/elements/text.esm.js",
8485
"sign_oca/static/src/elements/signature.esm.js",

sign_oca/static/description/index.html

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>Sign Oca</title>
77
<style type="text/css">
88

99
/*
@@ -360,21 +360,16 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="sign-oca">
364+
<h1 class="title">Sign Oca</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="sign-oca">
370-
<h1>Sign Oca</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:3b41934ccc7d47f502f3bfa9a5da3a22009d13d70b2cc683de2d4511210629ee
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sign/tree/18.0/sign_oca"><img alt="OCA/sign" src="https://img.shields.io/badge/github-OCA%2Fsign-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sign-18-0/sign-18-0-sign_oca"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sign&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sign/tree/18.0/sign_oca"><img alt="OCA/sign" src="https://img.shields.io/badge/github-OCA%2Fsign-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sign-18-0/sign-18-0-sign_oca"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sign&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378373
<p>This module allows to create documents for signature inside Odoo using
379374
OWL.</p>
380375
<p><strong>Table of contents</strong></p>
@@ -403,17 +398,17 @@ <h1>Sign Oca</h1>
403398
</ul>
404399
</div>
405400
<div class="section" id="configuration">
406-
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
401+
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
407402
<p>There is a wizard (sign.oca.template.generate.multi) that can be used
408403
for any model needed. If there is a template without a linked model or
409404
linked to a model (res.partner for example) an action will be
410405
automatically displayed in the tree and form view (only for users with
411406
Sign permissions).</p>
412407
</div>
413408
<div class="section" id="usage">
414-
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
409+
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
415410
<div class="section" id="creation-of-templates">
416-
<h3><a class="toc-backref" href="#toc-entry-3">Creation of templates</a></h3>
411+
<h2><a class="toc-backref" href="#toc-entry-3">Creation of templates</a></h2>
417412
<ul class="simple">
418413
<li>Access Sign / Templates</li>
419414
<li>Create a new template</li>
@@ -425,7 +420,7 @@ <h3><a class="toc-backref" href="#toc-entry-3">Creation of templates</a></h3>
425420
</ul>
426421
</div>
427422
<div class="section" id="sign-role">
428-
<h3><a class="toc-backref" href="#toc-entry-4">Sign role</a></h3>
423+
<h2><a class="toc-backref" href="#toc-entry-4">Sign role</a></h2>
429424
<ul class="simple">
430425
<li>Access Sign / Settings / Roles</li>
431426
<li>Create a new role (Equipment employee for example)</li>
@@ -436,7 +431,7 @@ <h3><a class="toc-backref" href="#toc-entry-4">Sign role</a></h3>
436431
</ul>
437432
</div>
438433
<div class="section" id="sign-a-document-from-template">
439-
<h3><a class="toc-backref" href="#toc-entry-5">Sign a document from template</a></h3>
434+
<h2><a class="toc-backref" href="#toc-entry-5">Sign a document from template</a></h2>
440435
<ul class="simple">
441436
<li>Access Sign / Templates</li>
442437
<li>Press the Sign button from a template</li>
@@ -451,7 +446,7 @@ <h3><a class="toc-backref" href="#toc-entry-5">Sign a document from template</a>
451446
</ul>
452447
</div>
453448
<div class="section" id="sign-a-pending-document">
454-
<h3><a class="toc-backref" href="#toc-entry-6">Sign a pending document</a></h3>
449+
<h2><a class="toc-backref" href="#toc-entry-6">Sign a pending document</a></h2>
455450
<ul class="simple">
456451
<li>Go to the pencil icon in the upper right corner (systray) of the sign
457452
request to access the pending signatures.</li>
@@ -464,7 +459,7 @@ <h3><a class="toc-backref" href="#toc-entry-6">Sign a pending document</a></h3>
464459
</ul>
465460
</div>
466461
<div class="section" id="sign-from-template">
467-
<h3><a class="toc-backref" href="#toc-entry-7">Sign from template</a></h3>
462+
<h2><a class="toc-backref" href="#toc-entry-7">Sign from template</a></h2>
468463
<ul class="simple">
469464
<li>Go to any list view or form view (except sign.oca models), e.g.:
470465
Contacts</li>
@@ -482,9 +477,9 @@ <h3><a class="toc-backref" href="#toc-entry-7">Sign from template</a></h3>
482477
</div>
483478
</div>
484479
<div class="section" id="known-issues-roadmap">
485-
<h2><a class="toc-backref" href="#toc-entry-8">Known issues / Roadmap</a></h2>
480+
<h1><a class="toc-backref" href="#toc-entry-8">Known issues / Roadmap</a></h1>
486481
<div class="section" id="tasks">
487-
<h3><a class="toc-backref" href="#toc-entry-9">Tasks</a></h3>
482+
<h2><a class="toc-backref" href="#toc-entry-9">Tasks</a></h2>
488483
<ul class="simple">
489484
<li>Ensure that the signature is inalterable. Maybe we might need to use
490485
some tools like endevise or pyHanko with a certificate. Signer can be
@@ -493,23 +488,23 @@ <h3><a class="toc-backref" href="#toc-entry-9">Tasks</a></h3>
493488
</div>
494489
</div>
495490
<div class="section" id="bug-tracker">
496-
<h2><a class="toc-backref" href="#toc-entry-10">Bug Tracker</a></h2>
491+
<h1><a class="toc-backref" href="#toc-entry-10">Bug Tracker</a></h1>
497492
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sign/issues">GitHub Issues</a>.
498493
In case of trouble, please check there if your issue has already been reported.
499494
If you spotted it first, help us to smash it by providing a detailed and welcomed
500495
<a class="reference external" href="https://github.com/OCA/sign/issues/new?body=module:%20sign_oca%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
501496
<p>Do not contact contributors directly about support or help with technical issues.</p>
502497
</div>
503498
<div class="section" id="credits">
504-
<h2><a class="toc-backref" href="#toc-entry-11">Credits</a></h2>
499+
<h1><a class="toc-backref" href="#toc-entry-11">Credits</a></h1>
505500
<div class="section" id="authors">
506-
<h3><a class="toc-backref" href="#toc-entry-12">Authors</a></h3>
501+
<h2><a class="toc-backref" href="#toc-entry-12">Authors</a></h2>
507502
<ul class="simple">
508503
<li>Dixmit</li>
509504
</ul>
510505
</div>
511506
<div class="section" id="contributors">
512-
<h3><a class="toc-backref" href="#toc-entry-13">Contributors</a></h3>
507+
<h2><a class="toc-backref" href="#toc-entry-13">Contributors</a></h2>
513508
<ul class="simple">
514509
<li>Enric Tobella (<a class="reference external" href="http://www.dixmit.com">www.dixmit.com</a>)</li>
515510
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
@@ -523,7 +518,7 @@ <h3><a class="toc-backref" href="#toc-entry-13">Contributors</a></h3>
523518
</ul>
524519
</div>
525520
<div class="section" id="maintainers">
526-
<h3><a class="toc-backref" href="#toc-entry-14">Maintainers</a></h3>
521+
<h2><a class="toc-backref" href="#toc-entry-14">Maintainers</a></h2>
527522
<p>This module is maintained by the OCA.</p>
528523
<a class="reference external image-reference" href="https://odoo-community.org">
529524
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -538,6 +533,5 @@ <h3><a class="toc-backref" href="#toc-entry-14">Maintainers</a></h3>
538533
</div>
539534
</div>
540535
</div>
541-
</div>
542536
</body>
543537
</html>

sign_oca/static/src/components/sign_oca_pdf_common/sign_oca_pdf_common.esm.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,20 @@ export default class SignOcaPdfCommon extends Component {
122122
this.items[item.id] = signatureItem[0];
123123
return signatureItem;
124124
}
125+
// CheckSignItemsCompletion and navigate functions for handling navigation
126+
checkSignItemsCompletion() {
127+
const signItemsToComplete = [];
128+
$.each(this.info.items, (key, value) => {
129+
if (this.postIframeField(value) && this.postIframeField(value)[0]) {
130+
const $element = $(value);
131+
const signItemToComplete = {};
132+
signItemToComplete.data = $element[0];
133+
signItemToComplete.el = this.postIframeField(value)[0];
134+
signItemsToComplete.push(signItemToComplete);
135+
}
136+
});
137+
return signItemsToComplete;
138+
}
125139
}
126140
SignOcaPdfCommon.template = "sign_oca.SignOcaPdfCommon";
127141
SignOcaPdfCommon.props = [];

0 commit comments

Comments
 (0)