Skip to content

Commit

Permalink
[MIG] sale_tier_validation: Migration to v13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sergio-teruel authored and aphon61bank committed Feb 10, 2021
1 parent 397dae3 commit 915ebb0
Show file tree
Hide file tree
Showing 13 changed files with 625 additions and 44 deletions.
70 changes: 48 additions & 22 deletions sale_tier_validation/README.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

====================
Sale Tier Validation
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/13.0/sale_tier_validation
: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-13-0/sale-workflow-13-0-sale_tier_validation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/167/13.0
:alt: Try me on Runbot

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

This module extends the functionality of Sale Orders to support a tier
validation process.

**Table of contents**

.. contents::
:local:

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

Expand Down Expand Up @@ -41,44 +65,46 @@ Additional features:
be generated) can directly do the operation, this is, there is no need for
her/him to request a validation.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/142/12.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.
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 <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_tier_validation%0Aversion:%2013.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
=======

Images
------
Authors
~~~~~~~

* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
* Open Source Integrators

Contributors
------------
~~~~~~~~~~~~

* Mayank Gosai <[email protected]>

Do not contact contributors directly about support or help with technical issues.
* `Tecnativa <https://www.tecnativa.com>`__:

* Sergio Teruel

Maintainer
----------
Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. 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.
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/13.0/sale_tier_validation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 3 additions & 3 deletions sale_tier_validation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"name": "Sale Tier Validation",
"summary": "Extends the functionality of Sale Orders to "
"support a tier validation process.",
"version": "12.0.1.0.0",
"version": "13.0.1.0.0",
"category": "Sale",
"website": "https://github.com/OCA/sale-workflow",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["sale", "base_tier_validation",],
"data": ["views/sale_order_view.xml",],
"depends": ["sale", "base_tier_validation"],
"data": ["views/sale_order_view.xml"],
}
19 changes: 7 additions & 12 deletions sale_tier_validation/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-25 14:07+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: Enric Tobella <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Content-Transfer-Encoding: 8bit\n"
"SO-Revision-Date: 2019-05-08 12:03+0000\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.5.1\n"
"X-Generator: Poedit 2.0.6\n"

#. module: sale_tier_validation
#: model_terms:ir.ui.view,arch_db:sale_tier_validation.sale_order_form_tier
Expand All @@ -37,10 +39,8 @@ msgstr "<i class=\"fa fa-thumbs-up\"/>La operación ha sido <b>validada</b>!"

#. module: sale_tier_validation
#: model_terms:ir.ui.view,arch_db:sale_tier_validation.view_sale_order_filter
#, fuzzy
#| msgid "My sales to review"
msgid "My Sales to review"
msgstr "Mis Compras a revisar"
msgstr "Mis ventas a revisar"

#. module: sale_tier_validation
#: model_terms:ir.ui.view,arch_db:sale_tier_validation.view_sale_order_filter
Expand Down Expand Up @@ -69,10 +69,8 @@ msgstr "SOs validadas y preparadas para ser confirmadas"

#. module: sale_tier_validation
#: model:ir.model,name:sale_tier_validation.model_sale_order
#, fuzzy
#| msgid "sale Order"
msgid "Sale Order"
msgstr "Orden de Compra"
msgid "Sales Order"
msgstr "Pedidos"

#. module: sale_tier_validation
#: model:ir.model,name:sale_tier_validation.model_tier_definition
Expand All @@ -90,6 +88,3 @@ msgstr "Validar"
#: model_terms:ir.ui.view,arch_db:sale_tier_validation.view_sale_order_filter
msgid "Validated"
msgstr "Validada"

#~ msgid "Reviews"
#~ msgstr "Revisiones"
14 changes: 8 additions & 6 deletions sale_tier_validation/i18n/sale_tier_validation.pot
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_tier_validation
# * sale_tier_validation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"POT-Creation-Date: 2020-05-25 14:07+0000\n"
"PO-Revision-Date: 2020-05-25 14:07+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -15,7 +17,8 @@ msgstr ""

#. module: sale_tier_validation
#: model_terms:ir.ui.view,arch_db:sale_tier_validation.sale_order_form_tier
msgid "<i class=\"fa fa-info-circle\"/>This SO needs to be\n"
msgid ""
"<i class=\"fa fa-info-circle\"/>This SO needs to be\n"
" validated."
msgstr ""

Expand Down Expand Up @@ -61,7 +64,7 @@ msgstr ""

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

#. module: sale_tier_validation
Expand All @@ -78,4 +81,3 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:sale_tier_validation.view_sale_order_filter
msgid "Validated"
msgstr ""

2 changes: 1 addition & 1 deletion sale_tier_validation/models/tier_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class TierDefinition(models.Model):

@api.model
def _get_tier_validation_model_names(self):
res = super(TierDefinition, self)._get_tier_validation_model_names()
res = super()._get_tier_validation_model_names()
res.append("sale.order")
return res
4 changes: 4 additions & 0 deletions sale_tier_validation/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To configure this module, you need to:

#. Go to *Settings > Technical > Tier Validations > Tier Definition*.
#. Create as many tiers as you want for Sale Order model.
5 changes: 5 additions & 0 deletions sale_tier_validation/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Mayank Gosai <[email protected]>

* `Tecnativa <https://www.tecnativa.com>`__:

* Sergio Teruel
2 changes: 2 additions & 0 deletions sale_tier_validation/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module extends the functionality of Sale Orders to support a tier
validation process.
2 changes: 2 additions & 0 deletions sale_tier_validation/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module depends on ``base_tier_validation``. You can find it at
`OCA/server-ux <https://github.com/OCA/server-ux>`_
14 changes: 14 additions & 0 deletions sale_tier_validation/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
To use this module, you need to:

#. Create a Sale Order triggering at least one "Tier Definition".
#. Click on *Request Validation* button.
#. Under the tab *Reviews* have a look to pending reviews and their statuses.
#. Once all reviews are validated click on *Confirm Order*.

Additional features:

* You can filter the SOs requesting your review through the filter *Needs my
Review*.
* User with rights to confirm the SO (validate all tiers that would
be generated) can directly do the operation, this is, there is no need for
her/him to request a validation.
Loading

0 comments on commit 915ebb0

Please sign in to comment.