Skip to content

Commit d7dcfbf

Browse files
[IMP] base_cancel_confirm: pre-commit fixes
1 parent de5ea3e commit d7dcfbf

File tree

9 files changed

+78
-60
lines changed

9 files changed

+78
-60
lines changed

base_cancel_confirm/README.rst

+28-23
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,34 @@ Base Cancel Confirm
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-ux/tree/16.0/base_cancel_confirm
20+
:target: https://github.com/OCA/server-ux/tree/17.0/base_cancel_confirm
2121
:alt: OCA/server-ux
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_cancel_confirm
23+
:target: https://translation.odoo-community.org/projects/server-ux-17-0/server-ux-17-0-base_cancel_confirm
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
Many document model that already has cancel action may also want a confirm dialog with option to provide reason.
31+
Many document model that already has cancel action may also want a
32+
confirm dialog with option to provide reason.
3233

33-
This module does not provide a functionality by itself but an abstract model
34-
to easily implement a confirm with reason wizard when cancel button is clicked.
35-
If reason is provided, it will be visible in form view.
34+
This module does not provide a functionality by itself but an abstract
35+
model to easily implement a confirm with reason wizard when cancel
36+
button is clicked. If reason is provided, it will be visible in form
37+
view.
3638

37-
**Note:** To be able to use this module in a new model you will need some
38-
development.
39+
**Note:** To be able to use this module in a new model you will need
40+
some development.
3941

4042
You can see implementation example as followings,
4143

42-
* `sale_cancel_confirm <https://github.com/OCA/sale-workflow>`_
43-
* `purchase_cancel_confirm <https://github.com/OCA/purchase-workflow>`_
44-
* `purchase_request_cancel_confirm <https://github.com/OCA/purchase-workflow>`_
45-
* `account_move_cancel_confirm <https://github.com/OCA/account-invoicing>`_
44+
- `sale_cancel_confirm <https://github.com/OCA/sale-workflow>`__
45+
- `purchase_cancel_confirm <https://github.com/OCA/purchase-workflow>`__
46+
- `purchase_request_cancel_confirm <https://github.com/OCA/purchase-workflow>`__
47+
- `account_move_cancel_confirm <https://github.com/OCA/account-invoicing>`__
4648

4749
**Table of contents**
4850

@@ -52,40 +54,43 @@ You can see implementation example as followings,
5254
Configuration
5355
=============
5456

55-
By default, the cancel confirm will be disabled (to ensure no side effect on other module unit test)
57+
By default, the cancel confirm will be disabled (to ensure no side
58+
effect on other module unit test)
5659

57-
To enable cancel confirm wizard, please add System Parameter (ir.config_parameter) for each extended module.
60+
To enable cancel confirm wizard, please add System Parameter
61+
(ir.config_parameter) for each extended module.
5862

5963
For example,
6064

61-
* sale_cancel_confirm, add `sale.order.cancel_confirm_disable = False`
62-
* purchase_cancel_confirm, add `purchase.order.cancel_confirm_disable = False`
65+
- sale_cancel_confirm, add sale.order.cancel_confirm_disable = False
66+
- purchase_cancel_confirm, add purchase.order.cancel_confirm_disable =
67+
False
6368

6469
Bug Tracker
6570
===========
6671

6772
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
6873
In case of trouble, please check there if your issue has already been reported.
6974
If you spotted it first, help us to smash it by providing a detailed and welcomed
70-
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20base_cancel_confirm%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
75+
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20base_cancel_confirm%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7176

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

7479
Credits
7580
=======
7681

7782
Authors
78-
~~~~~~~
83+
-------
7984

8085
* Ecosoft
8186

8287
Contributors
83-
~~~~~~~~~~~~
88+
------------
8489

85-
* Kitti U. <kittiu@ecosoft.co.th>
90+
- Kitti U. <kittiu@ecosoft.co.th>
8691

8792
Maintainers
88-
~~~~~~~~~~~
93+
-----------
8994

9095
This module is maintained by the OCA.
9196

@@ -105,6 +110,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
105110

106111
|maintainer-kittiu|
107112

108-
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/16.0/base_cancel_confirm>`_ project on GitHub.
113+
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/17.0/base_cancel_confirm>`_ project on GitHub.
109114

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

base_cancel_confirm/pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
By default, the cancel confirm will be disabled (to ensure no side
2+
effect on other module unit test)
3+
4+
To enable cancel confirm wizard, please add System Parameter
5+
(ir.config_parameter) for each extended module.
6+
7+
For example,
8+
9+
- sale_cancel_confirm, add sale.order.cancel_confirm_disable = False
10+
- purchase_cancel_confirm, add purchase.order.cancel_confirm_disable =
11+
False

base_cancel_confirm/readme/CONFIGURE.rst

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Kitti U. \<<kittiu@ecosoft.co.th>\>

base_cancel_confirm/readme/CONTRIBUTORS.rst

-1
This file was deleted.
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Many document model that already has cancel action may also want a
2+
confirm dialog with option to provide reason.
3+
4+
This module does not provide a functionality by itself but an abstract
5+
model to easily implement a confirm with reason wizard when cancel
6+
button is clicked. If reason is provided, it will be visible in form
7+
view.
8+
9+
**Note:** To be able to use this module in a new model you will need
10+
some development.
11+
12+
You can see implementation example as followings,
13+
14+
- [sale_cancel_confirm](https://github.com/OCA/sale-workflow)
15+
- [purchase_cancel_confirm](https://github.com/OCA/purchase-workflow)
16+
- [purchase_request_cancel_confirm](https://github.com/OCA/purchase-workflow)
17+
- [account_move_cancel_confirm](https://github.com/OCA/account-invoicing)

base_cancel_confirm/readme/DESCRIPTION.rst

-15
This file was deleted.

base_cancel_confirm/static/description/index.html

+18-13
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,15 @@ <h1 class="title">Base Cancel Confirm</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:ac67f451a2d77db32074340753f7ab30872dce3cf2d8d80108df9af61a228db5
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/server-ux/tree/16.0/base_cancel_confirm"><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_cancel_confirm"><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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373-
<p>Many document model that already has cancel action may also want a confirm dialog with option to provide reason.</p>
374-
<p>This module does not provide a functionality by itself but an abstract model
375-
to easily implement a confirm with reason wizard when cancel button is clicked.
376-
If reason is provided, it will be visible in form view.</p>
377-
<p><strong>Note:</strong> To be able to use this module in a new model you will need some
378-
development.</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/server-ux/tree/17.0/base_cancel_confirm"><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-17-0/server-ux-17-0-base_cancel_confirm"><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&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>Many document model that already has cancel action may also want a
374+
confirm dialog with option to provide reason.</p>
375+
<p>This module does not provide a functionality by itself but an abstract
376+
model to easily implement a confirm with reason wizard when cancel
377+
button is clicked. If reason is provided, it will be visible in form
378+
view.</p>
379+
<p><strong>Note:</strong> To be able to use this module in a new model you will need
380+
some development.</p>
379381
<p>You can see implementation example as followings,</p>
380382
<ul class="simple">
381383
<li><a class="reference external" href="https://github.com/OCA/sale-workflow">sale_cancel_confirm</a></li>
@@ -398,20 +400,23 @@ <h1 class="title">Base Cancel Confirm</h1>
398400
</div>
399401
<div class="section" id="configuration">
400402
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
401-
<p>By default, the cancel confirm will be disabled (to ensure no side effect on other module unit test)</p>
402-
<p>To enable cancel confirm wizard, please add System Parameter (ir.config_parameter) for each extended module.</p>
403+
<p>By default, the cancel confirm will be disabled (to ensure no side
404+
effect on other module unit test)</p>
405+
<p>To enable cancel confirm wizard, please add System Parameter
406+
(ir.config_parameter) for each extended module.</p>
403407
<p>For example,</p>
404408
<ul class="simple">
405-
<li>sale_cancel_confirm, add <cite>sale.order.cancel_confirm_disable = False</cite></li>
406-
<li>purchase_cancel_confirm, add <cite>purchase.order.cancel_confirm_disable = False</cite></li>
409+
<li>sale_cancel_confirm, add sale.order.cancel_confirm_disable = False</li>
410+
<li>purchase_cancel_confirm, add purchase.order.cancel_confirm_disable =
411+
False</li>
407412
</ul>
408413
</div>
409414
<div class="section" id="bug-tracker">
410415
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
411416
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-ux/issues">GitHub Issues</a>.
412417
In case of trouble, please check there if your issue has already been reported.
413418
If you spotted it first, help us to smash it by providing a detailed and welcomed
414-
<a class="reference external" href="https://github.com/OCA/server-ux/issues/new?body=module:%20base_cancel_confirm%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
419+
<a class="reference external" href="https://github.com/OCA/server-ux/issues/new?body=module:%20base_cancel_confirm%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
415420
<p>Do not contact contributors directly about support or help with technical issues.</p>
416421
</div>
417422
<div class="section" id="credits">
@@ -439,7 +444,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
439444
promote its widespread use.</p>
440445
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
441446
<p><a class="reference external image-reference" href="https://github.com/kittiu"><img alt="kittiu" src="https://github.com/kittiu.png?size=40px" /></a></p>
442-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-ux/tree/16.0/base_cancel_confirm">OCA/server-ux</a> project on GitHub.</p>
447+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-ux/tree/17.0/base_cancel_confirm">OCA/server-ux</a> project on GitHub.</p>
443448
<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>
444449
</div>
445450
</div>

0 commit comments

Comments
 (0)