Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] base_cancel_confirm: Migration to 17.0 #869

Open
wants to merge 27 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ae4e980
[14.0][ADD] base_cancel_confirm
kittiu Feb 26, 2021
46d3be1
[UPD] Update base_cancel_confirm.pot
oca-travis Mar 25, 2021
725c6bf
[UPD] README.rst
OCA-git-bot Mar 25, 2021
541b967
Added translation using Weblate (Dutch)
bosd Apr 18, 2021
c08d23c
Translated using Weblate (Dutch)
bosd Apr 18, 2021
5e230e1
[14.0][FIX] base_cancel_confirm, access window action error
kittiu Apr 25, 2021
9de9206
base_cancel_confirm 14.0.1.0.1
OCA-git-bot May 8, 2021
169357e
[14.0][FIX] base_cancel_confirm: No duplicate cancel confirm and canc…
newtratip May 14, 2021
3d88bc7
base_cancel_confirm 14.0.1.0.2
OCA-git-bot May 29, 2021
759e246
[FIX] Fix access right issues when using actions
sebalix Jan 31, 2022
4cb3393
base_cancel_confirm 14.0.1.0.3
OCA-git-bot Feb 2, 2022
733cd4a
[IMP] base_cancel_confirm, allow disable cancel confirm
kittiu May 17, 2022
0a6b717
[MTG] base_cancel_confirm: Migration to 15.0
TheerayutEncoder Oct 20, 2022
af69b45
[UPD] Update base_cancel_confirm.pot
Apr 1, 2023
d1a2624
[UPD] README.rst
OCA-git-bot Apr 1, 2023
b81fe41
Update translation files
weblate Apr 1, 2023
129ea78
[MIG] base_cancel_confirm: Migration to 16.0
aliciagaarzo Jun 6, 2023
4d9cc2c
[UPD] Update base_cancel_confirm.pot
Jun 28, 2023
a1e8271
[UPD] README.rst
OCA-git-bot Jun 28, 2023
e12a0fb
Update translation files
weblate Jun 28, 2023
5210f3d
[UPD] README.rst
OCA-git-bot Sep 3, 2023
67cfd77
Added translation using Weblate (Spanish)
Ivorra78 Nov 11, 2023
26b5bb4
Translated using Weblate (Spanish)
Ivorra78 Nov 11, 2023
293323a
Added translation using Weblate (Italian)
mymage Dec 28, 2023
4d5eeca
Translated using Weblate (Italian)
mymage Dec 31, 2023
f753d64
[IMP] base_cancel_confirm: pre-commit stuff
rven Apr 29, 2024
cc843af
[MIG] base_cancel_confirm: Migration to 17.0
rven Apr 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
115 changes: 115 additions & 0 deletions base_cancel_confirm/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
===================
Base Cancel Confirm
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9f9cb7e551816f0bbd6a68ef73c085e14a8f7eef5ade7d302c522cdd9766845a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/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%2Fserver--ux-lightgray.png?logo=github
:target: https://github.com/OCA/server-ux/tree/17.0/base_cancel_confirm
:alt: OCA/server-ux
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-ux-17-0/server-ux-17-0-base_cancel_confirm
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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

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

**Note:** To be able to use this module in a new model you will need
some development.

You can see implementation example as followings,

- `sale_cancel_confirm <https://github.com/OCA/sale-workflow>`__
- `purchase_cancel_confirm <https://github.com/OCA/purchase-workflow>`__
- `purchase_request_cancel_confirm <https://github.com/OCA/purchase-workflow>`__
- `account_move_cancel_confirm <https://github.com/OCA/account-invoicing>`__

**Table of contents**

.. contents::
:local:

Configuration
=============

By default, the cancel confirm will be disabled (to ensure no side
effect on other module unit test)

To enable cancel confirm wizard, please add System Parameter
(ir.config_parameter) for each extended module.

For example,

- sale_cancel_confirm, add sale.order.cancel_confirm_disable = False
- purchase_cancel_confirm, add purchase.order.cancel_confirm_disable =
False

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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
`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**>`_.

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

Credits
=======

Authors
-------

* Ecosoft

Contributors
------------

- Kitti U. <kittiu@ecosoft.co.th>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px
:target: https://github.com/kittiu
:alt: kittiu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-kittiu|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions base_cancel_confirm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import wizard
from . import model
20 changes: 20 additions & 0 deletions base_cancel_confirm/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2020 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Base Cancel Confirm",
"version": "17.0.1.0.0",
"author": "Ecosoft,Odoo Community Association (OCA)",
"category": "Usability",
"license": "AGPL-3",
"website": "https://github.com/OCA/server-ux",
"depends": ["base", "web"],
"data": [
"wizard/cancel_confirm.xml",
"security/ir.model.access.csv",
"views/cancel_confirm_template.xml",
],
"auto_install": False,
"installable": True,
"maintainers": ["kittiu"],
}
129 changes: 129 additions & 0 deletions base_cancel_confirm/i18n/base_cancel_confirm.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_cancel_confirm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: base_cancel_confirm
#: model:ir.model.fields,help:base_cancel_confirm.field_base_cancel_confirm__cancel_confirm
msgid "A flag signify that this document is confirmed for cancellation"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,help:base_cancel_confirm.field_base_cancel_confirm__cancel_reason
msgid "An optional cancel reason"
msgstr ""

#. module: base_cancel_confirm
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
msgid "Are you sure to cancel this document?"
msgstr ""

#. module: base_cancel_confirm
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
msgid "Cancel"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model,name:base_cancel_confirm.model_cancel_confirm
msgid "Cancel Confirm"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.actions.act_window,name:base_cancel_confirm.action_cancel_confirm_wizard
#: model:ir.model,name:base_cancel_confirm.model_base_cancel_confirm
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
msgid "Cancel Confirmation"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_base_cancel_confirm__cancel_confirm
msgid "Cancel Confirmed"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_base_cancel_confirm__cancel_reason
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__cancel_reason
msgid "Cancel Reason"
msgstr ""

#. module: base_cancel_confirm
#. odoo-python
#: code:addons/base_cancel_confirm/model/base_cancel_confirm.py:0
#, python-format
msgid "Configuration Error (%s), should be 'True' or 'False'"
msgstr ""

#. module: base_cancel_confirm
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
msgid "Confirm"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__create_uid
msgid "Created by"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__create_date
msgid "Created on"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__display_name
msgid "Display Name"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__has_cancel_reason
msgid "Has Cancel Reason"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__id
msgid "ID"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__write_uid
msgid "Last Updated by"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields,field_description:base_cancel_confirm.field_cancel_confirm__write_date
msgid "Last Updated on"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields.selection,name:base_cancel_confirm.selection__cancel_confirm__has_cancel_reason__no
msgid "None"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields.selection,name:base_cancel_confirm.selection__cancel_confirm__has_cancel_reason__optional
msgid "Optional"
msgstr ""

#. module: base_cancel_confirm
#: model:ir.model.fields.selection,name:base_cancel_confirm.selection__cancel_confirm__has_cancel_reason__required
msgid "Required"
msgstr ""

#. module: base_cancel_confirm
#: model_terms:ir.ui.view,arch_db:base_cancel_confirm.view_cancel_confirm_wizard
msgid "or"
msgstr ""