Skip to content

Commit

Permalink
Merge a7d077a into 65029cb
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-willdooit committed Feb 4, 2020
2 parents 65029cb + a7d077a commit 9b2bb76
Show file tree
Hide file tree
Showing 31 changed files with 1,270 additions and 0 deletions.
105 changes: 105 additions & 0 deletions sale_quotation_number/README.rst
@@ -0,0 +1,105 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=====================
Sale quotation number
=====================

* Sale Quotation:
* Sale process in draft stage just informing prices and element of communication.

* Sale Order:
* Sale process confirmed, the customer already have a compromise with us in terms of pay an invoice and receive our product or service.

Originally Odoo manage only 1 sequence for this 2 documents, then the sales order won and lost manage the same sequence losing
almost all lost quotations in terms of sequences, making so difficult understand with a quick view if we are good or bad in terms of
logistic and sale process already confirmed.


**Technical Explanation**

When you create a quotation, it is numbered using the 'sale.quotation'
sequence. When you confirm a quotation, its orginal number is saved in the
'origin' field and the sale order gets a new number, retrieving it from
'sale.order' sequence.

* With Odoo Base:

Sale Quotation 1 Number = SO001

Sale Quotation 2 Number = SO002

Sale Quotation 3 Number = SO003

Sale Quotation 4 Number = SO004

* With Odoo + This Module:

Sale Quotation 1 Number = SQ001

Sale Quotation 2 Number = SQ002

Sale Quotation 3 Number = SQ003

Sale Quotation 4 Number = SQ004

Sale Quotation 2 Confirmed = Number for Sale Order SO001 from Sale Quotation SQ002

Sale Quotation 1 Confirmed = Number for Sale Order SO002 from Sale Quotation SQ001

Sale Quotation 4 Confirmed = Number for Sale Order SO003 from Sale Quotation SQ004

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

To configure this module you need to go to Sales -> Configuration and uncheck 'Use same enumeration for quotations and sale orders'.

Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/167/11.0

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 smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

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

* Andy Lu <andy.lu@elico-corp.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Valentin Vinagre Urteaga <valentin.vinagre@qubiq.es>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Richard deMeester <richard.demeester@willdooit.com>

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

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://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 https://odoo-community.org.
3 changes: 3 additions & 0 deletions sale_quotation_number/__init__.py
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from . import models
25 changes: 25 additions & 0 deletions sale_quotation_number/__manifest__.py
@@ -0,0 +1,25 @@
# Copyright 2010-2012 Andy Lu <andy.lu@elico-corp.com> (Elico Corp)
# Copyright 2013 Agile Business Group sagl (<http://www.agilebg.com>)
# Copyright 2017 valentin vinagre <valentin.vinagre@qubiq.es> (QubiQ)
# Richard deMeester <richard.demeester@willdooit.com> (Willdoo IT)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

{
'name': 'Sale Quotation Numeration',
'summary': "Different sequence for sale quotations",
'version': '12.0.1.1.0',
'category': 'Sales Management',
'website': 'https://odoo-community.org/',
'author': 'Elico Corp, '
'Agile Business Group, '
'Qubiq, '
'Odoo Community Association (OCA)',
"license": "AGPL-3",
"application": False,
"installable": True,
'depends': ['sale_management'],
'data': [
'data/data.xml',
'views/sales_config.xml'
],
}
20 changes: 20 additions & 0 deletions sale_quotation_number/data/data.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2010-2012 Andy Lu <andy.lu@elico-corp.com> (Elico Corp)
Copyright 2013 Agile Business Group sagl (<http://www.agilebg.com>)
Copyright 2017 valentin vinagre <valentin.vinagre@qubiq.es> (QubiQ)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
-->

<odoo noupdate="1">

<!-- Sequence for sale.quotation -->
<record id="seq_sale_quotation" model="ir.sequence">
<field name="name">Sales Quotation</field>
<field name="code">sale.quotation</field>
<field name="prefix">SQ</field>
<field name="padding">3</field>
<field name="company_id" eval="False"/>
</record>

</odoo>
51 changes: 51 additions & 0 deletions sale_quotation_number/i18n/ca.po
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_quotation_number
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-14 06:38+0000\n"
"PO-Revision-Date: 2015-09-03 07:10+0000\n"
"Last-Translator: <>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/ca/)\n"
"Language: ca\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_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_company
msgid "Companies"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model.fields,help:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,help:sale_quotation_number.field_res_config_settings_keep_name_so
#: model:ir.ui.view,arch_db:sale_quotation_number.res_config_settings_view_config_quotation_number
msgid ""
"If this is unchecked, quotations use a different sequence from sale orders"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_sale_order
msgid "Quotation"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_config_settings_keep_name_so
msgid "Use Same Enumeration"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_config_settings
msgid "res.config.settings"
msgstr ""

#~ msgid "Sales Order"
#~ msgstr "Comandes de venda"
52 changes: 52 additions & 0 deletions sale_quotation_number/i18n/de.po
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_quotation_number
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-09 12:27+0000\n"
"PO-Revision-Date: 2019-07-17 11:43+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/de/)\n"
"Language: de\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"
"X-Generator: Weblate 3.7.1\n"

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_company
msgid "Companies"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model.fields,help:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,help:sale_quotation_number.field_res_config_settings_keep_name_so
#: model:ir.ui.view,arch_db:sale_quotation_number.res_config_settings_view_config_quotation_number
msgid ""
"If this is unchecked, quotations use a different sequence from sale orders"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_sale_order
msgid "Quotation"
msgstr "Angebot"

#. module: sale_quotation_number
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_config_settings_keep_name_so
msgid "Use Same Enumeration"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_config_settings
msgid "res.config.settings"
msgstr ""

#~ msgid "Sales Order"
#~ msgstr "Verkaufsauftrag"
51 changes: 51 additions & 0 deletions sale_quotation_number/i18n/es.po
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_quotation_number
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-09 12:27+0000\n"
"PO-Revision-Date: 2015-09-03 07:10+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/es/)\n"
"Language: es\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_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_company
msgid "Companies"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model.fields,help:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,help:sale_quotation_number.field_res_config_settings_keep_name_so
#: model:ir.ui.view,arch_db:sale_quotation_number.res_config_settings_view_config_quotation_number
msgid ""
"If this is unchecked, quotations use a different sequence from sale orders"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_sale_order
msgid "Quotation"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_config_settings_keep_name_so
msgid "Use Same Enumeration"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_config_settings
msgid "res.config.settings"
msgstr ""

#~ msgid "Sales Order"
#~ msgstr "Pedido de venta"
51 changes: 51 additions & 0 deletions sale_quotation_number/i18n/es_ES.po
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_quotation_number
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-10-04 13:41+0000\n"
"PO-Revision-Date: 2015-09-03 07:10+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (Spain) (http://www.transifex.com/oca/OCA-sale-"
"workflow-8-0/language/es_ES/)\n"
"Language: es_ES\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_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_company
msgid "Companies"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model.fields,help:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,help:sale_quotation_number.field_res_config_settings_keep_name_so
#: model:ir.ui.view,arch_db:sale_quotation_number.res_config_settings_view_config_quotation_number
msgid ""
"If this is unchecked, quotations use a different sequence from sale orders"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_sale_order
msgid "Quotation"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_company_keep_name_so
#: model:ir.model.fields,field_description:sale_quotation_number.field_res_config_settings_keep_name_so
msgid "Use Same Enumeration"
msgstr ""

#. module: sale_quotation_number
#: model:ir.model,name:sale_quotation_number.model_res_config_settings
msgid "res.config.settings"
msgstr ""

#~ msgid "Sales Order"
#~ msgstr "Pedido de venta"

0 comments on commit 9b2bb76

Please sign in to comment.