Skip to content

Commit 66aa594

Browse files
committed
Merge PR #1037 into 17.0
Signed-off-by LoisRForgeFlow
2 parents 9ec387f + 366bb09 commit 66aa594

23 files changed

+1462
-0
lines changed

base_cancel_confirm/README.rst

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
===================
2+
Base Cancel Confirm
3+
===================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:ac67f451a2d77db32074340753f7ab30872dce3cf2d8d80108df9af61a228db5
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
20+
:target: https://github.com/OCA/server-ux/tree/17.0/base_cancel_confirm
21+
:alt: OCA/server-ux
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/server-ux-17-0/server-ux-17-0-base_cancel_confirm
24+
:alt: Translate me on Weblate
25+
.. |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=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Many document model that already has cancel action may also want a
32+
confirm dialog with option to provide reason.
33+
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.
38+
39+
**Note:** To be able to use this module in a new model you will need
40+
some development.
41+
42+
You can see implementation example as followings,
43+
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>`__
48+
49+
**Table of contents**
50+
51+
.. contents::
52+
:local:
53+
54+
Configuration
55+
=============
56+
57+
By default, the cancel confirm will be disabled (to ensure no side
58+
effect on other module unit test)
59+
60+
To enable cancel confirm wizard, please add System Parameter
61+
(ir.config_parameter) for each extended module.
62+
63+
For example,
64+
65+
- sale_cancel_confirm, add sale.order.cancel_confirm_disable = False
66+
- purchase_cancel_confirm, add purchase.order.cancel_confirm_disable =
67+
False
68+
69+
Bug Tracker
70+
===========
71+
72+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
73+
In case of trouble, please check there if your issue has already been reported.
74+
If you spotted it first, help us to smash it by providing a detailed and welcomed
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**>`_.
76+
77+
Do not contact contributors directly about support or help with technical issues.
78+
79+
Credits
80+
=======
81+
82+
Authors
83+
-------
84+
85+
* Ecosoft
86+
87+
Contributors
88+
------------
89+
90+
- Kitti U. <kittiu@ecosoft.co.th>
91+
92+
Maintainers
93+
-----------
94+
95+
This module is maintained by the OCA.
96+
97+
.. image:: https://odoo-community.org/logo.png
98+
:alt: Odoo Community Association
99+
:target: https://odoo-community.org
100+
101+
OCA, or the Odoo Community Association, is a nonprofit organization whose
102+
mission is to support the collaborative development of Odoo features and
103+
promote its widespread use.
104+
105+
.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px
106+
:target: https://github.com/kittiu
107+
:alt: kittiu
108+
109+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
110+
111+
|maintainer-kittiu|
112+
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.
114+
115+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

base_cancel_confirm/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
from . import wizard
5+
from . import model

base_cancel_confirm/__manifest__.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
{
5+
"name": "Base Cancel Confirm",
6+
"version": "17.0.1.0.0",
7+
"author": "Ecosoft,Odoo Community Association (OCA)",
8+
"category": "Usability",
9+
"license": "AGPL-3",
10+
"website": "https://github.com/OCA/server-ux",
11+
"depends": ["base"],
12+
"data": [
13+
"wizard/cancel_confirm.xml",
14+
"security/ir.model.access.csv",
15+
"views/cancel_confirm_template.xml",
16+
],
17+
"auto_install": False,
18+
"installable": True,
19+
"maintainers": ["kittiu"],
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_cancel_confirm
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: base_cancel_confirm
17+
#: model:ir.model.fields,help:base_cancel_confirm.field_base_cancel_confirm__cancel_confirm
18+
msgid "A flag signify that this document is confirmed for cancellation"
19+
msgstr ""
20+
21+
#. module: base_cancel_confirm
22+
#: model:ir.model.fields,help:base_cancel_confirm.field_base_cancel_confirm__cancel_reason
23+
msgid "An optional cancel reason"
24+
msgstr ""
25+
26+
#. module: base_cancel_confirm
27+
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
28+
msgid "Are you sure to cancel this document?"
29+
msgstr ""
30+
31+
#. module: base_cancel_confirm
32+
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
33+
msgid "Cancel"
34+
msgstr ""
35+
36+
#. module: base_cancel_confirm
37+
#: model:ir.model,name:base_cancel_confirm.model_cancel_confirm
38+
msgid "Cancel Confirm"
39+
msgstr ""
40+
41+
#. module: base_cancel_confirm
42+
#: model:ir.actions.act_window,name:base_cancel_confirm.action_cancel_confirm_wizard
43+
#: model:ir.model,name:base_cancel_confirm.model_base_cancel_confirm
44+
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
45+
msgid "Cancel Confirmation"
46+
msgstr ""
47+
48+
#. module: base_cancel_confirm
49+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_base_cancel_confirm__cancel_confirm
50+
msgid "Cancel Confirmed"
51+
msgstr ""
52+
53+
#. module: base_cancel_confirm
54+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_base_cancel_confirm__cancel_reason
55+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__cancel_reason
56+
msgid "Cancel Reason"
57+
msgstr ""
58+
59+
#. module: base_cancel_confirm
60+
#. odoo-python
61+
#: code:addons/base_cancel_confirm/model/base_cancel_confirm.py:0
62+
#, python-format
63+
msgid "Configuration Error (%s), should be 'True' or 'False'"
64+
msgstr ""
65+
66+
#. module: base_cancel_confirm
67+
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
68+
msgid "Confirm"
69+
msgstr ""
70+
71+
#. module: base_cancel_confirm
72+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__create_uid
73+
msgid "Created by"
74+
msgstr ""
75+
76+
#. module: base_cancel_confirm
77+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__create_date
78+
msgid "Created on"
79+
msgstr ""
80+
81+
#. module: base_cancel_confirm
82+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__display_name
83+
msgid "Display Name"
84+
msgstr ""
85+
86+
#. module: base_cancel_confirm
87+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__has_cancel_reason
88+
msgid "Has Cancel Reason"
89+
msgstr ""
90+
91+
#. module: base_cancel_confirm
92+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__id
93+
msgid "ID"
94+
msgstr ""
95+
96+
#. module: base_cancel_confirm
97+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm____last_update
98+
msgid "Last Modified on"
99+
msgstr ""
100+
101+
#. module: base_cancel_confirm
102+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__write_uid
103+
msgid "Last Updated by"
104+
msgstr ""
105+
106+
#. module: base_cancel_confirm
107+
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__write_date
108+
msgid "Last Updated on"
109+
msgstr ""
110+
111+
#. module: base_cancel_confirm
112+
#: model:ir.model.fields.selection,name:base_cancel_confirm.selection__cancel_confirm__has_cancel_reason__no
113+
msgid "None"
114+
msgstr ""
115+
116+
#. module: base_cancel_confirm
117+
#: model:ir.model.fields.selection,name:base_cancel_confirm.selection__cancel_confirm__has_cancel_reason__optional
118+
msgid "Optional"
119+
msgstr ""
120+
121+
#. module: base_cancel_confirm
122+
#: model:ir.model.fields.selection,name:base_cancel_confirm.selection__cancel_confirm__has_cancel_reason__required
123+
msgid "Required"
124+
msgstr ""
125+
126+
#. module: base_cancel_confirm
127+
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
128+
msgid "or"
129+
msgstr ""

0 commit comments

Comments
 (0)