Skip to content

Commit

Permalink
[IMP/ADD]sale_cancel_reason:Improved the indentation problem and adde…
Browse files Browse the repository at this point in the history
…d README.rst file
  • Loading branch information
SerpentCS committed Feb 19, 2016
1 parent 9298ca8 commit 4d9ff81
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 16 deletions.
76 changes: 76 additions & 0 deletions sale_cancel_reason/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.. image:: https://img.shields.io/badge/license-AGPLv3-blue.svg
:target: https://www.gnu.org/licenses/agpl.html
:alt: License: AGPL-3

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

This module introduce the following features:

* This module allows cancel sale order and reason must be given.

* It is chosen from a configured list.

Installation
=============

No external library is used.

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

* To configure this module, you need to:

* You can cofigure cancel reason from Sale -> Configuration -> Sale Order Cancel Reason.

Usage
=====

To use this module, you need to:

* Go to ...

For further information, please visit:

* https://www.odoo.com/forum/help-1


Known issues / Roadmap
======================

* ...


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 smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale-workflow%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/sale-workflow/blob/9.0/sale_cancel_reason/static/description/icon.png>`_.

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

* Camptocamp, Odoo Community Association (OCA)
* Serpent Consulting Services Pvt. Ltd.


Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.
23 changes: 8 additions & 15 deletions sale_cancel_reason/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,21 @@
{
'name': 'Sale Cancel Reason',
'version': '9.0.1.0.0',
'author': 'Camptocamp, Odoo Community Association (OCA),'
', Serpent Consulting Services Pvt. Ltd.',
'author': 'Camptocamp, Odoo Community Association (OCA), '
'Serpent Consulting Services Pvt. Ltd.',
'category': 'Sale',
'license': 'AGPL-3',
'complexity': 'normal',
'images': [],
'website': "http://www.camptocamp.com",
'description': """
Sale Cancel Reason
==================
When a sale order is cancelled, a reason must be given,
it is chosen from a configured list.
""",
'depends': ['sale'],
'data': ['wizard/cancel_reason_view.xml',
'views/sale_view.xml',
'security/ir.model.access.csv',
'data/sale_order_cancel_reason.xml',
],
'test': ['test/sale_order_cancel.yml'],
'installable': True,
'application': True,
'auto_install': False,
}
'test': ['test/sale_order_cancel.yml'],
'installable': True,
'application': True,
'auto_install': False,
}
4 changes: 3 additions & 1 deletion sale_cancel_reason/wizard/cancel_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ def confirm_cancel(self):
if sale.state in QUOTATION_STATES:
sale.action_cancel()
else:
raise UserError(_('You cannot cancel the Quotation/Order in the current state!'))
raise UserError(_
('You cannot cancel the'
' Quotation/Order in the current state!'))
return act_close

0 comments on commit 4d9ff81

Please sign in to comment.