Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
3f57efe
[MRG] from master branch
Aug 13, 2013
ee1706d
[FIX] sale cancel reason dependence
nbessi Aug 9, 2013
7bb6f84
[FIX] sale_cancel_reason: remove dependency on sale_stock
Aug 9, 2013
1f9699f
spellcheck
gurneyalex Nov 29, 2013
13f13f6
[FIX] repository PEP8
eLBati Aug 7, 2014
6bd9427
[FIX] Still some PEP8 erros
eLBati Aug 7, 2014
428417e
- Set as uninstallable and moved to __unported__ dir all modules.
pedrobaeza Aug 7, 2014
4d2affe
reactivate sale_cancel_reason
yvaucher Aug 25, 2014
42872b4
port models and method to api 8.0
yvaucher Aug 25, 2014
854e3b0
Improve override of cancel button to ease inheritance of view
yvaucher Jan 27, 2015
f9c41c6
[FIX] typo on class name
rdeheele Feb 17, 2015
da72162
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
f950d2a
Added Finnish translations
mlaitinen May 22, 2015
c6bf43b
[FIX] cancel button of orignal view should be hide after installation…
dhp-denero Jul 16, 2015
090f18b
Add missing default oca icons
yvaucher Aug 18, 2015
fcd3ea1
Slovene translations added
sysadminmatmoz Aug 20, 2015
0b27575
bump version of sale_cancel_reason
yvaucher Aug 28, 2015
95ffb1f
OCA Transbot updated translations from Transifex
oca-transbot Sep 13, 2015
d19a4fb
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
e2b8539
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
8280eca
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
3249d2b
[MIG] sale_cancel_reason Migration to 10.0 (#477)
kittiu May 30, 2017
de1ab81
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
6f5444d
Translated using Weblate (Portuguese)
pedrocs-exo Nov 24, 2018
dd0a353
[MIG] sale_cancel_reason: Migration to 12.0
Mar 25, 2019
d583fc1
Translated using Weblate (German)
marylla Jul 15, 2019
454fabf
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
1f3f4e3
[12.0][FIX] Sale Order Cancel Reasons menu configuration
Nov 11, 2019
65fe910
sale_cancel_reason 12.0.1.1.0
OCA-git-bot Nov 11, 2019
a8c9fc5
Translated using Weblate (Spanish (Chile))
Jan 3, 2020
4dd3581
[FIX] sale_cancel_reason: fix access for salesteam salesman group
skeller1 Jun 4, 2020
97cf9fb
sale_cancel_reason 12.0.1.2.0
OCA-git-bot Jul 19, 2020
98a8865
Translated using Weblate (Slovenian)
sysadminmatmoz Aug 11, 2020
50e86bf
[FIX] pep8 and pylint
renatonlima Sep 4, 2020
31b4012
[IMP] sale_cancel_reason: black, isort, prettier
alan196 Oct 31, 2020
318b2e8
[MIG] sale_cancel_reason: Migration to 13.0
alan196 Oct 31, 2020
9d930b0
Translated using Weblate (Dutch)
Mar 10, 2021
083cc62
Translated using Weblate (Spanish)
brendapaniagua Mar 19, 2021
d68800f
Translated using Weblate (French)
vincent-hatakeyama Nov 12, 2021
d21c218
[IMP] sale_cancel_reason: black, isort, prettier
ao-landoo Aug 12, 2022
cd5d62b
[MIG] sale_cancel_reason: Migration to 14.0
ao-landoo Aug 12, 2022
cdc9e03
sale_cancel_reason 14.0.1.0.1
OCA-git-bot Aug 17, 2022
183aaee
[IMP] sale_cancel_reason: Do not copy cancel reason on order duplicate
ao-landoo Aug 19, 2022
7b5ded9
sale_cancel_reason 14.0.1.1.0
OCA-git-bot Aug 30, 2022
c7b921b
Translated using Weblate (Italian)
mymage Mar 23, 2023
d7bd25a
Translated using Weblate (Slovenian)
sysadminmatmoz Apr 11, 2023
30813d8
Translated using Weblate (Italian)
mymage Apr 15, 2023
7240c9d
[MIG] sale_cancel_reason: Migration to 16.0
Apr 17, 2023
09f95b3
[MIG] sale_cancel_reason: fix test and pre-commit
Apr 17, 2023
29144fa
[UPD]sale_cancel_reason change setUp to setUpClass
Apr 18, 2023
d1a8f47
[16.0][IMP]sale_cancel_reason: set reason to false when status is != …
Apr 20, 2023
2e00dc7
sale_cancel_reason 16.0.1.0.1
OCA-git-bot Apr 20, 2023
ab18e83
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 12, 2023
d17b4b3
Translated using Weblate (Spanish)
Ivorra78 Jul 25, 2023
93c6ef1
[IMP] sale_cancel_reason: pre-commit auto fixes
maciej-wichowski Apr 9, 2024
0dd27ac
[MIG] sale_cancel_reason: migration to 17.0
maciej-wichowski Apr 9, 2024
584ef75
Translated using Weblate (Italian)
mymage Apr 17, 2024
56da023
Translated using Weblate (Spanish)
Ivorra78 Apr 23, 2024
178c840
Translated using Weblate (Swedish)
jakobkrabbe Jun 12, 2024
defbde1
[IMP] sale_cancel_reason: pre-commit auto fixes
bizzappdev Dec 17, 2024
33dc969
[MIG] sale_cancel_reason: Migration to 18.0
bizzappdev Dec 17, 2024
2006788
[IMP] sale_cancel_reason: pre-commit auto fixes
NachoAlesLopez Jan 14, 2026
3e76d24
[MIG] sale_cancel_reason: Migration to 19.0
NachoAlesLopez Jan 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions sale_cancel_reason/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==================
Sale Cancel Reason
==================

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

.. |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/license-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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/19.0/sale_cancel_reason
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-19-0/sale-workflow-19-0-sale_cancel_reason
: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/sale-workflow&target_branch=19.0
:alt: Try me on Runboat

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

When a sale order is canceled, a reason must be given, it is chosen from
a configured list.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

- Click at "Cancel Order" button from a sales order which state equal
to Draft, Quotation or Sales Order
- A wizard will show a list of cancel reasons
- Choose a reason and confirm cancellation, the reason will be stamped
in the sales order

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/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/sale-workflow/issues/new?body=module:%20sale_cancel_reason%0Aversion:%2019.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
-------

* Camptocamp

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

- Guewen Baconnier, Camptocamp SA
- Kitti U. <kittiu@ecosoft.co.th>
- Victor M.M Torres <victor.martin@tecnativa.com>
- Bhavesh Odedra <bodedra@opensourceintegrators.com>
- Alan Ramos <alan.ramos@jarsa.com.mx>
- Aritz Olea <ao@landoo.es>, Landoo SL
- Hugo Córdoba <hugo.cordoba@factorlibre.com>
- Maciej Wichowski <maciej@versada.eu>

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.

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/19.0/sale_cancel_reason>`_ 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 sale_cancel_reason/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2013 Guewen Baconnier, Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import wizard
from . import model
24 changes: 24 additions & 0 deletions sale_cancel_reason/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2013 Guewen Baconnier, Camptocamp SA
# Copyright 2019 Victor M.M. Torres, Tecnativa SL
# Copyright 2022 Aritz Olea, Landoo SL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Sale Cancel Reason",
"version": "19.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"category": "Sale",
"license": "AGPL-3",
"complexity": "normal",
"website": "https://github.com/OCA/sale-workflow",
"depends": ["sale"],
"data": [
"data/sale_order_cancel_reason.xml",
"security/ir.model.access.csv",
"view/sale_view.xml",
"wizard/sale_order_cancel_wizard_views.xml",
"wizard/mass_cancel_orders_view.xml",
],
"auto_install": False,
"installable": True,
}
12 changes: 12 additions & 0 deletions sale_cancel_reason/data/sale_order_cancel_reason.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="cancel_reason_only_quotation" model="sale.order.cancel.reason">
<field name="name">Just for Quotation</field>
</record>
<record id="cancel_reason_no_service_needed" model="sale.order.cancel.reason">
<field name="name">Service no longer needed</field>
</record>
<record id="cancel_reason_other_provider" model="sale.order.cancel.reason">
<field name="name">Other Service Provider selected</field>
</record>
</odoo>
115 changes: 115 additions & 0 deletions sale_cancel_reason/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_cancel_reason
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: sale_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_mass_cancel_orders
msgid "Cancel multiple quotations"
msgstr ""

#. module: sale_cancel_reason
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_order_form
msgid "Cancellation reason:"
msgstr ""

#. module: sale_cancel_reason
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel
msgid ""
"Choose the reason for the cancellation of the\n"
" sale order."
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__create_date
msgid "Created on"
msgstr "Creado en"

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__display_name
msgid "Display Name"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__id
msgid "ID"
msgstr "ID"

#. module: sale_cancel_reason
#: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_only_quotation
msgid "Just for Quotation"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: sale_cancel_reason
#: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_other_provider
msgid "Other Service Provider selected"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_mass_cancel_orders__reason_id
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel__reason_id
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__name
msgid "Reason"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order__cancel_reason_id
msgid "Reason for cancellation"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.actions.act_window,name:sale_cancel_reason.action_sale_order_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_order_cancel_reason
msgid "Sale Order Cancel Reason"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.ui.menu,name:sale_cancel_reason.menu_sale_order_cancel_reason
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel_reason_form
msgid "Sale Order Cancel Reasons"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_order_cancel
msgid "Sales Order Cancel"
msgstr ""

#. module: sale_cancel_reason
#: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_no_service_needed
msgid "Service no longer needed"
msgstr ""
119 changes: 119 additions & 0 deletions sale_cancel_reason/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_cancel_reason
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: sale_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_mass_cancel_orders
msgid "Cancel multiple quotations"
msgstr ""

#. module: sale_cancel_reason
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_order_form
msgid "Cancellation reason:"
msgstr ""

#. module: sale_cancel_reason
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel
msgid ""
"Choose the reason for the cancellation of the\n"
" sale order."
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__create_uid
msgid "Created by"
msgstr "أنشئ بواسطة"

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__create_date
msgid "Created on"
msgstr "أنشئ في"

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__display_name
msgid "Display Name"
msgstr "اسم العرض"

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__id
msgid "ID"
msgstr "المعرف"

#. module: sale_cancel_reason
#: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_only_quotation
msgid "Just for Quotation"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__write_uid
msgid "Last Updated by"
msgstr "آخر تحديث بواسطة"

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__write_date
msgid "Last Updated on"
msgstr "آخر تحديث في"

#. module: sale_cancel_reason
#: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_other_provider
msgid "Other Service Provider selected"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_mass_cancel_orders__reason_id
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel__reason_id
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order_cancel_reason__name
msgid "Reason"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model.fields,field_description:sale_cancel_reason.field_sale_order__cancel_reason_id
msgid "Reason for cancellation"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.actions.act_window,name:sale_cancel_reason.action_sale_order_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_order_cancel_reason
msgid "Sale Order Cancel Reason"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.ui.menu,name:sale_cancel_reason.menu_sale_order_cancel_reason
#: model_terms:ir.ui.view,arch_db:sale_cancel_reason.view_sale_order_cancel_reason_form
msgid "Sale Order Cancel Reasons"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_cancel_reason
#: model:ir.model,name:sale_cancel_reason.model_sale_order_cancel
msgid "Sales Order Cancel"
msgstr ""

#. module: sale_cancel_reason
#: model:sale.order.cancel.reason,name:sale_cancel_reason.cancel_reason_no_service_needed
msgid "Service no longer needed"
msgstr ""

#~ msgid "Last Modified on"
#~ msgstr "آخر تعديل في"
Loading
Loading