odoo-addon-base-tier-validation 16.0.1.0.4.29__py3-none-any.whl → 16.0.1.5.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/base_tier_validation/README.rst +11 -6
- odoo/addons/base_tier_validation/__manifest__.py +1 -1
- odoo/addons/base_tier_validation/i18n/base_tier_validation.pot +104 -6
- odoo/addons/base_tier_validation/i18n/es.po +147 -73
- odoo/addons/base_tier_validation/i18n/es_MX.po +104 -6
- odoo/addons/base_tier_validation/i18n/fr.po +186 -78
- odoo/addons/base_tier_validation/i18n/it.po +159 -48
- odoo/addons/base_tier_validation/i18n/nl_NL.po +159 -37
- odoo/addons/base_tier_validation/i18n/sv.po +140 -54
- odoo/addons/base_tier_validation/i18n/tr.po +107 -6
- odoo/addons/base_tier_validation/i18n/zh_CN.po +107 -6
- odoo/addons/base_tier_validation/models/res_config_settings.py +3 -3
- odoo/addons/base_tier_validation/models/res_users.py +5 -0
- odoo/addons/base_tier_validation/models/tier_definition.py +18 -0
- odoo/addons/base_tier_validation/models/tier_review.py +18 -3
- odoo/addons/base_tier_validation/models/tier_validation.py +183 -63
- odoo/addons/base_tier_validation/readme/CONTRIBUTORS.rst +2 -0
- odoo/addons/base_tier_validation/static/description/index.html +68 -65
- odoo/addons/base_tier_validation/static/src/xml/tier_review_template.xml +41 -17
- odoo/addons/base_tier_validation/templates/tier_validation_templates.xml +7 -6
- odoo/addons/base_tier_validation/tests/common.py +19 -6
- odoo/addons/base_tier_validation/tests/test_tier_validation.py +415 -0
- odoo/addons/base_tier_validation/tests/tier_validation_tester.py +13 -2
- odoo/addons/base_tier_validation/views/res_config_settings_views.xml +6 -6
- odoo/addons/base_tier_validation/views/tier_definition_view.xml +14 -1
- {odoo_addon_base_tier_validation-16.0.1.0.4.29.dist-info → odoo_addon_base_tier_validation-16.0.1.5.1.dist-info}/METADATA +13 -8
- {odoo_addon_base_tier_validation-16.0.1.0.4.29.dist-info → odoo_addon_base_tier_validation-16.0.1.5.1.dist-info}/RECORD +29 -29
- {odoo_addon_base_tier_validation-16.0.1.0.4.29.dist-info → odoo_addon_base_tier_validation-16.0.1.5.1.dist-info}/WHEEL +1 -1
- {odoo_addon_base_tier_validation-16.0.1.0.4.29.dist-info → odoo_addon_base_tier_validation-16.0.1.5.1.dist-info}/top_level.txt +0 -0
@@ -1,20 +1,19 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
2
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
3
|
<head>
|
5
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<meta name="generator" content="Docutils
|
5
|
+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
7
6
|
<title>Base Tier Validation</title>
|
8
7
|
<style type="text/css">
|
9
8
|
|
10
9
|
/*
|
11
10
|
:Author: David Goodger (goodger@python.org)
|
12
|
-
:Id: $Id: html4css1.css
|
11
|
+
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
|
13
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
14
13
|
|
15
14
|
Default cascading style sheet for the HTML output of Docutils.
|
16
15
|
|
17
|
-
See
|
16
|
+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
18
17
|
customize this style sheet.
|
19
18
|
*/
|
20
19
|
|
@@ -366,8 +365,10 @@ ul.auto-toc {
|
|
366
365
|
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
367
366
|
!! This file is generated by oca-gen-addon-readme !!
|
368
367
|
!! changes will be overwritten. !!
|
368
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
369
|
+
!! source digest: sha256:1b69f3df9b2f479b32acf8c146bb4837086a025d8914c2f773db9f6c4c9eab7a
|
369
370
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
370
|
-
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external" 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" href="https://github.com/OCA/server-ux/tree/16.0/base_tier_validation"><img alt="OCA/server-ux" src="https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_tier_validation"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://
|
371
|
+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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/server-ux/tree/16.0/base_tier_validation"><img alt="OCA/server-ux" src="https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_tier_validation"><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/server-ux&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
371
372
|
<p>Validating some operations is a common need across different areas in a company
|
372
373
|
and sometimes it also involves several people and stages in the process. With
|
373
374
|
this module you will be able to define your custom validation workflows for
|
@@ -381,36 +382,36 @@ development.</p>
|
|
381
382
|
<p><strong>Table of contents</strong></p>
|
382
383
|
<div class="contents local topic" id="contents">
|
383
384
|
<ul class="simple">
|
384
|
-
<li><a class="reference internal" href="#configuration" id="
|
385
|
-
<li><a class="reference internal" href="#known-issues-roadmap" id="
|
386
|
-
<li><a class="reference internal" href="#changelog" id="
|
387
|
-
<li><a class="reference internal" href="#
|
388
|
-
<li><a class="reference internal" href="#
|
389
|
-
<li><a class="reference internal" href="#
|
390
|
-
<li><a class="reference internal" href="#
|
391
|
-
<li><a class="reference internal" href="#
|
392
|
-
<li><a class="reference internal" href="#
|
393
|
-
<li><a class="reference internal" href="#
|
394
|
-
<li><a class="reference internal" href="#
|
395
|
-
<li><a class="reference internal" href="#
|
396
|
-
<li><a class="reference internal" href="#
|
397
|
-
<li><a class="reference internal" href="#
|
398
|
-
<li><a class="reference internal" href="#
|
399
|
-
<li><a class="reference internal" href="#
|
400
|
-
<li><a class="reference internal" href="#
|
385
|
+
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a></li>
|
386
|
+
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-2">Known issues / Roadmap</a></li>
|
387
|
+
<li><a class="reference internal" href="#changelog" id="toc-entry-3">Changelog</a><ul>
|
388
|
+
<li><a class="reference internal" href="#section-1" id="toc-entry-4">14.0.1.0.0 (2020-11-19)</a></li>
|
389
|
+
<li><a class="reference internal" href="#section-2" id="toc-entry-5">13.0.1.2.2 (2020-08-30)</a></li>
|
390
|
+
<li><a class="reference internal" href="#section-3" id="toc-entry-6">12.0.3.3.1 (2019-12-02)</a></li>
|
391
|
+
<li><a class="reference internal" href="#section-4" id="toc-entry-7">12.0.3.3.0 (2019-11-27)</a></li>
|
392
|
+
<li><a class="reference internal" href="#section-5" id="toc-entry-8">12.0.3.2.1 (2019-11-26)</a></li>
|
393
|
+
<li><a class="reference internal" href="#section-6" id="toc-entry-9">12.0.3.2.0 (2019-11-25)</a></li>
|
394
|
+
<li><a class="reference internal" href="#section-7" id="toc-entry-10">12.0.3.1.0 (2019-07-08)</a></li>
|
395
|
+
<li><a class="reference internal" href="#section-8" id="toc-entry-11">12.0.3.0.0 (2019-12-02)</a></li>
|
396
|
+
<li><a class="reference internal" href="#section-9" id="toc-entry-12">12.0.2.1.0 (2019-05-29)</a></li>
|
397
|
+
<li><a class="reference internal" href="#section-10" id="toc-entry-13">12.0.2.0.0 (2019-05-28)</a></li>
|
398
|
+
<li><a class="reference internal" href="#section-11" id="toc-entry-14">12.0.1.0.0 (2019-02-18)</a></li>
|
399
|
+
<li><a class="reference internal" href="#section-12" id="toc-entry-15">11.0.1.0.0 (2018-05-09)</a></li>
|
400
|
+
<li><a class="reference internal" href="#section-13" id="toc-entry-16">10.0.1.0.0 (2018-03-26)</a></li>
|
401
|
+
<li><a class="reference internal" href="#section-14" id="toc-entry-17">9.0.1.0.0 (2017-12-02)</a></li>
|
401
402
|
</ul>
|
402
403
|
</li>
|
403
|
-
<li><a class="reference internal" href="#bug-tracker" id="
|
404
|
-
<li><a class="reference internal" href="#credits" id="
|
405
|
-
<li><a class="reference internal" href="#authors" id="
|
406
|
-
<li><a class="reference internal" href="#contributors" id="
|
407
|
-
<li><a class="reference internal" href="#maintainers" id="
|
404
|
+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-18">Bug Tracker</a></li>
|
405
|
+
<li><a class="reference internal" href="#credits" id="toc-entry-19">Credits</a><ul>
|
406
|
+
<li><a class="reference internal" href="#authors" id="toc-entry-20">Authors</a></li>
|
407
|
+
<li><a class="reference internal" href="#contributors" id="toc-entry-21">Contributors</a></li>
|
408
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-22">Maintainers</a></li>
|
408
409
|
</ul>
|
409
410
|
</li>
|
410
411
|
</ul>
|
411
412
|
</div>
|
412
413
|
<div class="section" id="configuration">
|
413
|
-
<h1><a class="toc-backref" href="#
|
414
|
+
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
|
414
415
|
<p>To configure this module, you need to:</p>
|
415
416
|
<ol class="arabic simple">
|
416
417
|
<li>Go to <em>Settings > Technical > Tier Validations > Tier Definition</em>.</li>
|
@@ -425,7 +426,7 @@ functionality.</li>
|
|
425
426
|
</ul>
|
426
427
|
</div>
|
427
428
|
<div class="section" id="known-issues-roadmap">
|
428
|
-
<h1><a class="toc-backref" href="#
|
429
|
+
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
|
429
430
|
<p>This is the list of known issues for this module. Any proposal for improvement will
|
430
431
|
be very valuable.</p>
|
431
432
|
<ul>
|
@@ -446,113 +447,113 @@ behavior we need to modify the value on our expected model.</p>
|
|
446
447
|
</ul>
|
447
448
|
</div>
|
448
449
|
<div class="section" id="changelog">
|
449
|
-
<h1><a class="toc-backref" href="#
|
450
|
-
<div class="section" id="
|
451
|
-
<h2><a class="toc-backref" href="#
|
450
|
+
<h1><a class="toc-backref" href="#toc-entry-3">Changelog</a></h1>
|
451
|
+
<div class="section" id="section-1">
|
452
|
+
<h2><a class="toc-backref" href="#toc-entry-4">14.0.1.0.0 (2020-11-19)</a></h2>
|
452
453
|
<p>Migrated to Odoo 14.</p>
|
453
454
|
</div>
|
454
|
-
<div class="section" id="
|
455
|
-
<h2><a class="toc-backref" href="#
|
455
|
+
<div class="section" id="section-2">
|
456
|
+
<h2><a class="toc-backref" href="#toc-entry-5">13.0.1.2.2 (2020-08-30)</a></h2>
|
456
457
|
<p>Fixes:</p>
|
457
458
|
<ul class="simple">
|
458
459
|
<li>When using approve_sequence option in any tier.definition there can be inconsistencies in the systray notifications</li>
|
459
460
|
<li>When using approve_sequence, still not approve only the needed sequence, but also other sequence for the same approver</li>
|
460
461
|
</ul>
|
461
462
|
</div>
|
462
|
-
<div class="section" id="
|
463
|
-
<h2><a class="toc-backref" href="#
|
463
|
+
<div class="section" id="section-3">
|
464
|
+
<h2><a class="toc-backref" href="#toc-entry-6">12.0.3.3.1 (2019-12-02)</a></h2>
|
464
465
|
<p>Fixes:</p>
|
465
466
|
<ul class="simple">
|
466
467
|
<li>Show comment on Reviews Table.</li>
|
467
468
|
<li>Edit notification with approve_sequence.</li>
|
468
469
|
</ul>
|
469
470
|
</div>
|
470
|
-
<div class="section" id="
|
471
|
-
<h2><a class="toc-backref" href="#
|
471
|
+
<div class="section" id="section-4">
|
472
|
+
<h2><a class="toc-backref" href="#toc-entry-7">12.0.3.3.0 (2019-11-27)</a></h2>
|
472
473
|
<p>New features:</p>
|
473
474
|
<ul class="simple">
|
474
475
|
<li>Add comment on Reviews Table.</li>
|
475
476
|
<li>Approve by sequence.</li>
|
476
477
|
</ul>
|
477
478
|
</div>
|
478
|
-
<div class="section" id="
|
479
|
-
<h2><a class="toc-backref" href="#
|
479
|
+
<div class="section" id="section-5">
|
480
|
+
<h2><a class="toc-backref" href="#toc-entry-8">12.0.3.2.1 (2019-11-26)</a></h2>
|
480
481
|
<p>Fixes:</p>
|
481
482
|
<ul class="simple">
|
482
483
|
<li>Remove message_subscribe_users</li>
|
483
484
|
</ul>
|
484
485
|
</div>
|
485
|
-
<div class="section" id="
|
486
|
-
<h2><a class="toc-backref" href="#
|
486
|
+
<div class="section" id="section-6">
|
487
|
+
<h2><a class="toc-backref" href="#toc-entry-9">12.0.3.2.0 (2019-11-25)</a></h2>
|
487
488
|
<p>New features:</p>
|
488
489
|
<ul class="simple">
|
489
490
|
<li>Notify reviewers</li>
|
490
491
|
</ul>
|
491
492
|
</div>
|
492
|
-
<div class="section" id="
|
493
|
-
<h2><a class="toc-backref" href="#
|
493
|
+
<div class="section" id="section-7">
|
494
|
+
<h2><a class="toc-backref" href="#toc-entry-10">12.0.3.1.0 (2019-07-08)</a></h2>
|
494
495
|
<p>Fixes:</p>
|
495
496
|
<ul class="simple">
|
496
497
|
<li>Singleton error</li>
|
497
498
|
</ul>
|
498
499
|
</div>
|
499
|
-
<div class="section" id="
|
500
|
-
<h2><a class="toc-backref" href="#
|
500
|
+
<div class="section" id="section-8">
|
501
|
+
<h2><a class="toc-backref" href="#toc-entry-11">12.0.3.0.0 (2019-12-02)</a></h2>
|
501
502
|
<p>Fixes:</p>
|
502
503
|
<ul class="simple">
|
503
504
|
<li>Edit Reviews Table</li>
|
504
505
|
</ul>
|
505
506
|
</div>
|
506
|
-
<div class="section" id="
|
507
|
-
<h2><a class="toc-backref" href="#
|
507
|
+
<div class="section" id="section-9">
|
508
|
+
<h2><a class="toc-backref" href="#toc-entry-12">12.0.2.1.0 (2019-05-29)</a></h2>
|
508
509
|
<p>Fixes:</p>
|
509
510
|
<ul class="simple">
|
510
511
|
<li>Edit drop-down style width and position</li>
|
511
512
|
</ul>
|
512
513
|
</div>
|
513
|
-
<div class="section" id="
|
514
|
-
<h2><a class="toc-backref" href="#
|
514
|
+
<div class="section" id="section-10">
|
515
|
+
<h2><a class="toc-backref" href="#toc-entry-13">12.0.2.0.0 (2019-05-28)</a></h2>
|
515
516
|
<p>New features:</p>
|
516
517
|
<ul class="simple">
|
517
518
|
<li>Pass parameters as functions.</li>
|
518
519
|
<li>Add Systray.</li>
|
519
520
|
</ul>
|
520
521
|
</div>
|
521
|
-
<div class="section" id="
|
522
|
-
<h2><a class="toc-backref" href="#
|
522
|
+
<div class="section" id="section-11">
|
523
|
+
<h2><a class="toc-backref" href="#toc-entry-14">12.0.1.0.0 (2019-02-18)</a></h2>
|
523
524
|
<p>Migrated to Odoo 12.</p>
|
524
525
|
</div>
|
525
|
-
<div class="section" id="
|
526
|
-
<h2><a class="toc-backref" href="#
|
526
|
+
<div class="section" id="section-12">
|
527
|
+
<h2><a class="toc-backref" href="#toc-entry-15">11.0.1.0.0 (2018-05-09)</a></h2>
|
527
528
|
<p>Migrated to Odoo 11.</p>
|
528
529
|
</div>
|
529
|
-
<div class="section" id="
|
530
|
-
<h2><a class="toc-backref" href="#
|
530
|
+
<div class="section" id="section-13">
|
531
|
+
<h2><a class="toc-backref" href="#toc-entry-16">10.0.1.0.0 (2018-03-26)</a></h2>
|
531
532
|
<p>Migrated to Odoo 10.</p>
|
532
533
|
</div>
|
533
|
-
<div class="section" id="
|
534
|
-
<h2><a class="toc-backref" href="#
|
534
|
+
<div class="section" id="section-14">
|
535
|
+
<h2><a class="toc-backref" href="#toc-entry-17">9.0.1.0.0 (2017-12-02)</a></h2>
|
535
536
|
<p>First version.</p>
|
536
537
|
</div>
|
537
538
|
</div>
|
538
539
|
<div class="section" id="bug-tracker">
|
539
|
-
<h1><a class="toc-backref" href="#
|
540
|
+
<h1><a class="toc-backref" href="#toc-entry-18">Bug Tracker</a></h1>
|
540
541
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-ux/issues">GitHub Issues</a>.
|
541
542
|
In case of trouble, please check there if your issue has already been reported.
|
542
|
-
If you spotted it first, help us
|
543
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
543
544
|
<a class="reference external" href="https://github.com/OCA/server-ux/issues/new?body=module:%20base_tier_validation%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
544
545
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
545
546
|
</div>
|
546
547
|
<div class="section" id="credits">
|
547
|
-
<h1><a class="toc-backref" href="#
|
548
|
+
<h1><a class="toc-backref" href="#toc-entry-19">Credits</a></h1>
|
548
549
|
<div class="section" id="authors">
|
549
|
-
<h2><a class="toc-backref" href="#
|
550
|
+
<h2><a class="toc-backref" href="#toc-entry-20">Authors</a></h2>
|
550
551
|
<ul class="simple">
|
551
552
|
<li>ForgeFlow</li>
|
552
553
|
</ul>
|
553
554
|
</div>
|
554
555
|
<div class="section" id="contributors">
|
555
|
-
<h2><a class="toc-backref" href="#
|
556
|
+
<h2><a class="toc-backref" href="#toc-entry-21">Contributors</a></h2>
|
556
557
|
<ul class="simple">
|
557
558
|
<li>Lois Rilo <<a class="reference external" href="mailto:lois.rilo@forgeflow.com">lois.rilo@forgeflow.com</a>></li>
|
558
559
|
<li>Naglis Jonaitis <<a class="reference external" href="mailto:naglis@versada.eu">naglis@versada.eu</a>></li>
|
@@ -561,17 +562,19 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|
561
562
|
<li>Pedro Gonzalez <<a class="reference external" href="mailto:pedro.gonzalez@pesol.es">pedro.gonzalez@pesol.es</a>></li>
|
562
563
|
<li>Kitti U. <<a class="reference external" href="mailto:kittiu@ecosoft.co.th">kittiu@ecosoft.co.th</a>></li>
|
563
564
|
<li>Saran Lim. <<a class="reference external" href="mailto:saranl@ecosoft.co.th">saranl@ecosoft.co.th</a>></li>
|
565
|
+
<li>Evan Soh <<a class="reference external" href="mailto:evan.soh@omnisoftsolution.com">evan.soh@omnisoftsolution.com</a>></li>
|
566
|
+
<li>Manuel Regidor <<a class="reference external" href="mailto:manuel.regidor@sygel.es">manuel.regidor@sygel.es</a>></li>
|
564
567
|
</ul>
|
565
568
|
</div>
|
566
569
|
<div class="section" id="maintainers">
|
567
|
-
<h2><a class="toc-backref" href="#
|
570
|
+
<h2><a class="toc-backref" href="#toc-entry-22">Maintainers</a></h2>
|
568
571
|
<p>This module is maintained by the OCA.</p>
|
569
572
|
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
570
573
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
571
574
|
mission is to support the collaborative development of Odoo features and
|
572
575
|
promote its widespread use.</p>
|
573
576
|
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
574
|
-
<p><a class="reference external" href="https://github.com/LoisRForgeFlow"><img alt="LoisRForgeFlow" src="https://github.com/LoisRForgeFlow.png?size=40px" /></a></p>
|
577
|
+
<p><a class="reference external image-reference" href="https://github.com/LoisRForgeFlow"><img alt="LoisRForgeFlow" src="https://github.com/LoisRForgeFlow.png?size=40px" /></a></p>
|
575
578
|
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-ux/tree/16.0/base_tier_validation">OCA/server-ux</a> project on GitHub.</p>
|
576
579
|
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
577
580
|
</div>
|
@@ -21,14 +21,38 @@
|
|
21
21
|
<table class="oe_mt32 table table-condensed">
|
22
22
|
<thead>
|
23
23
|
<tr>
|
24
|
-
<th
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<th
|
29
|
-
|
30
|
-
|
31
|
-
|
24
|
+
<th
|
25
|
+
name="th_sequence"
|
26
|
+
class="text-center"
|
27
|
+
>Sequence</th>
|
28
|
+
<th
|
29
|
+
name="th_requested_by"
|
30
|
+
class="text-left"
|
31
|
+
>Requested by</th>
|
32
|
+
<th
|
33
|
+
name="th_name"
|
34
|
+
class="text-right"
|
35
|
+
>Description</th>
|
36
|
+
<th
|
37
|
+
name="th_display_status"
|
38
|
+
class="text-right"
|
39
|
+
>Status</th>
|
40
|
+
<th
|
41
|
+
name="th_todo_by"
|
42
|
+
class="text-right"
|
43
|
+
>Todo by</th>
|
44
|
+
<th
|
45
|
+
name="th_done_by"
|
46
|
+
class="text-right"
|
47
|
+
>Done by</th>
|
48
|
+
<th
|
49
|
+
name="th_reviewed_date"
|
50
|
+
class="text-right"
|
51
|
+
>Validation Date</th>
|
52
|
+
<th
|
53
|
+
name="th_comment"
|
54
|
+
class="text-right"
|
55
|
+
>Comment</th>
|
32
56
|
</tr>
|
33
57
|
</thead>
|
34
58
|
<tbody class="sale_tbody">
|
@@ -53,32 +77,32 @@
|
|
53
77
|
t-value="'alert-danger'"
|
54
78
|
/>
|
55
79
|
<tr t-att-class="status_class">
|
56
|
-
<td class="text-center">
|
80
|
+
<td name="td_sequence" class="text-center">
|
57
81
|
<span t-esc="review.sequence" />
|
58
82
|
</td>
|
59
|
-
<td class="text-left">
|
83
|
+
<td name="td_requested_by" class="text-left">
|
60
84
|
<span t-esc="review.requested_by[1]" />
|
61
85
|
</td>
|
62
|
-
<td class="text-right">
|
86
|
+
<td name="td_name" class="text-right">
|
63
87
|
<span t-esc="review.name" />
|
64
88
|
</td>
|
65
|
-
<td class="text-right">
|
66
|
-
<span t-esc="review.
|
89
|
+
<td name="td_display_status" class="text-right">
|
90
|
+
<span t-esc="review.display_status" />
|
67
91
|
</td>
|
68
|
-
<td class="text-right">
|
92
|
+
<td name="td_todo_by" class="text-right">
|
69
93
|
<span t-esc="review.todo_by" />
|
70
94
|
</td>
|
71
|
-
<td class="text-right">
|
95
|
+
<td name="td_done_by" class="text-right">
|
72
96
|
<span t-esc="review.done_by[1]" />
|
73
97
|
</td>
|
74
|
-
<td class="text-right">
|
98
|
+
<td name="td_reviewed_date" class="text-right">
|
75
99
|
<t t-if="review.reviewed_formated_date">
|
76
100
|
<span
|
77
101
|
t-esc="review.reviewed_formated_date"
|
78
102
|
/>
|
79
103
|
</t>
|
80
104
|
</td>
|
81
|
-
<td class="text-left">
|
105
|
+
<td name="td_comment" class="text-left">
|
82
106
|
<t t-if="review.comment">
|
83
107
|
<span t-esc="review.comment" />
|
84
108
|
</t>
|
@@ -5,13 +5,13 @@
|
|
5
5
|
<button
|
6
6
|
name="request_validation"
|
7
7
|
string="Request Validation"
|
8
|
-
t-attf-attrs="{'invisible': ['|','|',('need_validation', '!=', True),('rejected','=',True),('#{state_field}', '
|
8
|
+
t-attf-attrs="{'invisible': ['|','|',('need_validation', '!=', True),('rejected','=',True),('#{state_field}', '#{state_operator}', #{state_value})]}"
|
9
9
|
type="object"
|
10
10
|
/>
|
11
11
|
<button
|
12
12
|
name="restart_validation"
|
13
13
|
string="Restart Validation"
|
14
|
-
t-attf-attrs="{'invisible': ['|',('review_ids', '=', []),('#{state_field}', '
|
14
|
+
t-attf-attrs="{'invisible': ['|',('review_ids', '=', []),('#{state_field}', '#{state_operator}', #{state_value})]}"
|
15
15
|
type="object"
|
16
16
|
/>
|
17
17
|
</div>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
class="alert alert-warning"
|
26
26
|
role="alert"
|
27
27
|
t-attf-attrs="{'invisible': ['|', '|', '|',
|
28
|
-
('validated', '=', True), ('#{state_field}', '
|
28
|
+
('validated', '=', True), ('#{state_field}', '#{state_operator}', #{state_value}),
|
29
29
|
('rejected', '=', True), ('review_ids', '=', [])]}"
|
30
30
|
style="margin-bottom:0px;"
|
31
31
|
>
|
@@ -50,13 +50,13 @@
|
|
50
50
|
class="btn-icon btn-danger"
|
51
51
|
icon="fa-thumbs-down"
|
52
52
|
/>
|
53
|
-
<br /><field name="next_review" />
|
53
|
+
<br /><field name="next_review" readonly="1" />
|
54
54
|
</p>
|
55
55
|
</div>
|
56
56
|
<div
|
57
57
|
class="alert alert-success"
|
58
58
|
role="alert"
|
59
|
-
t-attf-attrs="{'invisible': ['|', '|', ('validated', '!=', True), ('#{state_field}', '
|
59
|
+
t-attf-attrs="{'invisible': ['|', '|', ('validated', '!=', True), ('#{state_field}', '#{state_operator}', #{state_value}), ('review_ids', '=', [])]}"
|
60
60
|
style="margin-bottom:0px;"
|
61
61
|
>
|
62
62
|
<p>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<div
|
70
70
|
class="alert alert-danger"
|
71
71
|
role="alert"
|
72
|
-
t-attf-attrs="{'invisible': ['|', '|', ('rejected', '!=', True), ('#{state_field}', '
|
72
|
+
t-attf-attrs="{'invisible': ['|', '|', ('rejected', '!=', True), ('#{state_field}', '#{state_operator}', #{state_value}), ('review_ids', '=', [])]}"
|
73
73
|
style="margin-bottom:0px;"
|
74
74
|
>
|
75
75
|
<p>
|
@@ -94,6 +94,7 @@
|
|
94
94
|
<field name="sequence" />
|
95
95
|
<field name="requested_by" />
|
96
96
|
<field name="status" />
|
97
|
+
<field name="display_status" />
|
97
98
|
<field name="todo_by" />
|
98
99
|
<field name="done_by" />
|
99
100
|
<field name="reviewed_date" />
|
@@ -5,17 +5,25 @@ from odoo_test_helper import FakeModelLoader
|
|
5
5
|
|
6
6
|
from odoo.tests import common
|
7
7
|
|
8
|
+
from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
|
9
|
+
|
8
10
|
|
9
11
|
class CommonTierValidation(common.TransactionCase):
|
10
12
|
@classmethod
|
11
13
|
def setUpClass(cls):
|
12
|
-
super(
|
13
|
-
|
14
|
+
super().setUpClass()
|
15
|
+
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
|
14
16
|
cls.loader = FakeModelLoader(cls.env, cls.__module__)
|
15
17
|
cls.loader.backup_registry()
|
16
|
-
from .tier_validation_tester import
|
18
|
+
from .tier_validation_tester import (
|
19
|
+
TierDefinition,
|
20
|
+
TierValidationTester,
|
21
|
+
TierValidationTester2,
|
22
|
+
)
|
17
23
|
|
18
|
-
cls.loader.update_registry(
|
24
|
+
cls.loader.update_registry(
|
25
|
+
(TierValidationTester, TierValidationTester2, TierDefinition)
|
26
|
+
)
|
19
27
|
|
20
28
|
cls.test_model = cls.env[TierValidationTester._name]
|
21
29
|
cls.test_model_2 = cls.env[TierValidationTester2._name]
|
@@ -52,10 +60,15 @@ class CommonTierValidation(common.TransactionCase):
|
|
52
60
|
# Create users:
|
53
61
|
group_ids = cls.env.ref("base.group_system").ids
|
54
62
|
cls.test_user_1 = cls.env["res.users"].create(
|
55
|
-
{
|
63
|
+
{
|
64
|
+
"name": "John",
|
65
|
+
"login": "test1",
|
66
|
+
"email": "john@yourcompany.example.com",
|
67
|
+
"groups_id": [(6, 0, group_ids)],
|
68
|
+
}
|
56
69
|
)
|
57
70
|
cls.test_user_2 = cls.env["res.users"].create(
|
58
|
-
{"name": "Mike", "login": "test2"}
|
71
|
+
{"name": "Mike", "login": "test2", "email": "mike@yourcompany.example.com"}
|
59
72
|
)
|
60
73
|
|
61
74
|
# Create tier definitions:
|