Skip to content

Commit

Permalink
Merge pull request #63 from kmee/add/sale_crm_auto_won
Browse files Browse the repository at this point in the history
[ADD] Addon: sale_crm_auto_won
  • Loading branch information
mileo authored Oct 29, 2024
2 parents abec566 + 7bf3a11 commit b65dc75
Show file tree
Hide file tree
Showing 11 changed files with 563 additions and 0 deletions.
79 changes: 79 additions & 0 deletions sale_crm_auto_won/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
=================
Sale Crm Auto Won
=================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:92d19c7524b52c22231d147bdc51078dbe319ddc2619b1979d319f6aefd02234
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-KMEE%2Fkmee--odoo--addons-lightgray.png?logo=github
:target: https://github.com/KMEE/kmee-odoo-addons/tree/16.0/sale_crm_auto_won
:alt: KMEE/kmee-odoo-addons

|badge1| |badge2| |badge3|

This module marks an opportunity as Won, when the quotation created
through it has been confirmed.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

- Go to *CRM*.

- Create an opportunity.

- In the form for this opportunity, create a quotation by clicking on
"NEW QUOTATION".

- In the quote created, add a product and click the "confirm" button.

Now the opportunity has the status "Won".

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

Bugs are tracked on `GitHub Issues <https://github.com/KMEE/kmee-odoo-addons/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/KMEE/kmee-odoo-addons/issues/new?body=module:%20sale_crm_auto_won%0Aversion:%2016.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
-------

* KMEE

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

- ``KMEE <https://kmee.com.br/>``\ \_:

- Tiago Amaral [email protected]

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

This module is part of the `KMEE/kmee-odoo-addons <https://github.com/KMEE/kmee-odoo-addons/tree/16.0/sale_crm_auto_won>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions sale_crm_auto_won/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
12 changes: 12 additions & 0 deletions sale_crm_auto_won/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2024 KMEE
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Sale Crm Auto Won",
"summary": """KMEE""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "KMEE, Odoo Community Association (OCA)",
"website": "https://github.com/KMEE/kmee-odoo-addons",
"depends": ["sale_crm"],
}
1 change: 1 addition & 0 deletions sale_crm_auto_won/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_order
15 changes: 15 additions & 0 deletions sale_crm_auto_won/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2024 KMEE
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class SaleOrder(models.Model):

_inherit = "sale.order"

def action_confirm(self):
for sale in self:
if sale.opportunity_id:
sale.opportunity_id.action_set_won_rainbowman()
return super().action_confirm()
3 changes: 3 additions & 0 deletions sale_crm_auto_won/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `KMEE <https://kmee.com.br/>`_:

* Tiago Amaral <[email protected]>
1 change: 1 addition & 0 deletions sale_crm_auto_won/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module marks an opportunity as Won, when the quotation created through it has been confirmed.
11 changes: 11 additions & 0 deletions sale_crm_auto_won/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To use this module, you need to:

- Go to *CRM*.

- Create an opportunity.

- In the form for this opportunity, create a quotation by clicking on "NEW QUOTATION".

- In the quote created, add a product and click the "confirm" button.

Now the opportunity has the status "Won".
Loading

0 comments on commit b65dc75

Please sign in to comment.