diff --git a/stock_reserve/README.rst b/stock_reserve/README.rst index ae2f530c7..7e92d23ce 100644 --- a/stock_reserve/README.rst +++ b/stock_reserve/README.rst @@ -14,13 +14,13 @@ Stock Reservation :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/13.0/stock_reserve + :target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_reserve :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-13-0/stock-logistics-warehouse-13-0-stock_reserve + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_reserve :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/13.0 + :target: https://runbot.odoo-community.org/runbot/153/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -63,7 +63,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -88,6 +88,6 @@ 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 `_ project on GitHub. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_reserve/i18n/ca.po b/stock_reserve/i18n/ca.po index 351ca4173..4cd7b0f7a 100644 --- a/stock_reserve/i18n/ca.po +++ b/stock_reserve/i18n/ca.po @@ -913,10 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Quantitat" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Quantitat" diff --git a/stock_reserve/i18n/cs_CZ.po b/stock_reserve/i18n/cs_CZ.po index b6bd6f917..d1d548329 100644 --- a/stock_reserve/i18n/cs_CZ.po +++ b/stock_reserve/i18n/cs_CZ.po @@ -914,9 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "Zakázka" - -#~ msgid "Procurement Rule" -#~ msgstr "Pravidlo zadávání zakázek" diff --git a/stock_reserve/i18n/de.po b/stock_reserve/i18n/de.po index 75401829b..2e8736a5d 100644 --- a/stock_reserve/i18n/de.po +++ b/stock_reserve/i18n/de.po @@ -913,22 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Picking Type" -#~ msgstr "Kommissionsart" - -#~ msgid "Procurement" -#~ msgstr "Beschaffung" - -#~ msgid "Procurement Rule" -#~ msgstr "Beschaffungsregel" - -#~ msgid "Quantity" -#~ msgstr "Menge" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Menge" - -#~ msgid "Reservation Stock" -#~ msgstr "Reservierter Bestand" diff --git a/stock_reserve/i18n/el_GR.po b/stock_reserve/i18n/el_GR.po index c7ac464cf..0fe4c0887 100644 --- a/stock_reserve/i18n/el_GR.po +++ b/stock_reserve/i18n/el_GR.po @@ -914,10 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Ποσότητα" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Ποσότητα" diff --git a/stock_reserve/i18n/es.po b/stock_reserve/i18n/es.po index 1e65402d1..f2632f8db 100644 --- a/stock_reserve/i18n/es.po +++ b/stock_reserve/i18n/es.po @@ -972,15 +972,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Picking Type" -#~ msgstr "Tipo de albarán" - -#~ msgid "Procurement" -#~ msgstr "Abastecimiento" - -#~ msgid "Procurement Rule" -#~ msgstr "Regla de abastecimiento" - -#~ msgid "Reservation Stock" -#~ msgstr "Reserva de existencias" diff --git a/stock_reserve/i18n/fi.po b/stock_reserve/i18n/fi.po index a32a333b2..c862ca559 100644 --- a/stock_reserve/i18n/fi.po +++ b/stock_reserve/i18n/fi.po @@ -913,13 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Määrä" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Määrä" - -#~ msgid "Reservation Stock" -#~ msgstr "Varattu" diff --git a/stock_reserve/i18n/fr.po b/stock_reserve/i18n/fr.po index 7d44ce349..859702747 100644 --- a/stock_reserve/i18n/fr.po +++ b/stock_reserve/i18n/fr.po @@ -913,19 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Picking Type" -#~ msgstr "Type de préparation" - -#~ msgid "Procurement" -#~ msgstr "Procurement" - -#~ msgid "Procurement Rule" -#~ msgstr "Règle d'approvisionnement" - -#~ msgid "Quantity" -#~ msgstr "Quantité" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Quantité" diff --git a/stock_reserve/i18n/fr_FR.po b/stock_reserve/i18n/fr_FR.po index 5b72e52f3..68a26e2c1 100644 --- a/stock_reserve/i18n/fr_FR.po +++ b/stock_reserve/i18n/fr_FR.po @@ -914,10 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Quantité" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Quantité" diff --git a/stock_reserve/i18n/gl.po b/stock_reserve/i18n/gl.po index 3070b4973..9b8998290 100644 --- a/stock_reserve/i18n/gl.po +++ b/stock_reserve/i18n/gl.po @@ -913,10 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Cantidade" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Cantidade" diff --git a/stock_reserve/i18n/hr.po b/stock_reserve/i18n/hr.po index 84f46814b..06277b608 100644 --- a/stock_reserve/i18n/hr.po +++ b/stock_reserve/i18n/hr.po @@ -915,16 +915,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "Nabava" - -#~ msgid "Procurement Rule" -#~ msgstr "Pavilo nabave" - -#~ msgid "Quantity" -#~ msgstr "Količina" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Količina" diff --git a/stock_reserve/i18n/hr_HR.po b/stock_reserve/i18n/hr_HR.po index 0faa68387..14330fff4 100644 --- a/stock_reserve/i18n/hr_HR.po +++ b/stock_reserve/i18n/hr_HR.po @@ -915,10 +915,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Količina" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Količina" diff --git a/stock_reserve/i18n/it.po b/stock_reserve/i18n/it.po index 6b9ea2258..6e900739f 100644 --- a/stock_reserve/i18n/it.po +++ b/stock_reserve/i18n/it.po @@ -914,19 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Picking Type" -#~ msgstr "Tipo Picking" - -#~ msgid "Procurement" -#~ msgstr "Approvvigionamento" - -#~ msgid "Procurement Rule" -#~ msgstr "Regola d'Approvvigionamento" - -#~ msgid "Quantity" -#~ msgstr "Quantià" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Quantià" diff --git a/stock_reserve/i18n/nl.po b/stock_reserve/i18n/nl.po index 1b3a7bb14..97b6c8743 100644 --- a/stock_reserve/i18n/nl.po +++ b/stock_reserve/i18n/nl.po @@ -913,10 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Hoeveelheid" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Hoeveelheid" diff --git a/stock_reserve/i18n/nl_BE.po b/stock_reserve/i18n/nl_BE.po index 3def94490..2f13701dc 100644 --- a/stock_reserve/i18n/nl_BE.po +++ b/stock_reserve/i18n/nl_BE.po @@ -914,10 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Hoeveelheid" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Hoeveelheid" diff --git a/stock_reserve/i18n/nl_NL.po b/stock_reserve/i18n/nl_NL.po index 6503cd3d9..276791008 100644 --- a/stock_reserve/i18n/nl_NL.po +++ b/stock_reserve/i18n/nl_NL.po @@ -915,10 +915,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Aantal" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Aantal" diff --git a/stock_reserve/i18n/pt.po b/stock_reserve/i18n/pt.po index f3f0107b2..80cdaa00c 100644 --- a/stock_reserve/i18n/pt.po +++ b/stock_reserve/i18n/pt.po @@ -913,10 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Quantidade" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Quantidade" diff --git a/stock_reserve/i18n/pt_BR.po b/stock_reserve/i18n/pt_BR.po index e5137097a..fe7596c11 100644 --- a/stock_reserve/i18n/pt_BR.po +++ b/stock_reserve/i18n/pt_BR.po @@ -914,16 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Picking Type" -#~ msgstr "Local destino" - -#~ msgid "Procurement" -#~ msgstr "Aprovisionamento" - -#~ msgid "Quantity" -#~ msgstr "Quantidade" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Quantidade" diff --git a/stock_reserve/i18n/pt_PT.po b/stock_reserve/i18n/pt_PT.po index f1217836c..bab708c62 100644 --- a/stock_reserve/i18n/pt_PT.po +++ b/stock_reserve/i18n/pt_PT.po @@ -914,6 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "Aquisições" diff --git a/stock_reserve/i18n/ro.po b/stock_reserve/i18n/ro.po index 9aedb5277..cc2b97ef1 100644 --- a/stock_reserve/i18n/ro.po +++ b/stock_reserve/i18n/ro.po @@ -914,13 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "Aprovizionare" - -#~ msgid "Quantity" -#~ msgstr "Cantitate" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Cantitate" diff --git a/stock_reserve/i18n/ru.po b/stock_reserve/i18n/ru.po index 4b7314643..531382352 100644 --- a/stock_reserve/i18n/ru.po +++ b/stock_reserve/i18n/ru.po @@ -915,10 +915,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Quantity" -#~ msgstr "Кол-во" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Кол-во" diff --git a/stock_reserve/i18n/sk.po b/stock_reserve/i18n/sk.po index 316f8ef16..f185d2ad4 100644 --- a/stock_reserve/i18n/sk.po +++ b/stock_reserve/i18n/sk.po @@ -913,6 +913,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "Obstarávanie" diff --git a/stock_reserve/i18n/sl.po b/stock_reserve/i18n/sl.po index cc0c3c5d5..0b642e00b 100644 --- a/stock_reserve/i18n/sl.po +++ b/stock_reserve/i18n/sl.po @@ -934,82 +934,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Checks if the move has some stock reserved" -#~ msgstr "Preveri, če premik vsebuje kaj rezervacij zaloge" - -#~ msgid "Destination Move" -#~ msgstr "Ciljni premik" - -#~ msgid "" -#~ "It specifies attributes of packaging like type, quantity of packaging,etc." -#~ msgstr "Določi atribute pakiranja, kot so tip, količina pakiranj, itd." - -#~ msgid "Linked Operations" -#~ msgstr "Povezane operacije" - -#~ msgid "Move Split From" -#~ msgstr "Premik razdeljen od" - -#~ msgid "Moved Quants" -#~ msgstr "Premaknjeni kvanti" - -#~ msgid "" -#~ "Operations that impact this move for the computation of the remaining " -#~ "quantities" -#~ msgstr "Operacije, ki vplivajo na ta premik pri izračunu preostalih količin" - -#~ msgid "Partially Available" -#~ msgstr "Delno na voljo" - -#~ msgid "Picking Type" -#~ msgstr "Tip zbirnika" - -#~ msgid "Preferred route to be followed by the procurement order" -#~ msgstr "Prednostna proga za oskrbovalni nalog" - -#~ msgid "Procurement" -#~ msgstr "Oskrbovanje" - -#~ msgid "Procurement Rule" -#~ msgstr "Oskrbovalno pravilo" - -#~ msgid "Push Rule" -#~ msgstr "Pravilo potiska" - -#~ msgid "Quantity" -#~ msgstr "Količina" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Delno na voljo" - -#, fuzzy -#~ msgid "Quantity done store" -#~ msgstr "Rezervirana količina" - -#~ msgid "Remaining Quantity" -#~ msgstr "Preostala količina" - -#~ msgid "" -#~ "Remaining Quantity in default UoM according to operations matched with " -#~ "this move" -#~ msgstr "" -#~ "Preostala količina v privzeti EM glede na operacije, ki se ujemajo s tem " -#~ "premikom" - -#~ msgid "Reservation Stock" -#~ msgstr "Rezervirana zaloga" - -#~ msgid "Reserved quants" -#~ msgstr "Rezervirani kvanti" - -#~ msgid "" -#~ "Technical field used to track the origin of a split move, which can be " -#~ "useful in case of debug" -#~ msgstr "" -#~ "Tehnično polje za sledenje izvora razdelitve premika, ki je lahko " -#~ "koristno pri odpravljanju napak." - -#~ msgid "The push rule that created this stock move" -#~ msgstr "Potisno pravilo, ki je ustvarilo ta premik zaloge" diff --git a/stock_reserve/i18n/tr_TR.po b/stock_reserve/i18n/tr_TR.po index 15da87ef7..5927cffe4 100644 --- a/stock_reserve/i18n/tr_TR.po +++ b/stock_reserve/i18n/tr_TR.po @@ -914,13 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "Satın alma" - -#~ msgid "Quantity" -#~ msgstr "Miktar" - -#, fuzzy -#~ msgid "Quantity Available" -#~ msgstr "Miktar" diff --git a/stock_reserve/i18n/vi_VN.po b/stock_reserve/i18n/vi_VN.po index 65181a03e..46da70815 100644 --- a/stock_reserve/i18n/vi_VN.po +++ b/stock_reserve/i18n/vi_VN.po @@ -914,6 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "Mua sắm / Cung ứng" diff --git a/stock_reserve/i18n/zh_CN.po b/stock_reserve/i18n/zh_CN.po index 66c2fa848..188071c04 100644 --- a/stock_reserve/i18n/zh_CN.po +++ b/stock_reserve/i18n/zh_CN.po @@ -914,6 +914,3 @@ msgstr "" #: model:ir.model.fields,field_description:stock_reserve.field_stock_reservation__workorder_id msgid "Work Order To Consume" msgstr "" - -#~ msgid "Procurement" -#~ msgstr "补货" diff --git a/stock_reserve/models/product.py b/stock_reserve/models/product.py index dc8e11be3..9c7b1f8da 100644 --- a/stock_reserve/models/product.py +++ b/stock_reserve/models/product.py @@ -20,7 +20,7 @@ class ProductTemplate(models.Model): self.ensure_one() ref = "stock_reserve.action_stock_reservation_tree" product_ids = self.mapped("product_variant_ids.id") - action_dict = self.env.ref(ref).read()[0] + action_dict = self.env["ir.actions.act_window"]._for_xml_id(ref) action_dict["domain"] = [("product_id", "in", product_ids)] action_dict["context"] = { "search_default_draft": 1, @@ -49,7 +49,7 @@ class ProductProduct(models.Model): def action_view_reservations(self): self.ensure_one() ref = "stock_reserve.action_stock_reservation_tree" - action_dict = self.env.ref(ref).read()[0] + action_dict = self.env["ir.actions.act_window"]._for_xml_id(ref) action_dict["domain"] = [("product_id", "=", self.id)] action_dict["context"] = { "search_default_draft": 1, diff --git a/stock_reserve/models/stock_reserve.py b/stock_reserve/models/stock_reserve.py index 072138d30..5cef6e3e5 100644 --- a/stock_reserve/models/stock_reserve.py +++ b/stock_reserve/models/stock_reserve.py @@ -177,8 +177,9 @@ class StockReservation(models.Model): def open_move(self): self.ensure_one() - action = self.env.ref("stock.stock_move_action") - action_dict = action.read()[0] + action_dict = self.env["ir.actions.act_window"]._for_xml_id( + "stock.stock_move_action" + ) action_dict["name"] = _("Reservation Move") # open directly in the form view view_id = self.env.ref("stock.view_move_form").id diff --git a/stock_reserve/static/description/index.html b/stock_reserve/static/description/index.html index e5b844912..cf322123e 100644 --- a/stock_reserve/static/description/index.html +++ b/stock_reserve/static/description/index.html @@ -3,7 +3,7 @@ - + Stock Reservation