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

[MIG] stock_reserve_sale: Migration to 12.0 #636

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
5e003ba
[ADD] started stock_reserve_sale to reserve lines of quotations
guewen Sep 5, 2013
a3502d6
[IMP] continued the stock_reserve_sale module
guewen Sep 6, 2013
38f16cd
[ADD] release and update methods
guewen Sep 6, 2013
fe66e87
[ADD] started to handle the modification of sale order lines when a r…
guewen Sep 6, 2013
0b4af01
[IMP] warn when the quantity of a line with a reservation is changed …
guewen Sep 9, 2013
5f6fc81
[CHG] should not be able to change the type (mto, mts) of a sales lin…
guewen Sep 9, 2013
76b940e
[CHG] release the reservations on the confirmation of sales orders
guewen Sep 9, 2013
60e6691
[FIX] wrong field name
guewen Sep 9, 2013
40a52bc
[CHG] reverse cardinality: many stock.reservation have 1 sale.order.l…
guewen Sep 9, 2013
8751875
[IMP] cancelling a sales order cancels the stock reservations
guewen Sep 9, 2013
42d1516
[ADD] test for reservation of a sales order
guewen Sep 9, 2013
e8906df
[ADD] test for reservation of sales order lines
guewen Sep 10, 2013
4b40f74
[IMP] description in __openerp__.py
guewen Sep 10, 2013
8f337ba
[CHG] hide the stock reservation on the line's form
guewen Sep 10, 2013
5eb4ca7
[FIX] in form view of sales line, remove the update button (automatic…
guewen Sep 10, 2013
ded49f4
mark unported module as uninstallable
gurneyalex Jul 1, 2014
94dd6ec
reactivate module stock_reserve_sale
yvaucher Sep 10, 2014
67cb3ba
port models and methods to api 8.0
yvaucher Sep 10, 2014
8526cd1
change product_qty to product_uom_qty
yvaucher Sep 10, 2014
19b43ec
remove procure_method from sale.order.lines
yvaucher Sep 10, 2014
ff1bdd9
set test product 12 to MTO
yvaucher Sep 10, 2014
5fdd5e7
fix unit of mesure on sale order in tests
yvaucher Sep 10, 2014
740f4fa
fix yaml test by writing route_ids using python instead of record
yvaucher Sep 10, 2014
1d11855
fix name formating. str.format is recommended for python 3 not for 2.…
yvaucher Sep 10, 2014
ff4b320
lint
lepistone Sep 25, 2014
a685e11
assert -> ensure_one
lepistone Sep 26, 2014
9c2c0d5
api.one -> api.multi + ensure_one
lepistone Sep 26, 2014
4cefaf5
fix pep8 W503
gurneyalex Feb 16, 2015
48ead96
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
992b378
make stock_reserve_sale owner_aware
lepistone Mar 17, 2015
6136844
use context when creating the wizard
lepistone Mar 17, 2015
f5708e8
improve float assertions
lepistone Mar 17, 2015
85dee0a
Added the translation template file and Finnish translations to stock…
mlaitinen Apr 23, 2015
ddfcc7f
Add README.rst and remove description from __openerp__.py
Jun 1, 2015
b90c8f0
[MIG] stock_reserve_sale: Migration to 12.0
hzh0292 Jun 28, 2019
a39a958
Remove useless code
hzh0292 Jun 28, 2019
a18a7bb
Update translation files
hzh0292 Jun 29, 2019
1b3e5b6
Enable Route on Sales Order Line
hzh0292 Aug 7, 2019
a28d444
Update sale.py
hzh0292 Aug 8, 2019
c602c0d
Update stock_reserve_sale/models/sale.py
hzh0292 Nov 15, 2019
7393de3
Fix type error
hzh0292 Dec 9, 2019
2697761
Put import on beginning of the file
hzh0292 Dec 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
66 changes: 66 additions & 0 deletions stock_reserve_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3

Stock Reserve Sale
==================

Allows to create stock reservations for quotation lines before the
confirmation of the quotation. The reservations might have a validity
date and in any case they are lifted when the quotation is canceled or
confirmed.

Reservations can be done only on "make to stock" and stockable products.

The reserved products are subtracted from the virtual stock. It means
that if you reserved a quantity of products which bring the virtual
stock below the minimum, the orderpoint will be triggered and new
purchase orders will be generated. It also implies that the max may be
exceeded if the reservations are canceled.

If you want to prevent sales orders to be confirmed when the stock is
insufficient at the order date, you may want to install the
`sale_exception_nostock` module.

Additionally, if the sale_owner_stock_sourcing module is installed, the owner
specified on the sale order line will be proposed as owner of the reservation.
If you try to make a reservation for an order whose lines have different, you
will get a message suggesting to reserve each line individually. There is no
module dependency: this modules is fully functional even without ownership
management.


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
`here <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_reserve_sale%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Leonardo Pistone <leonardo.pistone@camptocamp.com>
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Guewen Baconnier <guewen.baconnier@camptocamp.com>

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 http://odoo-community.org.

2 changes: 2 additions & 0 deletions stock_reserve_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
22 changes: 22 additions & 0 deletions stock_reserve_sale/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{'name': 'Stock Reserve Sales',
'version': '12.0.1.0.0',
'author': "Camptocamp,Odoo Community Association (OCA)",
'category': 'Warehouse',
'license': 'AGPL-3',
'complexity': 'normal',
'website': "https://github.com/OCA/stock-logistics-warehouse",
'depends': ['sale_stock',
'stock_reserve'
],
'demo': [],
'data': ['security/ir.model.access.csv',
'wizard/sale_stock_reserve_view.xml',
'views/sale.xml',
'views/stock_reserve.xml',
],
'test': ['tests/sale_reserve.yml',
'tests/sale_line_reserve.yml',
],
'installable': True,
'auto_install': False,
}
208 changes: 208 additions & 0 deletions stock_reserve_sale/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_reserve_sale
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: stock-logistics-warehouse (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-23 20:23+0000\n"
"PO-Revision-Date: 2015-09-15 13:05+0000\n"
"Last-Translator: <>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-stock-logistics-warehouse-8-0/language/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: stock_reserve_sale
#: view:sale.stock.reserve:stock_reserve_sale.view_sale_stock_reserve_form
msgid ""
"A stock reservation will be created for the products\n"
" of the selected quotation lines. If a validity date is specified,\n"
" the reservation will be released once the date has passed."
msgstr ""

#. module: stock_reserve_sale
#: code:addons/stock_reserve_sale/model/sale.py:179
#, python-format
msgid ""
"As you changed the quantity of the line, the quantity of the stock "
"reservation will be automatically adjusted to %.2f."
msgstr ""

#. module: stock_reserve_sale
#: field:sale.order,is_stock_reservable:0
msgid "Can Have Stock Reservations"
msgstr ""

#. module: stock_reserve_sale
#: view:sale.stock.reserve:stock_reserve_sale.view_sale_stock_reserve_form
msgid "Cancel"
msgstr ""

#. module: stock_reserve_sale
#: code:addons/stock_reserve_sale/model/sale.py:188
#, python-format
msgid "Configuration Error!"
msgstr ""

#. module: stock_reserve_sale
#: field:sale.stock.reserve,create_uid:0
msgid "Created by"
msgstr "Creado por"

#. module: stock_reserve_sale
#: field:sale.stock.reserve,create_date:0
msgid "Created on"
msgstr "Creado el"

#. module: stock_reserve_sale
#: code:addons/stock_reserve_sale/model/sale.py:210
#: code:addons/stock_reserve_sale/model/sale.py:222
#, python-format
msgid "Error"
msgstr ""

#. module: stock_reserve_sale
#: field:sale.order,has_stock_reservation:0
msgid "Has Stock Reservations"
msgstr ""

#. module: stock_reserve_sale
#: field:sale.stock.reserve,id:0
msgid "ID"
msgstr "ID"

#. module: stock_reserve_sale
#: help:sale.stock.reserve,date_validity:0
msgid ""
"If a date is given, the reservations will be released at the end of the "
"validity."
msgstr ""

#. module: stock_reserve_sale
#: field:sale.stock.reserve,write_uid:0
msgid "Last Updated by"
msgstr "Actualizado por última vez por"

#. module: stock_reserve_sale
#: field:sale.stock.reserve,write_date:0
msgid "Last Updated on"
msgstr "Actualizado por última vez el"

#. module: stock_reserve_sale
#: help:sale.stock.reserve,location_dest_id:0
msgid "Location where the system will reserve the products."
msgstr ""

#. module: stock_reserve_sale
#: view:sale.stock.reserve:stock_reserve_sale.view_sale_stock_reserve_form
#: field:sale.stock.reserve,note:0
msgid "Notes"
msgstr "Notas"

#. module: stock_reserve_sale
#: view:sale.order:stock_reserve_sale.view_order_form_reserve
msgid "Pre-book products from stock"
msgstr ""

#. module: stock_reserve_sale
#: view:sale.order:stock_reserve_sale.view_order_form_reserve
msgid "Release Reservation"
msgstr ""

#. module: stock_reserve_sale
#: field:sale.stock.reserve,location_dest_id:0
msgid "Reservation Location"
msgstr ""

#. module: stock_reserve_sale
#: view:sale.stock.reserve:stock_reserve_sale.view_sale_stock_reserve_form
msgid "Reserve"
msgstr "Reservar"

#. module: stock_reserve_sale
#: view:sale.order:stock_reserve_sale.view_order_form_reserve
#: view:sale.stock.reserve:stock_reserve_sale.view_sale_stock_reserve_form
msgid "Reserve Stock"
msgstr ""

#. module: stock_reserve_sale
#: model:ir.actions.act_window,name:stock_reserve_sale.action_sale_stock_reserve
msgid "Reserve Stock for Quotation Lines"
msgstr ""

#. module: stock_reserve_sale
#: field:stock.reservation,sale_line_id:0
msgid "Sale Order Line"
msgstr ""

#. module: stock_reserve_sale
#: view:stock.reservation:stock_reserve_sale.view_stock_reservation_form
msgid "Sales"
msgstr ""

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

#. module: stock_reserve_sale
#: model:ir.model,name:stock_reserve_sale.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: stock_reserve_sale
#: code:addons/stock_reserve_sale/model/sale.py:223
#, python-format
msgid ""
"Several stock reservations are linked with the line. Impossible to adjust "
"their quantity. Please release the reservation before changing the quantity."
msgstr ""

#. module: stock_reserve_sale
#: field:sale.stock.reserve,location_id:0
msgid "Source Location"
msgstr ""

#. module: stock_reserve_sale
#: field:sale.stock.reserve,owner_id:0
msgid "Stock Owner"
msgstr ""

#. module: stock_reserve_sale
#: model:ir.model,name:stock_reserve_sale.model_stock_reservation
#: field:sale.order.line,reservation_ids:0
msgid "Stock Reservation"
msgstr "Reserva de existencias"

#. module: stock_reserve_sale
#: field:sale.stock.reserve,date_validity:0
msgid "Validity Date"
msgstr "Fecha de validez"

#. module: stock_reserve_sale
#: code:addons/stock_reserve_sale/model/sale.py:211
#, python-format
msgid ""
"You cannot change the product or unit of measure of lines with a stock "
"reservation. Release the reservation before changing the product."
msgstr ""

#. module: stock_reserve_sale
#: view:sale.order:stock_reserve_sale.view_order_form_reserve
msgid "cancel all"
msgstr ""

#. module: stock_reserve_sale
#: view:sale.stock.reserve:stock_reserve_sale.view_sale_stock_reserve_form
msgid "or"
msgstr ""

#. module: stock_reserve_sale
#: view:sale.order:stock_reserve_sale.view_order_form_reserve
msgid "{\"reload_on_button\": 1}"
msgstr ""