Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7f939ce
Add the module purchase_cancel_reason. Copy/past from the module sale…
sylvainvh Mar 2, 2018
269cfbf
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
c995df8
[IMP] purchase_cancel_reason: black, isort, prettier
PrapassornS Mar 24, 2021
b7dbc34
[MIG] purchase_cancel_reason: Migration to 14.0
PrapassornS Mar 24, 2021
6f3dc6a
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 3, 2022
31b4056
Translated using Weblate (Italian)
francesco-ooops Nov 16, 2022
4d4d7f3
Translated using Weblate (Italian)
francesco-ooops Nov 17, 2022
194f9d6
[IMP] purchase_cancel_reason: black, isort, prettier
pierre-halleux Feb 22, 2023
82011bd
[MIG] migrate purchase_cancel_reason: Migration to 16.0
pierre-halleux Feb 23, 2023
cf553dd
[IMP] purchase_cancel_reason: in wizard replace assert by a UserError
pierre-halleux Feb 23, 2023
69e97d1
[REF] purchase_cancel_reason: reorganize module
pierre-halleux Apr 12, 2023
ced3d36
[IMP] purchase_cancel_reason: check active_model on cancel
pierre-halleux Apr 12, 2023
ac7cb9f
[IMP] purchase_cancel_reason: allow cancelling several order at a time
pierre-halleux Apr 12, 2023
660c772
[IMP] purchase_cancel_reason: improve style
pierre-halleux Nov 7, 2023
71ff9d2
[IMP] purchase_cancel_reason: pre-commit auto fixes
May 13, 2024
aa7aaa3
[IMP] purchase_cancel_reason: Migration to 17.0
May 13, 2024
473d18e
[UPD] Update purchase_cancel_reason.pot
May 27, 2024
66cf440
[BOT] post-merge updates
OCA-git-bot May 27, 2024
a150672
Update translation files
weblate May 27, 2024
ca0f2ad
Translated using Weblate (Italian)
mymage May 27, 2024
773ff5e
Translated using Weblate (Swedish)
jakobkrabbe Jun 11, 2024
4733afb
Translated using Weblate (Italian)
mymage Jul 4, 2024
335a286
[IMP] purchase_cancel_reason: pre-commit auto fixes
BhaveshHeliconia Dec 13, 2024
d4dd248
[MIG] purchase_cancel_reason: Migration to 18.0
BhaveshHeliconia Dec 13, 2024
45e88df
[UPD] Update purchase_cancel_reason.pot
Jan 6, 2025
f947ba4
[BOT] post-merge updates
OCA-git-bot Jan 6, 2025
7c85c0b
Update translation files
weblate Jan 6, 2025
ae2ba04
Translated using Weblate (Italian)
mymage Jan 7, 2025
73202a5
Translated using Weblate (Japanese)
Ryoko04 Nov 20, 2025
7498257
Translated using Weblate (Slovenian)
sysadminmatmoz Jan 22, 2026
1a55c25
Translated using Weblate (Spanish)
Ed-Spain Apr 19, 2026
f46af7e
[IMP] purchase_cancel_reason: pre-commit auto fixes
BhaveshHeliconia Apr 24, 2026
a7fd3ed
[MIG] purchase_cancel_reason: Migration to 19.0
BhaveshHeliconia Apr 24, 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 purchase_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

======================
Purchase Cancel Reason
======================

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

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

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

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

**Table of contents**

.. contents::
:local:

Usage
=====

- During purchase order state equal to Draft, RFQ Sent or Purchase Order
- Click at "Cancel" button, a wizard will show a list of cancel reasons
- Choose a reason and confirm cancellation, the reason will be stamped
in the purchase order

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-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/purchase-workflow/issues/new?body=module:%20purchase_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
* Okia SPRL

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

- Guewen Baconnier, Camptocamp SA
- Sylvain Van Hoof <sylvain@okia.be>
- `Ecosoft <http://ecosoft.co.th>`__:

- Kitti U. <kittiu@ecosoft.co.th>
- Tharathip C. <tharathipc@ecosoft.co.th>

- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/19.0/purchase_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 purchase_cancel_reason/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2013 Guewen Baconnier, Camptocamp SA
# Copyright 2017 Okia SPRL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import wizard
from . import models
22 changes: 22 additions & 0 deletions purchase_cancel_reason/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2013 Guewen Baconnier, Camptocamp SA
# Copyright 2017 Okia SPRL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Purchase Cancel Reason",
"version": "19.0.1.0.0",
"author": "Camptocamp, Okia SPRL, Odoo Community Association (OCA)",
"category": "Purchase",
"license": "AGPL-3",
"complexity": "normal",
"website": "https://github.com/OCA/purchase-workflow",
"depends": ["purchase"],
"data": [
"security/ir.model.access.csv",
"wizard/purchase_order_cancel.xml",
"views/purchase_order.xml",
"views/purchase_order_cancel_reason.xml",
"data/purchase_order_cancel_reason.xml",
],
"auto_install": False,
"installable": True,
}
12 changes: 12 additions & 0 deletions purchase_cancel_reason/data/purchase_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="purchase.order.cancel.reason">
<field name="name">Just for Quotation</field>
</record>
<record id="cancel_reason_no_service_needed" model="purchase.order.cancel.reason">
<field name="name">Service no longer needed</field>
</record>
<record id="cancel_reason_other_provider" model="purchase.order.cancel.reason">
<field name="name">Other Service Provider selected</field>
</record>
</odoo>
149 changes: 149 additions & 0 deletions purchase_cancel_reason/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_cancel_reason
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-03 03:48+0000\n"
"PO-Revision-Date: 2018-03-03 03:48+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\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: purchase_cancel_reason
#: model:ir.model,name:purchase_cancel_reason.model_purchase_order_cancel
msgid "Ask a reason for the purchase order cancellation."
msgstr ""

#. module: purchase_cancel_reason
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.purchase_order_form
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.purchase_order_kpis_tree
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.purchase_order_view_tree
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.view_purchase_order_cancel
msgid "Cancel"
msgstr ""

#. module: purchase_cancel_reason
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.view_purchase_order_cancel
msgid ""
"Choose the reason for the cancellation of the\n"
" purchase order."
msgstr ""

#. module: purchase_cancel_reason
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.view_purchase_order_cancel
msgid "Confirm"
msgstr ""

#. module: purchase_cancel_reason
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel__create_uid
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel_reason__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: purchase_cancel_reason
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel__create_date
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel_reason__create_date
msgid "Created on"
msgstr "Creado en"

#. module: purchase_cancel_reason
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel__display_name
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel_reason__display_name
msgid "Display Name"
msgstr ""

#. module: purchase_cancel_reason
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel__id
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel_reason__id
msgid "ID"
msgstr "ID"

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

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

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

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

#. module: purchase_cancel_reason
#: model:ir.model,name:purchase_cancel_reason.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_cancel_reason
#: model:ir.actions.act_window,name:purchase_cancel_reason.action_purchase_order_cancel_reason
#: model:ir.model,name:purchase_cancel_reason.model_purchase_order_cancel_reason
msgid "Purchase Order Cancel Reason"
msgstr ""

#. module: purchase_cancel_reason
#: model:ir.ui.menu,name:purchase_cancel_reason.menu_purchase_order_cancel_reason
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.view_purchase_order_cancel_reason_form
msgid "Purchase Order Cancel Reasons"
msgstr ""

#. module: purchase_cancel_reason
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel__reason_id
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order_cancel_reason__name
msgid "Reason"
msgstr ""

#. module: purchase_cancel_reason
#. odoo-python
#: code:addons/purchase_cancel_reason/models/purchase_order.py:0
msgid "Reason for Cancellation"
msgstr ""

#. module: purchase_cancel_reason
#: model:ir.model.fields,field_description:purchase_cancel_reason.field_purchase_order__cancel_reason_id
msgid "Reason for cancellation"
msgstr ""

#. module: purchase_cancel_reason
#: model:ir.actions.act_window,name:purchase_cancel_reason.action_purchase_order_cancel
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.view_purchase_order_cancel
msgid "Reason for the cancellation"
msgstr ""

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

#. module: purchase_cancel_reason
#. odoo-python
#: code:addons/purchase_cancel_reason/models/purchase_order.py:0
msgid ""
"You cannot cancel any of the selected orders as they are all in 'Done' or "
"'Canceled' state:\n"
"%s"
msgstr ""

#. module: purchase_cancel_reason
#: model_terms:ir.ui.view,arch_db:purchase_cancel_reason.view_purchase_order_cancel
msgid "or"
msgstr ""
Loading
Loading