Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][MIG] stock_available_immediately: Migration to 15.0 #1588

Merged
merged 22 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
aecd6d5
[ADD] moved modules
nbessi Apr 24, 2012
66af15a
[MRG] stock_available_immediately from c2c-ecom-addons
Mar 14, 2012
d83a4a3
[IMP] stock_available_immediately: licensed under AGPL-3 instead of G…
Mar 14, 2012
c0afc2c
[MIGR] Make all module uninstallable until we start migrating them.
jgrandguillaume Feb 13, 2013
aba0c16
Migrate stock_available_immediately to 7.0
lmignon Dec 16, 2013
20f20fc
[UPD] move out from unported to 8 for update
gfcapalbo Nov 18, 2014
14621dd
[ADD] stock_available
Feb 27, 2015
cce56e8
[FIX] corrected calculation of immediately_usable_qty on product.prod…
gfcapalbo Mar 18, 2015
fbff9fb
Fix the beta lint checks of Travis
Sep 16, 2015
fabdb82
[9.0][PORT] Stock available immediately
atchuthan Feb 10, 2016
2b5d283
product_available improvements
gurneyalex Oct 26, 2015
0fa0ade
[IMP] Decouple the quantity for templates and variants
Nov 6, 2015
e1ea85e
[10.0][MIG] stock_available & stock_available_immediately (#219)
SodexisTeam Nov 25, 2016
649967b
[10.0][CHG]stock_available...: improve stock methods computation
May 9, 2017
255e5b2
[MIG] stock_available_immediately: Migration to 11.0
dmsergio Nov 29, 2019
063d0b6
[FIX] stock_available_immediately: Restore current code
pedrobaeza Mar 19, 2020
7a6358f
[MIG] stock_available_immediately: Migration to 12.0
pedrobaeza Mar 19, 2020
bfc49dd
[IMP] stock_available_immediately: black, isort, prettier
florian-dacosta Dec 26, 2020
da8c41a
[MIG] stock_available_immediately: Migration to 14.0
florian-dacosta Dec 26, 2020
90806c7
[IMP] stock_available_immediately: black, isort, prettier
victoralmau Dec 22, 2022
cdae52b
[MIG] stock_available_immediately: Migration to 15.0
glitchov Oct 11, 2022
f9d195b
[IMP] stock_available_immediately: Avoid error in tests of other modu…
victoralmau Dec 22, 2022
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
6 changes: 6 additions & 0 deletions setup/stock_available_immediately/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
6 changes: 4 additions & 2 deletions stock_available/models/res_config_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ class ResConfigSettings(models.TransientModel):
@api.model
def _get_stock_available_mrp_based_on(self):
"""Gets the available languages for the selection."""
pdct_fields = self.env["ir.model.fields"].search(
[("model", "=", "product.product"), ("ttype", "=", "float")]
pdct_fields = (
self.env["ir.model.fields"]
.sudo()
.search([("model", "=", "product.product"), ("ttype", "=", "float")])
)
return [
(field.name, field.field_description)
Expand Down
87 changes: 87 additions & 0 deletions stock_available_immediately/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
==========================================================
Ignore planned receptions in quantity available to promise
==========================================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_available_immediately
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_available_immediately
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/14.0
:alt: Try me on Runbot

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

Normally the quantity available to promise is based on the virtual stock,
which includes both planned outgoing and incoming goods.
This module will subtract the planned receptions from the quantity available to
promise.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/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/stock-logistics-warehouse/issues/new?body=module:%20stock_available_immediately%0Aversion:%2014.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
* Sodexis
* Sergio Díaz

Contributors
~~~~~~~~~~~~

* Author: Guewen Baconnier (Camptocamp SA)
* Sébastien BEAU (Akretion) <[email protected]>
* Lionel Sausin (Numérigraphe) <[email protected]>
* Sodexis <[email protected]>
* Cédric Pigeon <[email protected]>
* Sergio Díaz <[email protected]>
* `Tecnativa <https://www.tecnativa.com>`_:

* Pedro M. Baeza
* Florian da Costa <[email protected]>

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/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_available_immediately>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions stock_available_immediately/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
16 changes: 16 additions & 0 deletions stock_available_immediately/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2014 Camptocamp, Akretion, Numérigraphe
# Copyright 2016 Sodexis
# Copyright 2019 Sergio Díaz <[email protected]>
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Ignore planned receptions in quantity available to promise",
"version": "15.0.1.0.0",
"depends": ["stock_available"],
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Camptocamp,Sodexis,Odoo Community Association (OCA),Sergio Díaz",
"license": "AGPL-3",
"category": "Hidden",
"installable": True,
}
24 changes: 24 additions & 0 deletions stock_available_immediately/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-16 14:35+0000\n"
"PO-Revision-Date: 2018-01-16 14:35+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Producte"
25 changes: 25 additions & 0 deletions stock_available_immediately/i18n/cs_CZ.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# Lukáš Spurný <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Lukáš Spurný <[email protected]>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
"teams/23907/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Produkt"
24 changes: 24 additions & 0 deletions stock_available_immediately/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-16 14:35+0000\n"
"PO-Revision-Date: 2018-01-16 14:35+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/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"

#. module: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Produkt"
25 changes: 25 additions & 0 deletions stock_available_immediately/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/"
"el_GR/)\n"
"Language: el_GR\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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Προϊόν"
24 changes: 24 additions & 0 deletions stock_available_immediately/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-16 14:35+0000\n"
"PO-Revision-Date: 2018-01-16 14:35+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Producto"
25 changes: 25 additions & 0 deletions stock_available_immediately/i18n/es_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/"
"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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Producto"
28 changes: 28 additions & 0 deletions stock_available_immediately/i18n/es_MX.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/"
"es_MX/)\n"
"Language: es_MX\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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr ""

#~ msgid "Product Template"
#~ msgstr "Plantilla del producto"
24 changes: 24 additions & 0 deletions stock_available_immediately/i18n/eu.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n"
"Language: eu\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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Produktua"
24 changes: 24 additions & 0 deletions stock_available_immediately/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-16 14:35+0000\n"
"PO-Revision-Date: 2018-01-16 14:35+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Tuote"
24 changes: 24 additions & 0 deletions stock_available_immediately/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_immediately
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-16 14:35+0000\n"
"PO-Revision-Date: 2018-01-16 14:35+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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: stock_available_immediately
#: model:ir.model,name:stock_available_immediately.model_product_product
msgid "Product"
msgstr "Article"
Loading