+
+
+
+
+
From f335066c0dda6993e789932577eaaa24bdb12510 Mon Sep 17 00:00:00 2001
From: lreficent
Date: Wed, 23 Aug 2017 11:54:21 +0200
Subject: [PATCH 02/23] [10.0][MIG] stock_inventory_discrepancy
---
stock_inventory_discrepancy/README.rst | 8 +-
stock_inventory_discrepancy/__init__.py | 2 -
.../{__openerp__.py => __manifest__.py} | 4 +-
stock_inventory_discrepancy/i18n/cs_CZ.po | 117 ++++++++++++++++++
stock_inventory_discrepancy/i18n/de.po | 19 ++-
stock_inventory_discrepancy/i18n/es.po | 11 +-
stock_inventory_discrepancy/i18n/fr.po | 8 +-
stock_inventory_discrepancy/i18n/hr.po | 117 ++++++++++++++++++
stock_inventory_discrepancy/i18n/nl_NL.po | 117 ++++++++++++++++++
stock_inventory_discrepancy/i18n/sl.po | 12 +-
.../models/__init__.py | 2 -
.../models/stock_inventory.py | 4 +-
.../models/stock_inventory_line.py | 41 +++---
.../models/stock_location.py | 2 +-
.../models/stock_warehouse.py | 2 +-
stock_inventory_discrepancy/tests/__init__.py | 2 -
.../tests/test_inventory_discrepancy.py | 4 +-
17 files changed, 408 insertions(+), 64 deletions(-)
rename stock_inventory_discrepancy/{__openerp__.py => __manifest__.py} (90%)
create mode 100644 stock_inventory_discrepancy/i18n/cs_CZ.po
create mode 100644 stock_inventory_discrepancy/i18n/hr.po
create mode 100644 stock_inventory_discrepancy/i18n/nl_NL.po
diff --git a/stock_inventory_discrepancy/README.rst b/stock_inventory_discrepancy/README.rst
index d08a07a18c6a..349f9ab31713 100644
--- a/stock_inventory_discrepancy/README.rst
+++ b/stock_inventory_discrepancy/README.rst
@@ -8,10 +8,10 @@ Stock Inventory Discrepancy
Adds the capability to show the discrepancy of every line in an inventory and
to block the inventory validation (setting it as 'Pending to Approve') when the
-discrepancy is greater than a user defined threshold.
+discrepancy is greater than an user defined threshold.
Only new group "Validate All inventory Adjustments" will be able to force the
-validation of those blocked inventories. By default Stock manager will belong
+validation of those blocked inventories. By default, Stock manager will belong
to this group. In addition, Stock Users can validate inventories under the
threshold now.
@@ -24,7 +24,7 @@ You can configure the threshold as described below:
#. Go to "Inventory > Warehouse Management" > Warehouses" or to "Inventory >
Warehouse Management" > Locations".
#. Modify the "Maximum Discrepancy Rate Threshold" either in a Warehouse or
- in a location. If set to 0.0 the threshold is disabled.
+ in a location. If set to 0.0 in both the threshold is disabled.
Usage
=====
@@ -42,7 +42,7 @@ If you configured a "Maximum Discrepancy Rate Threshold".
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/153/9.0
+ :target: https://runbot.odoo-community.org/runbot/153/10.0
Bug Tracker
diff --git a/stock_inventory_discrepancy/__init__.py b/stock_inventory_discrepancy/__init__.py
index e50f9b656872..149f4e4fdfb4 100644
--- a/stock_inventory_discrepancy/__init__.py
+++ b/stock_inventory_discrepancy/__init__.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
-# Copyright 2017 Eficent Business and IT Consulting Services S.L.
-# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
diff --git a/stock_inventory_discrepancy/__openerp__.py b/stock_inventory_discrepancy/__manifest__.py
similarity index 90%
rename from stock_inventory_discrepancy/__openerp__.py
rename to stock_inventory_discrepancy/__manifest__.py
index ef00174d89e3..9adf7f942728 100644
--- a/stock_inventory_discrepancy/__openerp__.py
+++ b/stock_inventory_discrepancy/__manifest__.py
@@ -7,7 +7,7 @@
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when the "
"discrepancy is over a user defined threshold.",
- "version": "9.0.1.0.0",
+ "version": "10.0.1.0.0",
"author": "Eficent, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
@@ -17,7 +17,7 @@
'views/stock_inventory_view.xml',
'views/stock_warehouse_view.xml',
'views/stock_location_view.xml',
- 'security/stock_inventory_discrepancy_security.xml'
+ 'security/stock_inventory_discrepancy_security.xml',
],
"license": "AGPL-3",
'installable': True,
diff --git a/stock_inventory_discrepancy/i18n/cs_CZ.po b/stock_inventory_discrepancy/i18n/cs_CZ.po
new file mode 100644
index 000000000000..78e4c210b7dd
--- /dev/null
+++ b/stock_inventory_discrepancy/i18n/cs_CZ.po
@@ -0,0 +1,117 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * stock_inventory_discrepancy
+#
+# Translators:
+# Lukáš Spurný , 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ý , 2018\n"
+"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/teams/23907/cs_CZ/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: cs_CZ\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid "Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+msgid "Force Validation"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
+msgid "Inventory"
+msgstr "Inventář"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
+msgid "Inventory Line"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
+msgid "Inventory Locations"
+msgstr "Umístění inventáře"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Maximum Discrepancy Rate Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+msgid ""
+"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
+"Adjustment. Threshold defined in involved Location has preference."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+msgid ""
+"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
+" ones."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+msgid "Number of Discrepancies Over Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#, python-format
+msgid ""
+"The Qty Update is over the Discrepancy Threshold.\n"
+" Please, contact a user with rights to perform this action."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid ""
+"The difference between the actual qty counted and the theoretical quantity "
+"on hand."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid ""
+"The discrepancy expressed in percent with theoretical quantity as basis"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Threshold (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
+msgid "Validate All inventory Adjustments"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments Under Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
+msgid "Warehouse"
+msgstr ""
diff --git a/stock_inventory_discrepancy/i18n/de.po b/stock_inventory_discrepancy/i18n/de.po
index 36fbf6a619ea..43ba40648515 100644
--- a/stock_inventory_discrepancy/i18n/de.po
+++ b/stock_inventory_discrepancy/i18n/de.po
@@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot , 2017
-# Rudolf Schnapka , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-06-29 13:12+0000\n"
-"PO-Revision-Date: 2017-06-29 13:12+0000\n"
-"Last-Translator: Rudolf Schnapka , 2017\n"
+"POT-Creation-Date: 2017-11-30 03:53+0000\n"
+"PO-Revision-Date: 2017-11-30 03:53+0000\n"
+"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,17 +21,17 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
msgid "Discrepancy"
-msgstr "Abweichung"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
msgid "Discrepancy percent (%)"
-msgstr "Abweichung (%)"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
-msgstr "Erzwinge Freigabe"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
@@ -47,14 +46,14 @@ msgstr "Inventurposition"
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
-msgstr "Bestandslagerorte"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
-msgstr "Obergrenze für hinnehmbare Abweichung"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
diff --git a/stock_inventory_discrepancy/i18n/es.po b/stock_inventory_discrepancy/i18n/es.po
index 727a3ddb74e0..439e29c38c6f 100644
--- a/stock_inventory_discrepancy/i18n/es.po
+++ b/stock_inventory_discrepancy/i18n/es.po
@@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot , 2017
-# Antonio Trueba , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-02-18 04:05+0000\n"
-"PO-Revision-Date: 2017-02-18 04:05+0000\n"
-"Last-Translator: Antonio Trueba , 2017\n"
+"POT-Creation-Date: 2017-11-30 03:53+0000\n"
+"PO-Revision-Date: 2017-11-30 03:53+0000\n"
+"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -47,7 +46,7 @@ msgstr "Línea inventario"
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
-msgstr "Ubicaciones de inventario"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
diff --git a/stock_inventory_discrepancy/i18n/fr.po b/stock_inventory_discrepancy/i18n/fr.po
index 1ab873b1f2f4..acb6234943d1 100644
--- a/stock_inventory_discrepancy/i18n/fr.po
+++ b/stock_inventory_discrepancy/i18n/fr.po
@@ -6,10 +6,10 @@
# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-02-18 04:05+0000\n"
-"PO-Revision-Date: 2017-02-18 04:05+0000\n"
+"POT-Creation-Date: 2017-11-30 03:53+0000\n"
+"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"MIME-Version: 1.0\n"
@@ -46,7 +46,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
-msgstr "Emplacements d'inventaire"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
diff --git a/stock_inventory_discrepancy/i18n/hr.po b/stock_inventory_discrepancy/i18n/hr.po
new file mode 100644
index 000000000000..695dcfddcb69
--- /dev/null
+++ b/stock_inventory_discrepancy/i18n/hr.po
@@ -0,0 +1,117 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * stock_inventory_discrepancy
+#
+# Translators:
+# Bole , 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: Bole , 2018\n"
+"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: hr\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid "Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+msgid "Force Validation"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
+msgid "Inventory"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
+msgid "Inventory Line"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
+msgid "Inventory Locations"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Maximum Discrepancy Rate Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+msgid ""
+"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
+"Adjustment. Threshold defined in involved Location has preference."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+msgid ""
+"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
+" ones."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+msgid "Number of Discrepancies Over Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#, python-format
+msgid ""
+"The Qty Update is over the Discrepancy Threshold.\n"
+" Please, contact a user with rights to perform this action."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid ""
+"The difference between the actual qty counted and the theoretical quantity "
+"on hand."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid ""
+"The discrepancy expressed in percent with theoretical quantity as basis"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Threshold (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
+msgid "Validate All inventory Adjustments"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments Under Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
+msgid "Warehouse"
+msgstr "Skladište"
diff --git a/stock_inventory_discrepancy/i18n/nl_NL.po b/stock_inventory_discrepancy/i18n/nl_NL.po
new file mode 100644
index 000000000000..c04bafc0a77e
--- /dev/null
+++ b/stock_inventory_discrepancy/i18n/nl_NL.po
@@ -0,0 +1,117 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * stock_inventory_discrepancy
+#
+# Translators:
+# Peter Hageman , 2017
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 10.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-11-30 03:53+0000\n"
+"PO-Revision-Date: 2017-11-30 03:53+0000\n"
+"Last-Translator: Peter Hageman , 2017\n"
+"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: nl_NL\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid "Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+msgid "Force Validation"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
+msgid "Inventory"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
+msgid "Inventory Line"
+msgstr "Voorraadregel"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
+msgid "Inventory Locations"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Maximum Discrepancy Rate Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+msgid ""
+"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
+"Adjustment. Threshold defined in involved Location has preference."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+msgid ""
+"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
+" ones."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+msgid "Number of Discrepancies Over Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#, python-format
+msgid ""
+"The Qty Update is over the Discrepancy Threshold.\n"
+" Please, contact a user with rights to perform this action."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid ""
+"The difference between the actual qty counted and the theoretical quantity "
+"on hand."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid ""
+"The discrepancy expressed in percent with theoretical quantity as basis"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Threshold (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
+msgid "Validate All inventory Adjustments"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments Under Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
+msgid "Warehouse"
+msgstr "Magazijn"
diff --git a/stock_inventory_discrepancy/i18n/sl.po b/stock_inventory_discrepancy/i18n/sl.po
index 64c49321198a..e7f87e42f829 100644
--- a/stock_inventory_discrepancy/i18n/sl.po
+++ b/stock_inventory_discrepancy/i18n/sl.po
@@ -3,14 +3,14 @@
# * stock_inventory_discrepancy
#
# Translators:
-# Matjaž Mozetič , 2017
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 9.0c\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-02-18 04:05+0000\n"
-"PO-Revision-Date: 2017-02-18 04:05+0000\n"
-"Last-Translator: Matjaž Mozetič , 2017\n"
+"POT-Creation-Date: 2017-11-30 03:53+0000\n"
+"PO-Revision-Date: 2017-11-30 03:53+0000\n"
+"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -46,7 +46,7 @@ msgstr "Postavka inventarja"
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
-msgstr "Lokacije inventarja"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
diff --git a/stock_inventory_discrepancy/models/__init__.py b/stock_inventory_discrepancy/models/__init__.py
index 0a01a2d3670a..6cf0c1ba8fbb 100644
--- a/stock_inventory_discrepancy/models/__init__.py
+++ b/stock_inventory_discrepancy/models/__init__.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
-# Copyright 2017 Eficent Business and IT Consulting Services S.L.
-# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import stock_inventory
diff --git a/stock_inventory_discrepancy/models/stock_inventory.py b/stock_inventory_discrepancy/models/stock_inventory.py
index 28af0aea99f1..c9e73d9554dd 100644
--- a/stock_inventory_discrepancy/models/stock_inventory.py
+++ b/stock_inventory_discrepancy/models/stock_inventory.py
@@ -3,8 +3,8 @@
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from openerp import _, api, fields, models
-from openerp.exceptions import UserError
+from odoo import _, api, fields, models
+from odoo.exceptions import UserError
class StockInventory(models.Model):
diff --git a/stock_inventory_discrepancy/models/stock_inventory_line.py b/stock_inventory_discrepancy/models/stock_inventory_line.py
index b13e99d4331f..68289c76742d 100644
--- a/stock_inventory_discrepancy/models/stock_inventory_line.py
+++ b/stock_inventory_discrepancy/models/stock_inventory_line.py
@@ -3,32 +3,33 @@
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from openerp import api, fields, models
+from odoo import api, fields, models
class StockInventoryLine(models.Model):
_inherit = 'stock.inventory.line'
- @api.one
+ @api.multi
def _compute_discrepancy(self):
- self.discrepancy_qty = self.product_qty - self.theoretical_qty
- if self.theoretical_qty:
- self.discrepancy_percent = 100 * abs(
- (self.product_qty - self.theoretical_qty) /
- self.theoretical_qty)
- elif not self.theoretical_qty and self.product_qty:
- self.discrepancy_percent = 100.0
+ for l in self:
+ l.discrepancy_qty = l.product_qty - l.theoretical_qty
+ if l.theoretical_qty:
+ l.discrepancy_percent = 100 * abs(
+ (l.product_qty - l.theoretical_qty) /
+ l.theoretical_qty)
+ elif not l.theoretical_qty and l.product_qty:
+ l.discrepancy_percent = 100.0
- @api.one
- def _get_discrepancy_threshold(self):
- wh_id = self.location_id.get_warehouse(self.location_id)
- wh = self.env['stock.warehouse'].browse(wh_id)
- if self.location_id.discrepancy_threshold > 0.0:
- self.discrepancy_threshold = self.location_id.discrepancy_threshold
- elif wh.discrepancy_threshold > 0.0:
- self.discrepancy_threshold = wh.discrepancy_threshold
- else:
- self.discrepancy_threshold = False
+ @api.multi
+ def _compute_discrepancy_threshold(self):
+ for l in self:
+ wh = l.location_id.get_warehouse()
+ if l.location_id.discrepancy_threshold > 0.0:
+ l.discrepancy_threshold = l.location_id.discrepancy_threshold
+ elif wh.discrepancy_threshold > 0.0:
+ l.discrepancy_threshold = wh.discrepancy_threshold
+ else:
+ l.discrepancy_threshold = False
discrepancy_qty = fields.Float(
string='Discrepancy',
@@ -45,4 +46,4 @@ def _get_discrepancy_threshold(self):
string='Threshold (%)',
digits=(3, 2),
help="Maximum Discrepancy Rate Threshold",
- compute=_get_discrepancy_threshold)
+ compute=_compute_discrepancy_threshold)
diff --git a/stock_inventory_discrepancy/models/stock_location.py b/stock_inventory_discrepancy/models/stock_location.py
index d040ecbd47e6..3663961889ae 100644
--- a/stock_inventory_discrepancy/models/stock_location.py
+++ b/stock_inventory_discrepancy/models/stock_location.py
@@ -3,7 +3,7 @@
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from openerp import fields, models
+from odoo import fields, models
class StockLocation(models.Model):
diff --git a/stock_inventory_discrepancy/models/stock_warehouse.py b/stock_inventory_discrepancy/models/stock_warehouse.py
index 717c79cf3d52..8a2f61299acc 100644
--- a/stock_inventory_discrepancy/models/stock_warehouse.py
+++ b/stock_inventory_discrepancy/models/stock_warehouse.py
@@ -3,7 +3,7 @@
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from openerp import fields, models
+from odoo import fields, models
class StockWarehouse(models.Model):
diff --git a/stock_inventory_discrepancy/tests/__init__.py b/stock_inventory_discrepancy/tests/__init__.py
index 51849fb7047f..aa61d27723f3 100644
--- a/stock_inventory_discrepancy/tests/__init__.py
+++ b/stock_inventory_discrepancy/tests/__init__.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
-# Copyright 2017 Eficent Business and IT Consulting Services S.L.
-# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import test_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
index 4dd9c2cff54a..e42ee88fd61b 100644
--- a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
+++ b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
@@ -3,8 +3,8 @@
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from openerp.tests.common import TransactionCase
-from openerp.exceptions import UserError
+from odoo.tests.common import TransactionCase
+from odoo.exceptions import UserError
class TestInventoryDiscrepancy(TransactionCase):
From a95cb57cb463894e66540d18c74400816bfeb3e0 Mon Sep 17 00:00:00 2001
From: andreas
Date: Fri, 20 Apr 2018 16:31:36 +0700
Subject: [PATCH 03/23] [MIG] stock_inventory_discrepancy: Migration to 11.0
---
stock_inventory_discrepancy/README.rst | 3 +-
stock_inventory_discrepancy/__init__.py | 1 -
stock_inventory_discrepancy/__manifest__.py | 3 +-
stock_inventory_discrepancy/i18n/cs_CZ.po | 16 +--
stock_inventory_discrepancy/i18n/de.po | 13 +--
stock_inventory_discrepancy/i18n/es.po | 13 +--
stock_inventory_discrepancy/i18n/es_ES.po | 16 +--
stock_inventory_discrepancy/i18n/fr.po | 13 +--
stock_inventory_discrepancy/i18n/fr_FR.po | 16 +--
stock_inventory_discrepancy/i18n/hr.po | 16 +--
stock_inventory_discrepancy/i18n/it.po | 13 +--
stock_inventory_discrepancy/i18n/nl.po | 13 +--
stock_inventory_discrepancy/i18n/nl_NL.po | 16 +--
stock_inventory_discrepancy/i18n/pt_BR.po | 16 +--
stock_inventory_discrepancy/i18n/sl.po | 16 +--
.../i18n/stock_inventory_discrepancy.pot | 104 ++++++++++++++++++
stock_inventory_discrepancy/i18n/tr_TR.po | 16 +--
.../models/__init__.py | 1 -
.../models/stock_inventory.py | 27 ++---
.../models/stock_inventory_line.py | 57 +++++-----
.../models/stock_location.py | 1 -
.../models/stock_warehouse.py | 1 -
stock_inventory_discrepancy/tests/__init__.py | 1 -
.../tests/test_inventory_discrepancy.py | 1 -
.../views/stock_inventory_view.xml | 3 +-
25 files changed, 246 insertions(+), 150 deletions(-)
create mode 100644 stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
diff --git a/stock_inventory_discrepancy/README.rst b/stock_inventory_discrepancy/README.rst
index 349f9ab31713..fb66b19e4c61 100644
--- a/stock_inventory_discrepancy/README.rst
+++ b/stock_inventory_discrepancy/README.rst
@@ -42,7 +42,7 @@ If you configured a "Maximum Discrepancy Rate Threshold".
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/153/10.0
+ :target: https://runbot.odoo-community.org/runbot/153/11.0
Bug Tracker
@@ -63,6 +63,7 @@ Contributors
------------
* Lois Rilo
+* Andreas Dian Sukarno Putro
Maintainer
diff --git a/stock_inventory_discrepancy/__init__.py b/stock_inventory_discrepancy/__init__.py
index 149f4e4fdfb4..4b76c7b2d5c9 100644
--- a/stock_inventory_discrepancy/__init__.py
+++ b/stock_inventory_discrepancy/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
diff --git a/stock_inventory_discrepancy/__manifest__.py b/stock_inventory_discrepancy/__manifest__.py
index 9adf7f942728..13c58b5302db 100644
--- a/stock_inventory_discrepancy/__manifest__.py
+++ b/stock_inventory_discrepancy/__manifest__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
@@ -7,7 +6,7 @@
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when the "
"discrepancy is over a user defined threshold.",
- "version": "10.0.1.0.0",
+ "version": "11.0.1.0.0",
"author": "Eficent, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
diff --git a/stock_inventory_discrepancy/i18n/cs_CZ.po b/stock_inventory_discrepancy/i18n/cs_CZ.po
index 78e4c210b7dd..56a8e3b39cd1 100644
--- a/stock_inventory_discrepancy/i18n/cs_CZ.po
+++ b/stock_inventory_discrepancy/i18n/cs_CZ.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# Lukáš Spurný , 2018
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Lukáš Spurný , 2018\n"
-"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/teams/23907/cs_CZ/)\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"
-"Language: cs_CZ\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +67,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +77,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +93,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/de.po b/stock_inventory_discrepancy/i18n/de.po
index 43ba40648515..9641e69f311f 100644
--- a/stock_inventory_discrepancy/i18n/de.po
+++ b/stock_inventory_discrepancy/i18n/de.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: OCA Transbot , 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"
-"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +66,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +76,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +92,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/es.po b/stock_inventory_discrepancy/i18n/es.po
index 439e29c38c6f..e5bb7d8bfaa0 100644
--- a/stock_inventory_discrepancy/i18n/es.po
+++ b/stock_inventory_discrepancy/i18n/es.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: OCA Transbot , 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"
-"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +66,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +76,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +92,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/es_ES.po b/stock_inventory_discrepancy/i18n/es_ES.po
index 534960a4fd41..ddd4c9a9aa05 100644
--- a/stock_inventory_discrepancy/i18n/es_ES.po
+++ b/stock_inventory_discrepancy/i18n/es_ES.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# OCA Transbot , 2017
# Daniel , 2017
@@ -12,11 +12,12 @@ msgstr ""
"POT-Creation-Date: 2017-07-26 11:41+0000\n"
"PO-Revision-Date: 2017-07-26 11:41+0000\n"
"Last-Translator: Daniel , 2017\n"
-"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/es_ES/)\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"
-"Language: es_ES\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
@@ -67,8 +68,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -77,7 +78,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -93,8 +94,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/fr.po b/stock_inventory_discrepancy/i18n/fr.po
index acb6234943d1..1d568967368b 100644
--- a/stock_inventory_discrepancy/i18n/fr.po
+++ b/stock_inventory_discrepancy/i18n/fr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: OCA Transbot , 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"
-"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +66,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +76,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +92,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/fr_FR.po b/stock_inventory_discrepancy/i18n/fr_FR.po
index 7d944989d47d..ed3e93a4d0d5 100644
--- a/stock_inventory_discrepancy/i18n/fr_FR.po
+++ b/stock_inventory_discrepancy/i18n/fr_FR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# Mohamed HABOU , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2017-02-18 04:05+0000\n"
"PO-Revision-Date: 2017-02-18 04:05+0000\n"
"Last-Translator: Mohamed HABOU , 2017\n"
-"Language-Team: French (France) (https://www.transifex.com/oca/teams/23907/fr_FR/)\n"
+"Language-Team: French (France) (https://www.transifex.com/oca/teams/23907/"
+"fr_FR/)\n"
+"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: fr_FR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +67,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +77,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +93,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/hr.po b/stock_inventory_discrepancy/i18n/hr.po
index 695dcfddcb69..58a4dbcba808 100644
--- a/stock_inventory_discrepancy/i18n/hr.po
+++ b/stock_inventory_discrepancy/i18n/hr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# Bole , 2018
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Bole , 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
+"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: hr\n"
-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
@@ -66,8 +67,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +77,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +93,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/it.po b/stock_inventory_discrepancy/i18n/it.po
index a209e7415886..8cd879383d65 100644
--- a/stock_inventory_discrepancy/i18n/it.po
+++ b/stock_inventory_discrepancy/i18n/it.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# OCA Transbot , 2017
# Paolo Valier , 2017
@@ -13,10 +13,10 @@ msgstr ""
"PO-Revision-Date: 2017-02-18 04:05+0000\n"
"Last-Translator: Paolo Valier , 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
+"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
@@ -67,8 +67,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -77,7 +77,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -93,8 +93,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/nl.po b/stock_inventory_discrepancy/i18n/nl.po
index a49c4d6c5667..95a26033b56f 100644
--- a/stock_inventory_discrepancy/i18n/nl.po
+++ b/stock_inventory_discrepancy/i18n/nl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-02-18 04:05+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
+"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +66,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +76,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +92,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/nl_NL.po b/stock_inventory_discrepancy/i18n/nl_NL.po
index c04bafc0a77e..32a84ff253ba 100644
--- a/stock_inventory_discrepancy/i18n/nl_NL.po
+++ b/stock_inventory_discrepancy/i18n/nl_NL.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# Peter Hageman , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2017-11-30 03:53+0000\n"
"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: Peter Hageman , 2017\n"
-"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
+"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
+"teams/23907/nl_NL/)\n"
+"Language: nl_NL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +67,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +77,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +93,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/pt_BR.po b/stock_inventory_discrepancy/i18n/pt_BR.po
index bf9612896205..c13cb32669e4 100644
--- a/stock_inventory_discrepancy/i18n/pt_BR.po
+++ b/stock_inventory_discrepancy/i18n/pt_BR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# Paulo Ricardo , 2017
# Felipe Lopes , 2017
@@ -12,11 +12,12 @@ msgstr ""
"POT-Creation-Date: 2017-02-18 04:05+0000\n"
"PO-Revision-Date: 2017-02-18 04:05+0000\n"
"Last-Translator: Felipe Lopes , 2017\n"
-"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
+"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
+"teams/23907/pt_BR/)\n"
+"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
@@ -67,8 +68,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -77,7 +78,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -93,8 +94,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/sl.po b/stock_inventory_discrepancy/i18n/sl.po
index e7f87e42f829..27c46704a111 100644
--- a/stock_inventory_discrepancy/i18n/sl.po
+++ b/stock_inventory_discrepancy/i18n/sl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
+"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: sl\n"
-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
+"%100==4 ? 2 : 3);\n"
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
@@ -66,8 +67,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +77,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +93,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
new file mode 100644
index 000000000000..5532ef512102
--- /dev/null
+++ b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
@@ -0,0 +1,104 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * stock_inventory_discrepancy
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 11.0\n"
+"Report-Msgid-Bugs-To: \n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid "Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+msgid "Force Validation"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
+msgid "Inventory"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
+msgid "Inventory Line"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
+msgid "Inventory Locations"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Maximum Discrepancy Rate Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+msgid "Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Threshold defined in involved Location has preference."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+msgid "Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Thresholds defined in Locations have preference over Warehouse's ones."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+msgid "Number of Discrepancies Over Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
+#, python-format
+msgid "The Qty Update is over the Discrepancy Threshold.\n"
+" Please, contact a user with rights to perform this action."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+msgid "The difference between the actual qty counted and the theoretical quantity on hand."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+msgid "Threshold (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
+msgid "Validate All inventory Adjustments"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments Under Threshold"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
+msgid "Warehouse"
+msgstr ""
+
diff --git a/stock_inventory_discrepancy/i18n/tr_TR.po b/stock_inventory_discrepancy/i18n/tr_TR.po
index 95e67283ca50..d5dff22a09d9 100644
--- a/stock_inventory_discrepancy/i18n/tr_TR.po
+++ b/stock_inventory_discrepancy/i18n/tr_TR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_discrepancy
-#
+#
# Translators:
# Ozge Altinisik , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2017-02-18 04:05+0000\n"
"PO-Revision-Date: 2017-02-18 04:05+0000\n"
"Last-Translator: Ozge Altinisik , 2017\n"
-"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n"
+"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/"
+"tr_TR/)\n"
+"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: tr_TR\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: stock_inventory_discrepancy
@@ -66,8 +67,8 @@ msgstr ""
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
-"Adjustment. Thresholds defined in Locations have preference over Warehouse's"
-" ones."
+"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
+"ones."
msgstr ""
#. module: stock_inventory_discrepancy
@@ -76,7 +77,7 @@ msgid "Number of Discrepancies Over Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:55
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
msgid ""
"The Qty Update is over the Discrepancy Threshold.\n"
@@ -92,8 +93,7 @@ msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
-msgid ""
-"The discrepancy expressed in percent with theoretical quantity as basis"
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/models/__init__.py b/stock_inventory_discrepancy/models/__init__.py
index 6cf0c1ba8fbb..6431c5a0539a 100644
--- a/stock_inventory_discrepancy/models/__init__.py
+++ b/stock_inventory_discrepancy/models/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import stock_inventory
diff --git a/stock_inventory_discrepancy/models/stock_inventory.py b/stock_inventory_discrepancy/models/stock_inventory.py
index c9e73d9554dd..34989a26db8f 100644
--- a/stock_inventory_discrepancy/models/stock_inventory.py
+++ b/stock_inventory_discrepancy/models/stock_inventory.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
@@ -17,14 +16,6 @@ class StockInventory(models.Model):
('pending', 'Pending to Approve'),
('done', 'Validated')]
- @api.one
- @api.depends('line_ids.product_qty', 'line_ids.theoretical_qty')
- def _compute_over_discrepancy_line_count(self):
- lines = self.line_ids
- self.over_discrepancy_line_count = sum(
- d.discrepancy_percent > d.discrepancy_threshold
- for d in lines)
-
state = fields.Selection(
selection=INVENTORY_STATE_SELECTION,
string='Status', readonly=True, index=True, copy=False,
@@ -37,12 +28,22 @@ def _compute_over_discrepancy_line_count(self):
"- Validated: Inventory Approved.")
over_discrepancy_line_count = fields.Integer(
string='Number of Discrepancies Over Threshold',
- compute=_compute_over_discrepancy_line_count,
+ compute='_compute_over_discrepancy_line_count',
store=True)
- @api.model
+ @api.multi
+ @api.depends('line_ids.product_qty', 'line_ids.theoretical_qty')
+ def _compute_over_discrepancy_line_count(self):
+ for inventory in self:
+ lines = inventory.line_ids.filtered(
+ lambda line: line.discrepancy_percent > line.
+ discrepancy_threshold
+ )
+ inventory.over_discrepancy_line_count = len(lines)
+
+ @api.multi
def action_over_discrepancies(self):
- self.state = 'pending'
+ self.write({'state': 'pending'})
def _check_group_inventory_validation_always(self):
grp_inv_val = self.env.ref(
@@ -57,8 +58,8 @@ def _check_group_inventory_validation_always(self):
'this action.')
)
- @api.one
def action_done(self):
+ self.ensure_one()
if self.over_discrepancy_line_count and self.line_ids.filtered(
lambda t: t.discrepancy_threshold > 0.0):
if self.env.context.get('normal_view', False):
diff --git a/stock_inventory_discrepancy/models/stock_inventory_line.py b/stock_inventory_discrepancy/models/stock_inventory_line.py
index 68289c76742d..16bd4453030d 100644
--- a/stock_inventory_discrepancy/models/stock_inventory_line.py
+++ b/stock_inventory_discrepancy/models/stock_inventory_line.py
@@ -1,44 +1,23 @@
-# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+from odoo.addons import decimal_precision as dp
from odoo import api, fields, models
class StockInventoryLine(models.Model):
_inherit = 'stock.inventory.line'
- @api.multi
- def _compute_discrepancy(self):
- for l in self:
- l.discrepancy_qty = l.product_qty - l.theoretical_qty
- if l.theoretical_qty:
- l.discrepancy_percent = 100 * abs(
- (l.product_qty - l.theoretical_qty) /
- l.theoretical_qty)
- elif not l.theoretical_qty and l.product_qty:
- l.discrepancy_percent = 100.0
-
- @api.multi
- def _compute_discrepancy_threshold(self):
- for l in self:
- wh = l.location_id.get_warehouse()
- if l.location_id.discrepancy_threshold > 0.0:
- l.discrepancy_threshold = l.location_id.discrepancy_threshold
- elif wh.discrepancy_threshold > 0.0:
- l.discrepancy_threshold = wh.discrepancy_threshold
- else:
- l.discrepancy_threshold = False
-
discrepancy_qty = fields.Float(
string='Discrepancy',
- compute=_compute_discrepancy,
+ compute='_compute_discrepancy',
help="The difference between the actual qty counted and the "
- "theoretical quantity on hand.")
+ "theoretical quantity on hand.",
+ digits=dp.get_precision('Product Unit of Measure'), default=0)
discrepancy_percent = fields.Float(
string='Discrepancy percent (%)',
- compute=_compute_discrepancy,
+ compute='_compute_discrepancy',
digits=(3, 2),
help="The discrepancy expressed in percent with theoretical quantity "
"as basis")
@@ -46,4 +25,28 @@ def _compute_discrepancy_threshold(self):
string='Threshold (%)',
digits=(3, 2),
help="Maximum Discrepancy Rate Threshold",
- compute=_compute_discrepancy_threshold)
+ compute='_compute_discrepancy_threshold')
+
+ @api.multi
+ @api.depends('theoretical_qty', 'product_qty')
+ def _compute_discrepancy(self):
+ for line in self:
+ line.discrepancy_qty = line.product_qty - line.theoretical_qty
+ if line.theoretical_qty:
+ line.discrepancy_percent = 100 * abs(
+ (line.product_qty - line.theoretical_qty) /
+ line.theoretical_qty)
+ elif not line.theoretical_qty and line.product_qty:
+ line.discrepancy_percent = 100.0
+
+ @api.multi
+ def _compute_discrepancy_threshold(self):
+ for line in self:
+ whs = line.location_id.get_warehouse()
+ if line.location_id.discrepancy_threshold > 0.0:
+ line.discrepancy_threshold = line.location_id.\
+ discrepancy_threshold
+ elif whs.discrepancy_threshold > 0.0:
+ line.discrepancy_threshold = whs.discrepancy_threshold
+ else:
+ line.discrepancy_threshold = False
diff --git a/stock_inventory_discrepancy/models/stock_location.py b/stock_inventory_discrepancy/models/stock_location.py
index 3663961889ae..5e09fee4ee67 100644
--- a/stock_inventory_discrepancy/models/stock_location.py
+++ b/stock_inventory_discrepancy/models/stock_location.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
diff --git a/stock_inventory_discrepancy/models/stock_warehouse.py b/stock_inventory_discrepancy/models/stock_warehouse.py
index 8a2f61299acc..f27476544725 100644
--- a/stock_inventory_discrepancy/models/stock_warehouse.py
+++ b/stock_inventory_discrepancy/models/stock_warehouse.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
diff --git a/stock_inventory_discrepancy/tests/__init__.py b/stock_inventory_discrepancy/tests/__init__.py
index aa61d27723f3..f019e5719506 100644
--- a/stock_inventory_discrepancy/tests/__init__.py
+++ b/stock_inventory_discrepancy/tests/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import test_inventory_discrepancy
diff --git a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
index e42ee88fd61b..1a5304308693 100644
--- a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
+++ b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
diff --git a/stock_inventory_discrepancy/views/stock_inventory_view.xml b/stock_inventory_discrepancy/views/stock_inventory_view.xml
index a5b845887407..72c8567be127 100644
--- a/stock_inventory_discrepancy/views/stock_inventory_view.xml
+++ b/stock_inventory_discrepancy/views/stock_inventory_view.xml
@@ -40,8 +40,7 @@
- theoretical_qty < 0 or
- discrepancy_percent > discrepancy_threshold
+ theoretical_qty < 0 or discrepancy_percent > discrepancy_threshold
From a26a0e590c3a8e81cfe3e0cd21a4304e3567c650 Mon Sep 17 00:00:00 2001
From: Denis Roussel
Date: Fri, 24 Aug 2018 12:14:25 +0200
Subject: [PATCH 04/23] [10.0][FIX] stock_inventory_discrepancy: Launch wizard
as current user
---
.../static/description/icon.png | Bin 0 -> 9455 bytes
.../tests/test_inventory_discrepancy.py | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
create mode 100644 stock_inventory_discrepancy/static/description/icon.png
diff --git a/stock_inventory_discrepancy/static/description/icon.png b/stock_inventory_discrepancy/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d
GIT binary patch
literal 9455
zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~!
zVpnB`o+K7|Al`Q_U;eD$B
zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA
z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__
zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_
zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I
z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U
z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)(
z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH
zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW
z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx
zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h
zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9
zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz#
z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA
zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K=
z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS
zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C
zuVl&0duN<;uOsB3%T9Fp8t{ED108)`y_~Hnd9AUX7h-H?jVuU|}My+C=TjH(jKz
zqMVr0re3S$H@t{zI95qa)+Crz*5Zj}Ao%4Z><+W(nOZd?gDnfNBC3>M8WE61$So|P
zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO
z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1
zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_
zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8
zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ>
zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN
z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h
zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d
zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB
zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz
z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I
zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X
zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD
z#z-)AXwSRY?OPefw^iI+
z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd
z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs
z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I
z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$
z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV
z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s
zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6
zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u
zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q
zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH
zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c
zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT
zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+
z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ
zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy
zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC)
zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a
zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x!
zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X
zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8
z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A
z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H
zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n=
z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK
z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z
zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h
z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD
z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW
zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@
zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz
z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y<
zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X
zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6
zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6%
z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(|
z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ
z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H
zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6
z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d}
z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A
zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB
z
z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp
zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zls4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6#
z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f#
zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC
zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv!
zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG
z-wfS
zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9
z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE#
z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz
zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t
z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN
zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q
ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k
zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG
z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff
z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1
zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO
zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$
zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV(
z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb
zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4
z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{
zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx}
z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov
zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22
zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq
zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t<
z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k
z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp
z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{}
zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N
Xviia!U7SGha1wx#SCgwmn*{w2TRX*I
literal 0
HcmV?d00001
diff --git a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
index 1a5304308693..f01664b01ecd 100644
--- a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
+++ b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
@@ -162,11 +162,11 @@ def test_update_qty_user_error(self):
"""Test if a user error raises when a stock user tries to update the
qty for a product and the correction is a discrepancy over the
threshold."""
- upd_qty = self.obj_upd_qty_wizard.create({
+ upd_qty = self.obj_upd_qty_wizard.sudo(self.user).create({
'product_id': self.product1.id,
'product_tmpl_id': self.product1.product_tmpl_id.id,
'new_quantity': 10.0,
'location_id': self.test_loc.id,
})
with self.assertRaises(UserError):
- upd_qty.sudo(self.user).change_product_qty()
+ upd_qty.change_product_qty()
From a72fa966c568f33fa5b7002bf46be6bafa195e34 Mon Sep 17 00:00:00 2001
From: Bhavesh Odedra
Date: Fri, 21 Jun 2019 17:16:16 +0530
Subject: [PATCH 05/23] [12.0][MIG] stock_inventory_discrepancy: Migration to
12.0
Added translation using Weblate (Chinese (Simplified))
---
stock_inventory_discrepancy/README.rst | 85 ++--
stock_inventory_discrepancy/__manifest__.py | 4 +-
stock_inventory_discrepancy/i18n/cs_CZ.po | 65 ++-
stock_inventory_discrepancy/i18n/de.po | 65 ++-
stock_inventory_discrepancy/i18n/es.po | 65 ++-
stock_inventory_discrepancy/i18n/es_ES.po | 65 ++-
stock_inventory_discrepancy/i18n/fr.po | 65 ++-
stock_inventory_discrepancy/i18n/fr_FR.po | 65 ++-
stock_inventory_discrepancy/i18n/hr.po | 65 ++-
stock_inventory_discrepancy/i18n/it.po | 65 ++-
stock_inventory_discrepancy/i18n/nl.po | 65 ++-
stock_inventory_discrepancy/i18n/nl_NL.po | 65 ++-
stock_inventory_discrepancy/i18n/pt_BR.po | 65 ++-
stock_inventory_discrepancy/i18n/sl.po | 65 ++-
.../i18n/stock_inventory_discrepancy.pot | 65 ++-
stock_inventory_discrepancy/i18n/tr_TR.po | 65 ++-
stock_inventory_discrepancy/i18n/zh_CN.po | 152 ++++++
.../models/stock_inventory.py | 25 +-
.../readme/CONFIGURE.rst | 4 +
.../readme/CONTRIBUTORS.rst | 3 +
.../readme/DESCRIPTION.rst | 8 +
stock_inventory_discrepancy/readme/USAGE.rst | 9 +
.../static/description/index.html | 451 ++++++++++++++++++
.../tests/test_inventory_discrepancy.py | 14 +-
.../views/stock_inventory_view.xml | 4 +-
25 files changed, 1445 insertions(+), 224 deletions(-)
create mode 100644 stock_inventory_discrepancy/i18n/zh_CN.po
create mode 100644 stock_inventory_discrepancy/readme/CONFIGURE.rst
create mode 100644 stock_inventory_discrepancy/readme/CONTRIBUTORS.rst
create mode 100644 stock_inventory_discrepancy/readme/DESCRIPTION.rst
create mode 100644 stock_inventory_discrepancy/readme/USAGE.rst
create mode 100644 stock_inventory_discrepancy/static/description/index.html
diff --git a/stock_inventory_discrepancy/README.rst b/stock_inventory_discrepancy/README.rst
index fb66b19e4c61..c411aeacfc25 100644
--- a/stock_inventory_discrepancy/README.rst
+++ b/stock_inventory_discrepancy/README.rst
@@ -1,11 +1,30 @@
-.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
- :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
- :alt: License: AGPL-3
-
===========================
Stock Inventory Discrepancy
===========================
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! 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/12.0/stock_inventory_discrepancy
+ :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-12-0/stock-logistics-warehouse-12-0-stock_inventory_discrepancy
+ :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/12.0
+ :alt: Try me on Runbot
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
Adds the capability to show the discrepancy of every line in an inventory and
to block the inventory validation (setting it as 'Pending to Approve') when the
discrepancy is greater than an user defined threshold.
@@ -15,12 +34,14 @@ validation of those blocked inventories. By default, Stock manager will belong
to this group. In addition, Stock Users can validate inventories under the
threshold now.
+**Table of contents**
+
+.. contents::
+ :local:
Configuration
=============
-You can configure the threshold as described below:
-
#. Go to "Inventory > Warehouse Management" > Warehouses" or to "Inventory >
Warehouse Management" > Locations".
#. Modify the "Maximum Discrepancy Rate Threshold" either in a Warehouse or
@@ -31,52 +52,52 @@ Usage
If you configured a "Maximum Discrepancy Rate Threshold".
-* When validating an Inventory Adjustment if some line exceed the Discrepancy
- Threshold the system will set the inventory's state to 'Pending to Approve'
- and show the quantity of lines that exceed the threshold.
-* If both WH and location thresholds are configured, the location one has
- preference.
-* The user with "Validate All inventory Adjustments" rights can force the
- validation of an inventory pending to approve.
-
-
-.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
- :alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/153/11.0
-
+#. When validating an Inventory Adjustment if some line exceed the Discrepancy
+ Threshold the system will set the inventory's state to 'Pending to Approve'
+ and show the quantity of lines that exceed the threshold.
+#. If both WH and location thresholds are configured, the location one has
+ preference.
+#. The user with "Validate All inventory Adjustments" rights can force the
+ validation of an inventory pending to approve.
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 smash it by providing detailed and welcomed feedback.
+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 `_.
+
+Do not contact contributors directly about support or help with technical issues.
+Credits
+=======
-Images
-------
+Authors
+~~~~~~~
-* Odoo Community Association: `Icon `_.
+* Eficent
Contributors
-------------
+~~~~~~~~~~~~
* Lois Rilo
* Andreas Dian Sukarno Putro
+* Bhavesh Odedra
+Maintainers
+~~~~~~~~~~~
-Maintainer
-----------
+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/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_inventory_discrepancy/__manifest__.py b/stock_inventory_discrepancy/__manifest__.py
index 13c58b5302db..9f58845ac7d4 100644
--- a/stock_inventory_discrepancy/__manifest__.py
+++ b/stock_inventory_discrepancy/__manifest__.py
@@ -6,17 +6,17 @@
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when the "
"discrepancy is over a user defined threshold.",
- "version": "11.0.1.0.0",
+ "version": "12.0.1.0.0",
"author": "Eficent, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse Management",
"depends": ["stock"],
"data": [
+ 'security/stock_inventory_discrepancy_security.xml',
'views/stock_inventory_view.xml',
'views/stock_warehouse_view.xml',
'views/stock_location_view.xml',
- 'security/stock_inventory_discrepancy_security.xml',
],
"license": "AGPL-3",
'installable': True,
diff --git a/stock_inventory_discrepancy/i18n/cs_CZ.po b/stock_inventory_discrepancy/i18n/cs_CZ.po
index 56a8e3b39cd1..b4da709385a3 100644
--- a/stock_inventory_discrepancy/i18n/cs_CZ.po
+++ b/stock_inventory_discrepancy/i18n/cs_CZ.po
@@ -20,20 +20,35 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -50,21 +65,21 @@ msgid "Inventory Locations"
msgstr "Umístění inventáře"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -72,10 +87,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -85,19 +121,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -111,6 +147,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/de.po b/stock_inventory_discrepancy/i18n/de.po
index 9641e69f311f..3bf6f3023be2 100644
--- a/stock_inventory_discrepancy/i18n/de.po
+++ b/stock_inventory_discrepancy/i18n/de.po
@@ -19,20 +19,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -49,21 +64,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -71,10 +86,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -84,19 +120,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -110,6 +146,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/es.po b/stock_inventory_discrepancy/i18n/es.po
index e5bb7d8bfaa0..8880340e4d40 100644
--- a/stock_inventory_discrepancy/i18n/es.po
+++ b/stock_inventory_discrepancy/i18n/es.po
@@ -19,20 +19,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -49,21 +64,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -71,10 +86,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -84,19 +120,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -110,6 +146,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/es_ES.po b/stock_inventory_discrepancy/i18n/es_ES.po
index ddd4c9a9aa05..1ec51d420d39 100644
--- a/stock_inventory_discrepancy/i18n/es_ES.po
+++ b/stock_inventory_discrepancy/i18n/es_ES.po
@@ -21,20 +21,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -51,21 +66,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -73,10 +88,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -86,19 +122,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -112,6 +148,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/fr.po b/stock_inventory_discrepancy/i18n/fr.po
index 1d568967368b..760f9695a818 100644
--- a/stock_inventory_discrepancy/i18n/fr.po
+++ b/stock_inventory_discrepancy/i18n/fr.po
@@ -19,20 +19,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -49,21 +64,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -71,10 +86,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -84,19 +120,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -110,6 +146,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/fr_FR.po b/stock_inventory_discrepancy/i18n/fr_FR.po
index ed3e93a4d0d5..407a2b4e1c80 100644
--- a/stock_inventory_discrepancy/i18n/fr_FR.po
+++ b/stock_inventory_discrepancy/i18n/fr_FR.po
@@ -20,20 +20,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -50,21 +65,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -72,10 +87,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -85,19 +121,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -111,6 +147,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/hr.po b/stock_inventory_discrepancy/i18n/hr.po
index 58a4dbcba808..027f5936053d 100644
--- a/stock_inventory_discrepancy/i18n/hr.po
+++ b/stock_inventory_discrepancy/i18n/hr.po
@@ -20,20 +20,35 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -50,21 +65,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -72,10 +87,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -85,19 +121,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -111,6 +147,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/it.po b/stock_inventory_discrepancy/i18n/it.po
index 8cd879383d65..0e5ff1cb606e 100644
--- a/stock_inventory_discrepancy/i18n/it.po
+++ b/stock_inventory_discrepancy/i18n/it.po
@@ -20,20 +20,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -50,21 +65,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -72,10 +87,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -85,19 +121,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -111,6 +147,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/nl.po b/stock_inventory_discrepancy/i18n/nl.po
index 95a26033b56f..2cca957e92f6 100644
--- a/stock_inventory_discrepancy/i18n/nl.po
+++ b/stock_inventory_discrepancy/i18n/nl.po
@@ -19,20 +19,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -49,21 +64,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -71,10 +86,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -84,19 +120,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -110,6 +146,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/nl_NL.po b/stock_inventory_discrepancy/i18n/nl_NL.po
index 32a84ff253ba..b448f8113a66 100644
--- a/stock_inventory_discrepancy/i18n/nl_NL.po
+++ b/stock_inventory_discrepancy/i18n/nl_NL.po
@@ -20,20 +20,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -50,21 +65,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -72,10 +87,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -85,19 +121,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -111,6 +147,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/pt_BR.po b/stock_inventory_discrepancy/i18n/pt_BR.po
index c13cb32669e4..ce446d49508f 100644
--- a/stock_inventory_discrepancy/i18n/pt_BR.po
+++ b/stock_inventory_discrepancy/i18n/pt_BR.po
@@ -21,20 +21,35 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -51,21 +66,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -73,10 +88,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -86,19 +122,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -112,6 +148,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/sl.po b/stock_inventory_discrepancy/i18n/sl.po
index 27c46704a111..8da2061450ec 100644
--- a/stock_inventory_discrepancy/i18n/sl.po
+++ b/stock_inventory_discrepancy/i18n/sl.po
@@ -20,20 +20,35 @@ msgstr ""
"%100==4 ? 2 : 3);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -50,21 +65,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -72,10 +87,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -85,19 +121,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -111,6 +147,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
index 5532ef512102..fa26d0ebcc47 100644
--- a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
+++ b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 11.0\n"
+"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -14,20 +14,35 @@ msgstr ""
"Plural-Forms: \n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -44,27 +59,46 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid "Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid "Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Thresholds defined in Locations have preference over Warehouse's ones."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -73,17 +107,17 @@ msgid "The Qty Update is over the Discrepancy Threshold.\n"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "The difference between the actual qty counted and the theoretical quantity on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -97,6 +131,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/tr_TR.po b/stock_inventory_discrepancy/i18n/tr_TR.po
index d5dff22a09d9..4f738e65a2b1 100644
--- a/stock_inventory_discrepancy/i18n/tr_TR.po
+++ b/stock_inventory_discrepancy/i18n/tr_TR.po
@@ -20,20 +20,35 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid "Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -50,21 +65,21 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Threshold defined in involved Location has preference."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location_discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
msgid ""
"Maximum Discrepancy Rate allowed for any product when doing an Inventory "
"Adjustment. Thresholds defined in Locations have preference over Warehouse's "
@@ -72,10 +87,31 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_over_discrepancy_line_count
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
msgid "Number of Discrepancies Over Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid ""
+"States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the "
+"predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
#, python-format
@@ -85,19 +121,19 @@ msgid ""
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_qty
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
msgid ""
"The difference between the actual qty counted and the theoretical quantity "
"on hand."
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line_discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
@@ -111,6 +147,11 @@ msgstr ""
msgid "Validate Inventory Adjustments Under Threshold"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
msgid "Warehouse"
diff --git a/stock_inventory_discrepancy/i18n/zh_CN.po b/stock_inventory_discrepancy/i18n/zh_CN.po
new file mode 100644
index 000000000000..ab8a927dd01b
--- /dev/null
+++ b/stock_inventory_discrepancy/i18n/zh_CN.po
@@ -0,0 +1,152 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * stock_inventory_discrepancy
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 12.0\n"
+"Report-Msgid-Bugs-To: \n"
+"PO-Revision-Date: 2019-09-28 09:24+0000\n"
+"Last-Translator: 黎伟杰 <674416404@qq.com>\n"
+"Language-Team: none\n"
+"Language: zh_CN\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Weblate 3.8\n"
+
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Cancelled"
+msgstr "已取消"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
+msgid "Discrepancy"
+msgstr "差异"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr "差异百分比(%)"
+
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Draft"
+msgstr "草稿"
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
+msgid "Force Validation"
+msgstr "强制验证"
+
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "In Progress"
+msgstr "进行中"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
+msgid "Inventory"
+msgstr "库存"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
+msgid "Inventory Line"
+msgstr "库存行"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
+msgid "Inventory Locations"
+msgstr "库存位置"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+msgid "Maximum Discrepancy Rate Threshold"
+msgstr "最大差异率阈值"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
+msgid "Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Threshold defined in involved Location has preference."
+msgstr "进行库存调整时,任何产品所允许的最大差异率。在所涉及的位置中定义的阈值具有优先级。"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
+msgid "Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Thresholds defined in Locations have preference over Warehouse's ones."
+msgstr "进行库存调整时,任何产品所允许的最大差异率。在“位置”中定义的阈值优先于“仓库”的阈值。"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
+msgid "Number of Discrepancies Over Threshold"
+msgstr "超过阈值的差异数量"
+
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Pending to Approve"
+msgstr "待批准"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "States of the Inventory Adjustment:\n"
+"- Draft: Inventory not started.\n"
+"- In Progress: Inventory in execution.\n"
+"- Pending to Approve: Inventory have some discrepancies greater than the predefined threshold and it's waiting for the Control Manager approval.\n"
+"- Validated: Inventory Approved."
+msgstr ""
+"库存调整的状态:\n"
+"- 草稿:库存未开始。\n"
+"- 进行中:执行中的库存。\n"
+"- 待批准:库存有一些差异大于预定义的阈值,并且正在等待控制管理中心批准。\n"
+"- 已验证:库存已批准。"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
+msgid "Status"
+msgstr "状态"
+
+#. module: stock_inventory_discrepancy
+#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:56
+#, python-format
+msgid "The Qty Update is over the Discrepancy Threshold.\n"
+" Please, contact a user with rights to perform this action."
+msgstr ""
+"数量更新超过差异阈值。\n"
+"请与有权执行此操作的用户联系。"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
+msgid "The difference between the actual qty counted and the theoretical quantity on hand."
+msgstr "计算的实际数量与现有理论数量之间的差。"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+msgid "The discrepancy expressed in percent with theoretical quantity as basis"
+msgstr "差异以理论量为基础的百分比表示"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+msgid "Threshold (%)"
+msgstr "阈值(%)"
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
+msgid "Validate All inventory Adjustments"
+msgstr "验证所有库存调整"
+
+#. module: stock_inventory_discrepancy
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments Under Threshold"
+msgstr "验证阈值下的库存调整"
+
+#. module: stock_inventory_discrepancy
+#: selection:stock.inventory,state:0
+msgid "Validated"
+msgstr "已验证"
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
+msgid "Warehouse"
+msgstr "仓库"
diff --git a/stock_inventory_discrepancy/models/stock_inventory.py b/stock_inventory_discrepancy/models/stock_inventory.py
index 34989a26db8f..fd3204246c7a 100644
--- a/stock_inventory_discrepancy/models/stock_inventory.py
+++ b/stock_inventory_discrepancy/models/stock_inventory.py
@@ -2,7 +2,7 @@
# (http://www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from odoo import _, api, fields, models
+from odoo import api, fields, models, _
from odoo.exceptions import UserError
@@ -58,17 +58,18 @@ def _check_group_inventory_validation_always(self):
'this action.')
)
- def action_done(self):
- self.ensure_one()
- if self.over_discrepancy_line_count and self.line_ids.filtered(
- lambda t: t.discrepancy_threshold > 0.0):
- if self.env.context.get('normal_view', False):
- self.action_over_discrepancies()
- return True
- else:
- self._check_group_inventory_validation_always()
- return super(StockInventory, self).action_done()
+ def _action_done(self):
+ for inventory in self:
+ if (inventory.over_discrepancy_line_count and
+ inventory.line_ids.filtered(
+ lambda t: t.discrepancy_threshold > 0.0)):
+ if inventory.env.context.get('normal_view', False):
+ inventory.action_over_discrepancies()
+ return True
+ else:
+ inventory._check_group_inventory_validation_always()
+ return super(StockInventory, self)._action_done()
@api.multi
def action_force_done(self):
- return super(StockInventory, self).action_done()
+ return super(StockInventory, self)._action_done()
diff --git a/stock_inventory_discrepancy/readme/CONFIGURE.rst b/stock_inventory_discrepancy/readme/CONFIGURE.rst
new file mode 100644
index 000000000000..9d5628d89493
--- /dev/null
+++ b/stock_inventory_discrepancy/readme/CONFIGURE.rst
@@ -0,0 +1,4 @@
+#. Go to "Inventory > Warehouse Management" > Warehouses" or to "Inventory >
+ Warehouse Management" > Locations".
+#. Modify the "Maximum Discrepancy Rate Threshold" either in a Warehouse or
+ in a location. If set to 0.0 in both the threshold is disabled.
diff --git a/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst b/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst
new file mode 100644
index 000000000000..260cd5370d0e
--- /dev/null
+++ b/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst
@@ -0,0 +1,3 @@
+* Lois Rilo
+* Andreas Dian Sukarno Putro
+* Bhavesh Odedra
diff --git a/stock_inventory_discrepancy/readme/DESCRIPTION.rst b/stock_inventory_discrepancy/readme/DESCRIPTION.rst
new file mode 100644
index 000000000000..9dbe855774bb
--- /dev/null
+++ b/stock_inventory_discrepancy/readme/DESCRIPTION.rst
@@ -0,0 +1,8 @@
+Adds the capability to show the discrepancy of every line in an inventory and
+to block the inventory validation (setting it as 'Pending to Approve') when the
+discrepancy is greater than an user defined threshold.
+
+Only new group "Validate All inventory Adjustments" will be able to force the
+validation of those blocked inventories. By default, Stock manager will belong
+to this group. In addition, Stock Users can validate inventories under the
+threshold now.
diff --git a/stock_inventory_discrepancy/readme/USAGE.rst b/stock_inventory_discrepancy/readme/USAGE.rst
new file mode 100644
index 000000000000..c33fe5d605b6
--- /dev/null
+++ b/stock_inventory_discrepancy/readme/USAGE.rst
@@ -0,0 +1,9 @@
+If you configured a "Maximum Discrepancy Rate Threshold".
+
+#. When validating an Inventory Adjustment if some line exceed the Discrepancy
+ Threshold the system will set the inventory's state to 'Pending to Approve'
+ and show the quantity of lines that exceed the threshold.
+#. If both WH and location thresholds are configured, the location one has
+ preference.
+#. The user with "Validate All inventory Adjustments" rights can force the
+ validation of an inventory pending to approve.
diff --git a/stock_inventory_discrepancy/static/description/index.html b/stock_inventory_discrepancy/static/description/index.html
new file mode 100644
index 000000000000..bcc1058a8904
--- /dev/null
+++ b/stock_inventory_discrepancy/static/description/index.html
@@ -0,0 +1,451 @@
+
+
+
+
+
+
+Stock Inventory Discrepancy
+
+
+
+
+
Stock Inventory Discrepancy
+
+
+
+
Adds the capability to show the discrepancy of every line in an inventory and
+to block the inventory validation (setting it as ‘Pending to Approve’) when the
+discrepancy is greater than an user defined threshold.
+
Only new group “Validate All inventory Adjustments” will be able to force the
+validation of those blocked inventories. By default, Stock manager will belong
+to this group. In addition, Stock Users can validate inventories under the
+threshold now.
If you configured a “Maximum Discrepancy Rate Threshold”.
+
+
When validating an Inventory Adjustment if some line exceed the Discrepancy
+Threshold the system will set the inventory’s state to ‘Pending to Approve’
+and show the quantity of lines that exceed the threshold.
+
If both WH and location thresholds are configured, the location one has
+preference.
+
The user with “Validate All inventory Adjustments” rights can force the
+validation of an inventory pending to approve.
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.
+
Do not contact contributors directly about support or help with technical issues.
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.
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.
-
From 17e255b19d9ce019c69a8a91e574969a42cdf422 Mon Sep 17 00:00:00 2001
From: mreficent
Date: Wed, 30 Sep 2020 12:43:18 +0200
Subject: [PATCH 08/23] [UPD] Eficent -> ForgeFlow
---
stock_inventory_discrepancy/hooks.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stock_inventory_discrepancy/hooks.py b/stock_inventory_discrepancy/hooks.py
index 3a4356c77d9b..da9c343b51d7 100644
--- a/stock_inventory_discrepancy/hooks.py
+++ b/stock_inventory_discrepancy/hooks.py
@@ -1,4 +1,4 @@
-# Copyright 2019 Eficent Business and IT Consulting Services S.L.
+# Copyright 2019 ForgeFlow S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
From dff07a1ae81784aaae4b35841e415234d4c34117 Mon Sep 17 00:00:00 2001
From: Lois Rilo
Date: Thu, 27 May 2021 13:54:19 +0200
Subject: [PATCH 09/23] [IMP] stock_inventory_discrepancy: centralize logic for
over discrepancy assessment and ease extension.
---
stock_inventory_discrepancy/__manifest__.py | 2 +-
stock_inventory_discrepancy/i18n/cs_CZ.po | 5 +++++
stock_inventory_discrepancy/i18n/de.po | 5 +++++
stock_inventory_discrepancy/i18n/es.po | 5 +++++
stock_inventory_discrepancy/i18n/es_ES.po | 5 +++++
stock_inventory_discrepancy/i18n/fr.po | 5 +++++
stock_inventory_discrepancy/i18n/fr_FR.po | 5 +++++
stock_inventory_discrepancy/i18n/hr.po | 5 +++++
stock_inventory_discrepancy/i18n/it.po | 5 +++++
stock_inventory_discrepancy/i18n/nl.po | 5 +++++
stock_inventory_discrepancy/i18n/nl_NL.po | 5 +++++
stock_inventory_discrepancy/i18n/pt_BR.po | 5 +++++
stock_inventory_discrepancy/i18n/sl.po | 5 +++++
.../i18n/stock_inventory_discrepancy.pot | 5 +++++
stock_inventory_discrepancy/i18n/tr_TR.po | 5 +++++
stock_inventory_discrepancy/i18n/zh_CN.po | 5 +++++
stock_inventory_discrepancy/models/stock_inventory.py | 9 +++------
.../models/stock_inventory_line.py | 11 +++++++++--
.../tests/test_inventory_discrepancy.py | 1 +
.../views/stock_inventory_view.xml | 3 ++-
20 files changed, 91 insertions(+), 10 deletions(-)
diff --git a/stock_inventory_discrepancy/__manifest__.py b/stock_inventory_discrepancy/__manifest__.py
index 951c3df4742f..f3d42f03f5f5 100644
--- a/stock_inventory_discrepancy/__manifest__.py
+++ b/stock_inventory_discrepancy/__manifest__.py
@@ -5,7 +5,7 @@
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when the "
"discrepancy is over a user defined threshold.",
- "version": "13.0.1.0.0",
+ "version": "13.0.1.1.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse",
diff --git a/stock_inventory_discrepancy/i18n/cs_CZ.po b/stock_inventory_discrepancy/i18n/cs_CZ.po
index 37218a71ffab..f1eec228941d 100644
--- a/stock_inventory_discrepancy/i18n/cs_CZ.po
+++ b/stock_inventory_discrepancy/i18n/cs_CZ.po
@@ -34,6 +34,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/de.po b/stock_inventory_discrepancy/i18n/de.po
index 683d86ba3efc..a6dfb8f77b7f 100644
--- a/stock_inventory_discrepancy/i18n/de.po
+++ b/stock_inventory_discrepancy/i18n/de.po
@@ -33,6 +33,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/es.po b/stock_inventory_discrepancy/i18n/es.po
index 1ab5076d9dc2..3f3e2d562f58 100644
--- a/stock_inventory_discrepancy/i18n/es.po
+++ b/stock_inventory_discrepancy/i18n/es.po
@@ -33,6 +33,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/es_ES.po b/stock_inventory_discrepancy/i18n/es_ES.po
index 977d8e610183..8da3b5de6c79 100644
--- a/stock_inventory_discrepancy/i18n/es_ES.po
+++ b/stock_inventory_discrepancy/i18n/es_ES.po
@@ -35,6 +35,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/fr.po b/stock_inventory_discrepancy/i18n/fr.po
index 90696e80fbf9..15f22b614cfc 100644
--- a/stock_inventory_discrepancy/i18n/fr.po
+++ b/stock_inventory_discrepancy/i18n/fr.po
@@ -33,6 +33,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/fr_FR.po b/stock_inventory_discrepancy/i18n/fr_FR.po
index 30cdfd2fb0e8..68a329ccafb2 100644
--- a/stock_inventory_discrepancy/i18n/fr_FR.po
+++ b/stock_inventory_discrepancy/i18n/fr_FR.po
@@ -34,6 +34,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/hr.po b/stock_inventory_discrepancy/i18n/hr.po
index 662b43c7fb50..563f84fa7e8f 100644
--- a/stock_inventory_discrepancy/i18n/hr.po
+++ b/stock_inventory_discrepancy/i18n/hr.po
@@ -34,6 +34,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/it.po b/stock_inventory_discrepancy/i18n/it.po
index 51a2a084fc8c..4a91ffe56ecb 100644
--- a/stock_inventory_discrepancy/i18n/it.po
+++ b/stock_inventory_discrepancy/i18n/it.po
@@ -34,6 +34,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/nl.po b/stock_inventory_discrepancy/i18n/nl.po
index 7c66e25b21f2..289ed07e7e8f 100644
--- a/stock_inventory_discrepancy/i18n/nl.po
+++ b/stock_inventory_discrepancy/i18n/nl.po
@@ -33,6 +33,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/nl_NL.po b/stock_inventory_discrepancy/i18n/nl_NL.po
index a97cbf1ec1f9..de0aea4475bf 100644
--- a/stock_inventory_discrepancy/i18n/nl_NL.po
+++ b/stock_inventory_discrepancy/i18n/nl_NL.po
@@ -34,6 +34,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/pt_BR.po b/stock_inventory_discrepancy/i18n/pt_BR.po
index 343ca9843ba6..1d9241a44d7f 100644
--- a/stock_inventory_discrepancy/i18n/pt_BR.po
+++ b/stock_inventory_discrepancy/i18n/pt_BR.po
@@ -35,6 +35,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/sl.po b/stock_inventory_discrepancy/i18n/sl.po
index 374dd3f1c715..5a1f1e046813 100644
--- a/stock_inventory_discrepancy/i18n/sl.po
+++ b/stock_inventory_discrepancy/i18n/sl.po
@@ -34,6 +34,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
index bd17bbe616ea..461a9ca8c323 100644
--- a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
+++ b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
@@ -28,6 +28,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/tr_TR.po b/stock_inventory_discrepancy/i18n/tr_TR.po
index 233fc226e87b..891625053972 100644
--- a/stock_inventory_discrepancy/i18n/tr_TR.po
+++ b/stock_inventory_discrepancy/i18n/tr_TR.po
@@ -34,6 +34,11 @@ msgstr ""
msgid "Force Validation"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/i18n/zh_CN.po b/stock_inventory_discrepancy/i18n/zh_CN.po
index f78d3ce568a5..0fdf0113e95a 100644
--- a/stock_inventory_discrepancy/i18n/zh_CN.po
+++ b/stock_inventory_discrepancy/i18n/zh_CN.po
@@ -31,6 +31,11 @@ msgstr "差异百分比(%)"
msgid "Force Validation"
msgstr "强制验证"
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
diff --git a/stock_inventory_discrepancy/models/stock_inventory.py b/stock_inventory_discrepancy/models/stock_inventory.py
index fe44f56f70b7..6ae5bec8630b 100644
--- a/stock_inventory_discrepancy/models/stock_inventory.py
+++ b/stock_inventory_discrepancy/models/stock_inventory.py
@@ -1,5 +1,4 @@
-# Copyright 2017-2020 ForgeFlow S.L.
-# (http://www.forgeflow.com)
+# Copyright 2017-21 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import _, api, fields, models
@@ -33,7 +32,7 @@ class StockInventory(models.Model):
def _compute_over_discrepancy_line_count(self):
for inventory in self:
lines = inventory.line_ids.filtered(
- lambda line: line.discrepancy_percent > line.discrepancy_threshold
+ lambda line: line._has_over_discrepancy()
)
inventory.over_discrepancy_line_count = len(lines)
@@ -57,9 +56,7 @@ def _check_group_inventory_validation_always(self):
def _action_done(self):
for inventory in self:
- if inventory.over_discrepancy_line_count and inventory.line_ids.filtered(
- lambda t: t.discrepancy_threshold > 0.0
- ):
+ if inventory.over_discrepancy_line_count > 0.0:
if self.user_has_groups(
"stock_inventory_discrepancy.group_stock_inventory_validation"
) and not self.user_has_groups(
diff --git a/stock_inventory_discrepancy/models/stock_inventory_line.py b/stock_inventory_discrepancy/models/stock_inventory_line.py
index a1a0fceda672..546931bef8b0 100644
--- a/stock_inventory_discrepancy/models/stock_inventory_line.py
+++ b/stock_inventory_discrepancy/models/stock_inventory_line.py
@@ -1,5 +1,4 @@
-# Copyright 2017-2020 ForgeFlow S.L.
-# (http://www.forgeflow.com)
+# Copyright 2017-21 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
@@ -29,6 +28,7 @@ class StockInventoryLine(models.Model):
help="Maximum Discrepancy Rate Threshold",
compute="_compute_discrepancy_threshold",
)
+ has_over_discrepancy = fields.Boolean(compute="_compute_has_over_discrepancy",)
@api.depends("theoretical_qty", "product_qty")
def _compute_discrepancy(self):
@@ -52,3 +52,10 @@ def _compute_discrepancy_threshold(self):
line.discrepancy_threshold = whs.discrepancy_threshold
else:
line.discrepancy_threshold = False
+
+ def _compute_has_over_discrepancy(self):
+ for rec in self:
+ rec.has_over_discrepancy = rec._has_over_discrepancy()
+
+ def _has_over_discrepancy(self):
+ return self.discrepancy_percent > self.discrepancy_threshold > 0
diff --git a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
index 07b894086817..3c97c309c4a5 100644
--- a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
+++ b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
@@ -173,6 +173,7 @@ def test_discrepancy_validation(self):
)
inventory.with_user(self.user).action_start()
inventory.with_user(self.user).action_validate()
+ self.assertTrue(inventory.line_ids.has_over_discrepancy)
self.assertEqual(
inventory.over_discrepancy_line_count,
1,
diff --git a/stock_inventory_discrepancy/views/stock_inventory_view.xml b/stock_inventory_discrepancy/views/stock_inventory_view.xml
index 26927dd88c3d..69fb87db48e4 100644
--- a/stock_inventory_discrepancy/views/stock_inventory_view.xml
+++ b/stock_inventory_discrepancy/views/stock_inventory_view.xml
@@ -59,11 +59,12 @@
+ theoretical_qty < 0 or discrepancy_percent > discrepancy_threshold or "product_qty != theoretical_qty"
+ >theoretical_qty < 0 or has_over_discrepancy
From 0e113944a3e520f64f9df234cbaa3a6525adb713 Mon Sep 17 00:00:00 2001
From: Mateu Griful
Date: Thu, 9 Sep 2021 15:34:03 +0200
Subject: [PATCH 10/23] [14.0][MIG] stock_inventory_discrepancy: black, isort,
prettier
---
.../models/stock_inventory_line.py | 4 +++-
.../static/src/js/inventory_validate_button_controller.js | 8 ++++----
.../tests/test_inventory_discrepancy.py | 3 +--
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/stock_inventory_discrepancy/models/stock_inventory_line.py b/stock_inventory_discrepancy/models/stock_inventory_line.py
index 546931bef8b0..a096b52212cf 100644
--- a/stock_inventory_discrepancy/models/stock_inventory_line.py
+++ b/stock_inventory_discrepancy/models/stock_inventory_line.py
@@ -28,7 +28,9 @@ class StockInventoryLine(models.Model):
help="Maximum Discrepancy Rate Threshold",
compute="_compute_discrepancy_threshold",
)
- has_over_discrepancy = fields.Boolean(compute="_compute_has_over_discrepancy",)
+ has_over_discrepancy = fields.Boolean(
+ compute="_compute_has_over_discrepancy",
+ )
@api.depends("theoretical_qty", "product_qty")
def _compute_discrepancy(self):
diff --git a/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js b/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js
index 57b0e6be4f25..c12b236fe330 100644
--- a/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js
+++ b/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js
@@ -1,4 +1,4 @@
-odoo.define("stock_inventory_discrepancy.InventoryValidationController", function(
+odoo.define("stock_inventory_discrepancy.InventoryValidationController", function (
require
) {
"use strict";
@@ -13,7 +13,7 @@ odoo.define("stock_inventory_discrepancy.InventoryValidationController", functio
* @override
* @see displayNotification
*/
- do_notify: function(title, message, sticky, className) {
+ do_notify: function (title, message, sticky, className) {
var self = this;
if (this.modelName === "stock.inventory.line") {
this._rpc({
@@ -21,13 +21,13 @@ odoo.define("stock_inventory_discrepancy.InventoryValidationController", functio
method: "read",
args: [this.inventory_id, ["state"]],
})
- .then(function(res) {
+ .then(function (res) {
if (res[0].state === "pending") {
title = _t("Pending to Approve");
message = _t("The inventory needs to be approved");
}
})
- .finally(function() {
+ .finally(function () {
return self.displayNotification({
type: "warning",
title: title,
diff --git a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
index 3c97c309c4a5..22d54cd6126b 100644
--- a/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
+++ b/stock_inventory_discrepancy/tests/test_inventory_discrepancy.py
@@ -102,8 +102,7 @@ def setUp(self, *args, **kwargs):
starting_inv.action_force_done()
def test_compute_discrepancy(self):
- """Tests if the discrepancy is correctly computed.
- """
+ """Tests if the discrepancy is correctly computed."""
inventory = self.obj_inventory.create(
{
"name": "Test Discrepancy Computation",
From d18e99716a541c1ed1f8fd772035aa48faef0792 Mon Sep 17 00:00:00 2001
From: Mateu Griful
Date: Thu, 9 Sep 2021 16:17:08 +0200
Subject: [PATCH 11/23] [14.0][MIG] stock_inventory_discrepancy: Migration to
14.0
---
stock_inventory_discrepancy/README.rst | 10 +++----
stock_inventory_discrepancy/__manifest__.py | 2 +-
.../i18n/stock_inventory_discrepancy.pot | 26 ++++++++++++++++++-
.../static/description/index.html | 6 ++---
.../views/stock_inventory_view.xml | 2 +-
5 files changed, 35 insertions(+), 11 deletions(-)
diff --git a/stock_inventory_discrepancy/README.rst b/stock_inventory_discrepancy/README.rst
index c2cbf8bac862..23556636f216 100644
--- a/stock_inventory_discrepancy/README.rst
+++ b/stock_inventory_discrepancy/README.rst
@@ -14,13 +14,13 @@ Stock Inventory Discrepancy
: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_inventory_discrepancy
+ :target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_inventory_discrepancy
: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_inventory_discrepancy
+ :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_inventory_discrepancy
: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|
@@ -66,7 +66,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.
@@ -99,6 +99,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_inventory_discrepancy/__manifest__.py b/stock_inventory_discrepancy/__manifest__.py
index f3d42f03f5f5..97ea0741673e 100644
--- a/stock_inventory_discrepancy/__manifest__.py
+++ b/stock_inventory_discrepancy/__manifest__.py
@@ -5,7 +5,7 @@
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when the "
"discrepancy is over a user defined threshold.",
- "version": "13.0.1.1.0",
+ "version": "14.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse",
diff --git a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
index 461a9ca8c323..49f78794b41c 100644
--- a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
+++ b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 13.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -23,6 +23,14 @@ msgstr ""
msgid "Discrepancy percent (%)"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__display_name
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__display_name
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__display_name
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__display_name
+msgid "Display Name"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
msgid "Force Validation"
@@ -33,6 +41,14 @@ msgstr ""
msgid "Has Over Discrepancy"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__id
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__id
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__id
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__id
+msgid "ID"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
msgid "Inventory"
@@ -48,6 +64,14 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory____last_update
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line____last_update
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location____last_update
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse____last_update
+msgid "Last Modified on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
diff --git a/stock_inventory_discrepancy/static/description/index.html b/stock_inventory_discrepancy/static/description/index.html
index 8046f1f274f4..88a7f5a7abef 100644
--- a/stock_inventory_discrepancy/static/description/index.html
+++ b/stock_inventory_discrepancy/static/description/index.html
@@ -367,7 +367,7 @@
Stock Inventory Discrepancy
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
Adds the capability to show the discrepancy of every line in an inventory and
to block the inventory validation (setting it as ‘Pending to Approve’) when the
discrepancy is greater than an user defined threshold.
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.
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.
diff --git a/stock_inventory_discrepancy/views/stock_inventory_view.xml b/stock_inventory_discrepancy/views/stock_inventory_view.xml
index 69fb87db48e4..59f7e5198eaa 100644
--- a/stock_inventory_discrepancy/views/stock_inventory_view.xml
+++ b/stock_inventory_discrepancy/views/stock_inventory_view.xml
@@ -53,7 +53,7 @@
stock.inventory.line.tree2stock.inventory.line
-
+
From cc7d5ed0c4aef080f2dd786a47fe878c2f071e79 Mon Sep 17 00:00:00 2001
From: Don Kendall
Date: Thu, 18 Nov 2021 09:31:15 -0500
Subject: [PATCH 12/23] [imp] discrpency by product avg
---
stock_inventory_discrepancy/__manifest__.py | 2 +-
stock_inventory_discrepancy/models/stock_inventory_line.py | 4 ++++
stock_inventory_discrepancy/views/stock_inventory_view.xml | 6 +++---
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/stock_inventory_discrepancy/__manifest__.py b/stock_inventory_discrepancy/__manifest__.py
index 97ea0741673e..881252eb4647 100644
--- a/stock_inventory_discrepancy/__manifest__.py
+++ b/stock_inventory_discrepancy/__manifest__.py
@@ -5,7 +5,7 @@
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when the "
"discrepancy is over a user defined threshold.",
- "version": "14.0.1.0.0",
+ "version": "14.0.1.1.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse",
diff --git a/stock_inventory_discrepancy/models/stock_inventory_line.py b/stock_inventory_discrepancy/models/stock_inventory_line.py
index a096b52212cf..2af72477deac 100644
--- a/stock_inventory_discrepancy/models/stock_inventory_line.py
+++ b/stock_inventory_discrepancy/models/stock_inventory_line.py
@@ -14,6 +14,7 @@ class StockInventoryLine(models.Model):
"theoretical quantity on hand.",
digits="Product Unit of Measure",
default=0,
+ compute_sudo=True,
)
discrepancy_percent = fields.Float(
string="Discrepancy percent (%)",
@@ -21,6 +22,9 @@ class StockInventoryLine(models.Model):
digits=(3, 2),
help="The discrepancy expressed in percent with theoretical quantity "
"as basis",
+ group_operator="avg",
+ store=True,
+ compute_sudo=True,
)
discrepancy_threshold = fields.Float(
string="Threshold (%)",
diff --git a/stock_inventory_discrepancy/views/stock_inventory_view.xml b/stock_inventory_discrepancy/views/stock_inventory_view.xml
index 59f7e5198eaa..2024e5763190 100644
--- a/stock_inventory_discrepancy/views/stock_inventory_view.xml
+++ b/stock_inventory_discrepancy/views/stock_inventory_view.xml
@@ -56,9 +56,9 @@
-
-
-
+
+
+
From b5ab9f92d7d3f58131a3684bdc08a52ac8ba3c61 Mon Sep 17 00:00:00 2001
From: Daniel Reis
Date: Fri, 18 Nov 2022 08:29:18 +0000
Subject: [PATCH 13/23] [REF] stock_inventory_discrepancy: fix eslint
no-param-reassign
---
.../static/src/js/inventory_validate_button_controller.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js b/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js
index c12b236fe330..c30063432269 100644
--- a/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js
+++ b/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js
@@ -13,8 +13,10 @@ odoo.define("stock_inventory_discrepancy.InventoryValidationController", functio
* @override
* @see displayNotification
*/
- do_notify: function (title, message, sticky, className) {
+ do_notify: function (ptitle, pmessage, sticky, className) {
var self = this;
+ var title = ptitle;
+ var message = pmessage;
if (this.modelName === "stock.inventory.line") {
this._rpc({
model: "stock.inventory",
From a36c481942cb1e632a70d39a10ed018fbbf9bdd4 Mon Sep 17 00:00:00 2001
From: Ernesto Tejeda
Date: Wed, 5 Apr 2023 13:51:34 +0200
Subject: [PATCH 14/23] [MIG] stock_inventory_discrepancy: Migration to 15.0
[UPD] Update stock_inventory_discrepancy.pot
[UPD] README.rst
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: stock-logistics-warehouse-15.0/stock-logistics-warehouse-15.0-stock_inventory_discrepancy
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_inventory_discrepancy/
---
stock_inventory_discrepancy/README.rst | 13 +-
stock_inventory_discrepancy/__init__.py | 1 +
stock_inventory_discrepancy/__manifest__.py | 7 +-
stock_inventory_discrepancy/hooks.py | 99 +++---
stock_inventory_discrepancy/i18n/cs_CZ.po | 158 +++++-----
stock_inventory_discrepancy/i18n/de.po | 163 +++++-----
stock_inventory_discrepancy/i18n/es.po | 163 +++++-----
stock_inventory_discrepancy/i18n/es_ES.po | 158 +++++-----
stock_inventory_discrepancy/i18n/fr.po | 158 +++++-----
stock_inventory_discrepancy/i18n/fr_FR.po | 153 ++++-----
stock_inventory_discrepancy/i18n/hr.po | 153 ++++-----
stock_inventory_discrepancy/i18n/it.po | 163 +++++-----
stock_inventory_discrepancy/i18n/nl.po | 153 ++++-----
stock_inventory_discrepancy/i18n/nl_NL.po | 158 +++++-----
stock_inventory_discrepancy/i18n/pt_BR.po | 158 +++++-----
stock_inventory_discrepancy/i18n/sl.po | 163 +++++-----
.../i18n/stock_inventory_discrepancy.pot | 157 +++++-----
stock_inventory_discrepancy/i18n/tr_TR.po | 153 ++++-----
stock_inventory_discrepancy/i18n/zh_CN.po | 231 +++++++++-----
.../migrations/15.01.0.0/noupdate_changes.xml | 13 +
.../migrations/15.01.0.0/post-migration.py | 13 +
.../models/__init__.py | 3 +-
.../models/stock_inventory.py | 73 -----
.../models/stock_inventory_line.py | 67 ----
.../models/stock_quant.py | 68 ++++
.../readme/CONTRIBUTORS.rst | 3 +
.../security/ir.model.access.csv | 3 +
.../stock_inventory_discrepancy_security.xml | 12 +-
.../static/description/index.html | 10 +-
.../inventory_validate_button_controller.js | 44 ---
.../tests/test_inventory_discrepancy.py | 293 +++++++-----------
.../views/assets_backend.xml | 15 -
.../views/stock_inventory_view.xml | 71 -----
.../views/stock_quant_view.xml | 39 +++
.../wizards/__init__.py | 1 +
.../wizards/confirm_discrepancy_wiz.py | 41 +++
.../wizards/confirm_discrepancy_wiz.xml | 59 ++++
37 files changed, 1753 insertions(+), 1637 deletions(-)
create mode 100644 stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml
create mode 100644 stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py
delete mode 100644 stock_inventory_discrepancy/models/stock_inventory.py
delete mode 100644 stock_inventory_discrepancy/models/stock_inventory_line.py
create mode 100644 stock_inventory_discrepancy/models/stock_quant.py
create mode 100644 stock_inventory_discrepancy/security/ir.model.access.csv
delete mode 100644 stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js
delete mode 100644 stock_inventory_discrepancy/views/assets_backend.xml
delete mode 100644 stock_inventory_discrepancy/views/stock_inventory_view.xml
create mode 100644 stock_inventory_discrepancy/views/stock_quant_view.xml
create mode 100644 stock_inventory_discrepancy/wizards/__init__.py
create mode 100644 stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py
create mode 100644 stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.xml
diff --git a/stock_inventory_discrepancy/README.rst b/stock_inventory_discrepancy/README.rst
index 23556636f216..5c7a8775165d 100644
--- a/stock_inventory_discrepancy/README.rst
+++ b/stock_inventory_discrepancy/README.rst
@@ -14,13 +14,13 @@ Stock Inventory Discrepancy
: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_inventory_discrepancy
+ :target: https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_inventory_discrepancy
: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_inventory_discrepancy
+ :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_inventory_discrepancy
: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
+ :target: https://runbot.odoo-community.org/runbot/153/15.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -66,7 +66,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.
@@ -85,6 +85,9 @@ Contributors
* Andreas Dian Sukarno Putro
* Bhavesh Odedra
* Héctor Villarreal
+* `Tecnativa `_:
+
+ * Ernesto Tejeda
Maintainers
~~~~~~~~~~~
@@ -99,6 +102,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_inventory_discrepancy/__init__.py b/stock_inventory_discrepancy/__init__.py
index e3bed06384b3..0ceaa3daff2a 100644
--- a/stock_inventory_discrepancy/__init__.py
+++ b/stock_inventory_discrepancy/__init__.py
@@ -1,4 +1,5 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import models
+from . import wizards
from .hooks import post_load_hook
diff --git a/stock_inventory_discrepancy/__manifest__.py b/stock_inventory_discrepancy/__manifest__.py
index 881252eb4647..19a8ecbf5cdc 100644
--- a/stock_inventory_discrepancy/__manifest__.py
+++ b/stock_inventory_discrepancy/__manifest__.py
@@ -5,17 +5,18 @@
"summary": "Adds the capability to show the discrepancy of every line in "
"an inventory and to block the inventory validation when the "
"discrepancy is over a user defined threshold.",
- "version": "14.0.1.1.0",
+ "version": "15.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse",
"depends": ["stock"],
"data": [
"security/stock_inventory_discrepancy_security.xml",
- "views/assets_backend.xml",
- "views/stock_inventory_view.xml",
+ "security/ir.model.access.csv",
+ "views/stock_quant_view.xml",
"views/stock_warehouse_view.xml",
"views/stock_location_view.xml",
+ "wizards/confirm_discrepancy_wiz.xml",
],
"license": "AGPL-3",
"post_load": "post_load_hook",
diff --git a/stock_inventory_discrepancy/hooks.py b/stock_inventory_discrepancy/hooks.py
index da9c343b51d7..84a1de372699 100644
--- a/stock_inventory_discrepancy/hooks.py
+++ b/stock_inventory_discrepancy/hooks.py
@@ -2,19 +2,17 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
-from odoo import _
+from odoo import _, fields
from odoo.exceptions import UserError
from odoo.tools.float_utils import float_compare
-from odoo.addons.stock.models.stock_inventory import Inventory
+from odoo.addons.stock.models.stock_quant import StockQuant
def post_load_hook():
- def action_validate_discrepancy(self):
+ def _apply_inventory_discrepancy(self):
"""Override method to avoid inline group validation"""
- if not self.exists():
- return
- self.ensure_one()
+ move_vals = []
# START HOOK: - Allow specific group to validate inventory
# - Allow validate on pending status
if (
@@ -29,51 +27,50 @@ def action_validate_discrepancy(self):
raise UserError(
_("Only a stock manager can validate an inventory adjustment.")
)
- if self.state not in ["confirm", "pending"]:
- raise UserError(
- _(
- "You can't validate the inventory '%s', maybe this inventory "
- + "has been already validated or isn't ready."
- )
- % (self.name)
- )
+ # Allow to write last_inventory_date on stock.location
+ self = self.sudo()
# END HOOK
- inventory_lines = self.line_ids.filtered(
- lambda l: l.product_id.tracking in ["lot", "serial"]
- and not l.prod_lot_id
- and l.theoretical_qty != l.product_qty
- )
- lines = self.line_ids.filtered(
- lambda l: float_compare(
- l.product_qty, 1, precision_rounding=l.product_uom_id.rounding
- )
- > 0
- and l.product_id.tracking == "serial"
- and l.prod_lot_id
+ for quant in self:
+ # Create and validate a move so that the quant matches its `inventory_quantity`.
+ if (
+ float_compare(
+ quant.inventory_diff_quantity,
+ 0,
+ precision_rounding=quant.product_uom_id.rounding,
+ )
+ > 0
+ ):
+ move_vals.append(
+ quant._get_inventory_move_values(
+ quant.inventory_diff_quantity,
+ quant.product_id.with_company(
+ quant.company_id
+ ).property_stock_inventory,
+ quant.location_id,
+ )
+ )
+ else:
+ move_vals.append(
+ quant._get_inventory_move_values(
+ -quant.inventory_diff_quantity,
+ quant.location_id,
+ quant.product_id.with_company(
+ quant.company_id
+ ).property_stock_inventory,
+ out=True,
+ )
+ )
+ moves = (
+ self.env["stock.move"].with_context(inventory_mode=False).create(move_vals)
)
- if inventory_lines and not lines:
- wiz_lines = [
- (0, 0, {"product_id": product.id, "tracking": product.tracking})
- for product in inventory_lines.mapped("product_id")
- ]
- wiz = self.env["stock.track.confirmation"].create(
- {"inventory_id": self.id, "tracking_line_ids": wiz_lines}
- )
- return {
- "name": _("Tracked Products in Inventory Adjustment"),
- "type": "ir.actions.act_window",
- "view_mode": "form",
- "views": [(False, "form")],
- "res_model": "stock.track.confirmation",
- "target": "new",
- "res_id": wiz.id,
- }
- self._action_done()
- self.line_ids._check_company()
- self._check_company()
- return True
-
- if not hasattr(Inventory, "action_validate_original"):
- Inventory.action_validate_original = Inventory.action_validate
+ moves._action_done()
+ self.location_id.write({"last_inventory_date": fields.Date.today()})
+ date_by_location = {
+ loc: loc._get_next_inventory_date() for loc in self.mapped("location_id")
+ }
+ for quant in self:
+ quant.inventory_date = date_by_location[quant.location_id]
+ self.write({"inventory_quantity": 0, "user_id": False})
+ self.write({"inventory_diff_quantity": 0})
- Inventory._patch_method("action_validate", action_validate_discrepancy)
+ StockQuant._patch_method("_apply_inventory", _apply_inventory_discrepancy)
diff --git a/stock_inventory_discrepancy/i18n/cs_CZ.po b/stock_inventory_discrepancy/i18n/cs_CZ.po
index f1eec228941d..df8b2f20d338 100644
--- a/stock_inventory_discrepancy/i18n/cs_CZ.po
+++ b/stock_inventory_discrepancy/i18n/cs_CZ.po
@@ -20,33 +20,63 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Inventář"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -54,10 +84,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr "Umístění inventáře"
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -76,25 +121,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -106,67 +138,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -175,9 +175,21 @@ msgid "Warehouse"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Inventář"
diff --git a/stock_inventory_discrepancy/i18n/de.po b/stock_inventory_discrepancy/i18n/de.po
index a6dfb8f77b7f..6f94065022e2 100644
--- a/stock_inventory_discrepancy/i18n/de.po
+++ b/stock_inventory_discrepancy/i18n/de.po
@@ -19,44 +19,89 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Bestand"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
-msgstr "Inventurposition"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -75,25 +120,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -105,67 +137,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -174,9 +174,24 @@ msgid "Warehouse"
msgstr "Lager"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Bestand"
+
+#~ msgid "Inventory Line"
+#~ msgstr "Inventurposition"
diff --git a/stock_inventory_discrepancy/i18n/es.po b/stock_inventory_discrepancy/i18n/es.po
index 3f3e2d562f58..8b5a54d3f20a 100644
--- a/stock_inventory_discrepancy/i18n/es.po
+++ b/stock_inventory_discrepancy/i18n/es.po
@@ -19,44 +19,89 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Inventario"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
-msgstr "Línea inventario"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -75,25 +120,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -105,67 +137,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -174,9 +174,24 @@ msgid "Warehouse"
msgstr "Almacén"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Inventario"
+
+#~ msgid "Inventory Line"
+#~ msgstr "Línea inventario"
diff --git a/stock_inventory_discrepancy/i18n/es_ES.po b/stock_inventory_discrepancy/i18n/es_ES.po
index 8da3b5de6c79..7c771f1d020c 100644
--- a/stock_inventory_discrepancy/i18n/es_ES.po
+++ b/stock_inventory_discrepancy/i18n/es_ES.po
@@ -21,33 +21,63 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Inventario"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -55,10 +85,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -77,25 +122,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -107,67 +139,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -176,9 +176,21 @@ msgid "Warehouse"
msgstr "Almacén"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Inventario"
diff --git a/stock_inventory_discrepancy/i18n/fr.po b/stock_inventory_discrepancy/i18n/fr.po
index 15f22b614cfc..82fac423eb9f 100644
--- a/stock_inventory_discrepancy/i18n/fr.po
+++ b/stock_inventory_discrepancy/i18n/fr.po
@@ -19,33 +19,63 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Inventaire"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -53,10 +83,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -75,25 +120,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -105,67 +137,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -174,9 +174,21 @@ msgid "Warehouse"
msgstr "Entrepôt"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Inventaire"
diff --git a/stock_inventory_discrepancy/i18n/fr_FR.po b/stock_inventory_discrepancy/i18n/fr_FR.po
index 68a329ccafb2..bf36660e62a3 100644
--- a/stock_inventory_discrepancy/i18n/fr_FR.po
+++ b/stock_inventory_discrepancy/i18n/fr_FR.po
@@ -20,33 +20,63 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -54,10 +84,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -76,25 +121,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -106,67 +138,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -175,9 +175,18 @@ msgid "Warehouse"
msgstr "Entrepôt "
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
diff --git a/stock_inventory_discrepancy/i18n/hr.po b/stock_inventory_discrepancy/i18n/hr.po
index 563f84fa7e8f..a95fe0cf8445 100644
--- a/stock_inventory_discrepancy/i18n/hr.po
+++ b/stock_inventory_discrepancy/i18n/hr.po
@@ -20,33 +20,63 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -54,10 +84,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -76,25 +121,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -106,67 +138,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -175,9 +175,18 @@ msgid "Warehouse"
msgstr "Skladište"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
diff --git a/stock_inventory_discrepancy/i18n/it.po b/stock_inventory_discrepancy/i18n/it.po
index 4a91ffe56ecb..379c22a8eafa 100644
--- a/stock_inventory_discrepancy/i18n/it.po
+++ b/stock_inventory_discrepancy/i18n/it.po
@@ -20,44 +20,89 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Inventario"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
-msgstr "Riga d'Inventario"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -76,25 +121,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -106,67 +138,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -175,9 +175,24 @@ msgid "Warehouse"
msgstr "Magazzino"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Inventario"
+
+#~ msgid "Inventory Line"
+#~ msgstr "Riga d'Inventario"
diff --git a/stock_inventory_discrepancy/i18n/nl.po b/stock_inventory_discrepancy/i18n/nl.po
index 289ed07e7e8f..4b7fdb915eb5 100644
--- a/stock_inventory_discrepancy/i18n/nl.po
+++ b/stock_inventory_discrepancy/i18n/nl.po
@@ -19,33 +19,63 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -53,10 +83,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -75,25 +120,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -105,67 +137,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -174,9 +174,18 @@ msgid "Warehouse"
msgstr "Magazijn"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
diff --git a/stock_inventory_discrepancy/i18n/nl_NL.po b/stock_inventory_discrepancy/i18n/nl_NL.po
index de0aea4475bf..4f2b01f5c1ef 100644
--- a/stock_inventory_discrepancy/i18n/nl_NL.po
+++ b/stock_inventory_discrepancy/i18n/nl_NL.po
@@ -20,44 +20,89 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
-msgstr "Voorraadregel"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -76,25 +121,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -106,67 +138,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -175,9 +175,21 @@ msgid "Warehouse"
msgstr "Magazijn"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory Line"
+#~ msgstr "Voorraadregel"
diff --git a/stock_inventory_discrepancy/i18n/pt_BR.po b/stock_inventory_discrepancy/i18n/pt_BR.po
index 1d9241a44d7f..d131f1d697f3 100644
--- a/stock_inventory_discrepancy/i18n/pt_BR.po
+++ b/stock_inventory_discrepancy/i18n/pt_BR.po
@@ -21,33 +21,63 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Inventário"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -55,10 +85,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -77,25 +122,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -107,67 +139,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -176,9 +176,21 @@ msgid "Warehouse"
msgstr "Armazém"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Inventário"
diff --git a/stock_inventory_discrepancy/i18n/sl.po b/stock_inventory_discrepancy/i18n/sl.po
index 5a1f1e046813..59ecafa9ac6f 100644
--- a/stock_inventory_discrepancy/i18n/sl.po
+++ b/stock_inventory_discrepancy/i18n/sl.po
@@ -20,44 +20,89 @@ msgstr ""
"%100==4 ? 2 : 3);\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "Inventar"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
-msgstr "Postavka inventarja"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -76,25 +121,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -106,67 +138,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -175,9 +175,24 @@ msgid "Warehouse"
msgstr "Skladišče"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+
+#~ msgid "Inventory"
+#~ msgstr "Inventar"
+
+#~ msgid "Inventory Line"
+#~ msgstr "Postavka inventarja"
diff --git a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
index 49f78794b41c..e87081b31953 100644
--- a/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
+++ b/stock_inventory_discrepancy/i18n/stock_inventory_discrepancy.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 14.0\n"
+"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -14,49 +14,63 @@ msgstr ""
"Plural-Forms: \n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__display_name
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__display_name
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__display_name
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__display_name
-msgid "Display Name"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__id
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__id
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__id
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__id
-msgid "ID"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -65,17 +79,24 @@ msgid "Inventory Locations"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory____last_update
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line____last_update
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location____last_update
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse____last_update
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
msgid "Last Modified on"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -94,25 +115,12 @@ msgid ""
" ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -124,67 +132,36 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid ""
"The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -193,9 +170,17 @@ msgid "Warehouse"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already"
-" validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the"
+" discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
diff --git a/stock_inventory_discrepancy/i18n/tr_TR.po b/stock_inventory_discrepancy/i18n/tr_TR.po
index 891625053972..6a3555bc6666 100644
--- a/stock_inventory_discrepancy/i18n/tr_TR.po
+++ b/stock_inventory_discrepancy/i18n/tr_TR.po
@@ -20,33 +20,63 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
-msgid "Discrepancy percent (%)"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
-msgid "Has Over Discrepancy"
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
+msgid "Discrepancy percent (%)"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
+msgid "Has Over Discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -54,10 +84,25 @@ msgstr ""
msgid "Inventory Locations"
msgstr ""
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr ""
@@ -76,25 +121,12 @@ msgid ""
"ones."
msgstr ""
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr ""
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr ""
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
msgid "Propagate Maximum Discrepancy Rate Threshold to child locations"
@@ -106,67 +138,35 @@ msgid "Propagate discrepancy threshold"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr ""
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr ""
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, python-format
-msgid "Tracked Products in Inventory Adjustment"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr ""
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
+msgid "Validate Inventory Adjustments excceded threshold"
msgstr ""
#. module: stock_inventory_discrepancy
@@ -175,9 +175,18 @@ msgid "Warehouse"
msgstr "Depo"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
diff --git a/stock_inventory_discrepancy/i18n/zh_CN.po b/stock_inventory_discrepancy/i18n/zh_CN.po
index 0fdf0113e95a..cb4622c51358 100644
--- a/stock_inventory_discrepancy/i18n/zh_CN.po
+++ b/stock_inventory_discrepancy/i18n/zh_CN.po
@@ -17,44 +17,89 @@ msgstr ""
"X-Generator: Weblate 3.8\n"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid "Discrepancy"
-msgstr "差异"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Apply"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Cancel"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model,name:stock_inventory_discrepancy.model_confirm_discrepancy_wiz
+msgid "Confim discrepancy wizard"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.actions.act_window,name:stock_inventory_discrepancy.confirm_discrepancy_action
+msgid "Confirm discrepancy"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_uid
+msgid "Created by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__create_date
+msgid "Created on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid "Dates does not match"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__discrepancy_quant_ids
+msgid "Discrepancy Quant"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "Discrepancy percent (%)"
msgstr "差异百分比(%)"
#. module: stock_inventory_discrepancy
-#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.view_inventory_form
-msgid "Force Validation"
-msgstr "强制验证"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__display_name
+msgid "Display Name"
+msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__has_over_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__has_over_discrepancy
msgid "Has Over Discrepancy"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory
-msgid "Inventory"
-msgstr "库存"
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model,name:stock_inventory_discrepancy.model_stock_inventory_line
-msgid "Inventory Line"
-msgstr "库存行"
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__id
+msgid "ID"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_location
msgid "Inventory Locations"
msgstr "库存位置"
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_uid
+msgid "Last Updated by"
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_confirm_discrepancy_wiz__write_date
+msgid "Last Updated on"
+msgstr ""
+
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_location__discrepancy_threshold
#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_warehouse__discrepancy_threshold
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Maximum Discrepancy Rate Threshold"
msgstr "最大差异率阈值"
@@ -77,25 +122,12 @@ msgstr ""
"进行库存调整时,任何产品所允许的最大差异率。在“位置”中定义的阈值优先于“仓"
"库”的阈值。"
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__over_discrepancy_line_count
-msgid "Number of Discrepancies Over Threshold"
-msgstr "超过阈值的差异数量"
-
#. module: stock_inventory_discrepancy
#: code:addons/stock_inventory_discrepancy/hooks.py:0
#, fuzzy, python-format
msgid "Only a stock manager can validate an inventory adjustment."
msgstr "验证所有库存调整"
-#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#: model:ir.model.fields.selection,name:stock_inventory_discrepancy.selection__stock_inventory__state__pending
-#, python-format
-msgid "Pending to Approve"
-msgstr "待批准"
-
#. module: stock_inventory_discrepancy
#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_location__propagate_discrepancy_threshold
#, fuzzy
@@ -109,75 +141,36 @@ msgid "Propagate discrepancy threshold"
msgstr "最大差异率阈值"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory__state
-msgid ""
-"States of the Inventory Adjustment:\n"
-"- Draft: Inventory not started.\n"
-"- In Progress: Inventory in execution.\n"
-"- Pending to Approve: Inventory have some discrepancies greater than the "
-"predefined threshold and it's waiting for the Control Manager approval.\n"
-"- Validated: Inventory Approved."
-msgstr ""
-"库存调整的状态:\n"
-"- 草稿:库存未开始。\n"
-"- 进行中:执行中的库存。\n"
-"- 待批准:库存有一些差异大于预定义的阈值,并且正在等待控制管理中心批准。\n"
-"- 已验证:库存已批准。"
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory__state
-msgid "Status"
-msgstr "状态"
-
-#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/models/stock_inventory.py:0
-#, python-format
-msgid ""
-"The Qty Update is over the Discrepancy Threshold.\n"
-" Please, contact a user with rights to perform this action."
+#: model:ir.model,name:stock_inventory_discrepancy.model_stock_quant
+msgid "Quants"
msgstr ""
-"数量更新超过差异阈值。\n"
-"请与有权执行此操作的用户联系。"
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_qty
-msgid ""
-"The difference between the actual qty counted and the theoretical quantity "
-"on hand."
-msgstr "计算的实际数量与现有理论数量之间的差。"
-
-#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_percent
+#: model:ir.model.fields,help:stock_inventory_discrepancy.field_stock_quant__discrepancy_percent
msgid "The discrepancy expressed in percent with theoretical quantity as basis"
msgstr "差异以理论量为基础的百分比表示"
#. module: stock_inventory_discrepancy
-#. openerp-web
-#: code:addons/stock_inventory_discrepancy/static/src/js/inventory_validate_button_controller.js:0
-#, python-format
-msgid "The inventory needs to be approved"
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"The following products have exceeded the discrepancy threshold.\n"
+" Are you sure you want to proceed?"
msgstr ""
#. module: stock_inventory_discrepancy
-#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_inventory_line__discrepancy_threshold
+#: model:ir.model.fields,field_description:stock_inventory_discrepancy.field_stock_quant__discrepancy_threshold
msgid "Threshold (%)"
msgstr "阈值(%)"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
-#, fuzzy, python-format
-msgid "Tracked Products in Inventory Adjustment"
-msgstr "验证所有库存调整"
+#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
+msgid "Validate Inventory Adjustments"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation_always
-msgid "Validate All inventory Adjustments"
-msgstr "验证所有库存调整"
-
-#. module: stock_inventory_discrepancy
-#: model:res.groups,name:stock_inventory_discrepancy.group_stock_inventory_validation
-msgid "Validate Inventory Adjustments Under Threshold"
-msgstr "验证阈值下的库存调整"
+msgid "Validate Inventory Adjustments excceded threshold"
+msgstr ""
#. module: stock_inventory_discrepancy
#: model:ir.model,name:stock_inventory_discrepancy.model_stock_warehouse
@@ -185,13 +178,81 @@ msgid "Warehouse"
msgstr "仓库"
#. module: stock_inventory_discrepancy
-#: code:addons/stock_inventory_discrepancy/hooks.py:0
+#: code:addons/stock_inventory_discrepancy/wizards/confirm_discrepancy_wiz.py:0
#, python-format
msgid ""
-"You can't validate the inventory '%s', maybe this inventory has been already "
-"validated or isn't ready."
+"You cannot apply inventory adjustments if there are products that exceed the "
+"discrepancy threshold. Only users with rights to apply them can proceed."
+msgstr ""
+
+#. module: stock_inventory_discrepancy
+#: model_terms:ir.ui.view,arch_db:stock_inventory_discrepancy.confirm_discrepancy_wizard
+msgid ""
+"You cannot confirm the inventory adjustment,\n"
+" the following products have exceeded the discrepancy "
+"threshold.\n"
+" Only users with permissions to apply them can proceed."
msgstr ""
+#~ msgid "Discrepancy"
+#~ msgstr "差异"
+
+#~ msgid "Force Validation"
+#~ msgstr "强制验证"
+
+#~ msgid "Inventory"
+#~ msgstr "库存"
+
+#~ msgid "Inventory Line"
+#~ msgstr "库存行"
+
+#~ msgid "Number of Discrepancies Over Threshold"
+#~ msgstr "超过阈值的差异数量"
+
+#, python-format
+#~ msgid "Pending to Approve"
+#~ msgstr "待批准"
+
+#~ msgid ""
+#~ "States of the Inventory Adjustment:\n"
+#~ "- Draft: Inventory not started.\n"
+#~ "- In Progress: Inventory in execution.\n"
+#~ "- Pending to Approve: Inventory have some discrepancies greater than the "
+#~ "predefined threshold and it's waiting for the Control Manager approval.\n"
+#~ "- Validated: Inventory Approved."
+#~ msgstr ""
+#~ "库存调整的状态:\n"
+#~ "- 草稿:库存未开始。\n"
+#~ "- 进行中:执行中的库存。\n"
+#~ "- 待批准:库存有一些差异大于预定义的阈值,并且正在等待控制管理中心批准。\n"
+#~ "- 已验证:库存已批准。"
+
+#~ msgid "Status"
+#~ msgstr "状态"
+
+#, python-format
+#~ msgid ""
+#~ "The Qty Update is over the Discrepancy Threshold.\n"
+#~ " Please, contact a user with rights to perform this action."
+#~ msgstr ""
+#~ "数量更新超过差异阈值。\n"
+#~ "请与有权执行此操作的用户联系。"
+
+#~ msgid ""
+#~ "The difference between the actual qty counted and the theoretical "
+#~ "quantity on hand."
+#~ msgstr "计算的实际数量与现有理论数量之间的差。"
+
+#, fuzzy, python-format
+#~ msgid "Tracked Products in Inventory Adjustment"
+#~ msgstr "验证所有库存调整"
+
+#~ msgid "Validate All inventory Adjustments"
+#~ msgstr "验证所有库存调整"
+
+#~ msgid "Validate Inventory Adjustments Under Threshold"
+#~ msgstr "验证阈值下的库存调整"
+
#~ msgid "Cancelled"
#~ msgstr "已取消"
diff --git a/stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml b/stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml
new file mode 100644
index 000000000000..8356d4ac2898
--- /dev/null
+++ b/stock_inventory_discrepancy/migrations/15.01.0.0/noupdate_changes.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
diff --git a/stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py b/stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py
new file mode 100644
index 000000000000..21264cdfa733
--- /dev/null
+++ b/stock_inventory_discrepancy/migrations/15.01.0.0/post-migration.py
@@ -0,0 +1,13 @@
+# Copyright 2023 Tecnativa - Ernesto Tejeda
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from openupgradelib import openupgrade
+
+
+@openupgrade.migrate()
+def migrate(env, version):
+ openupgrade.load_data(
+ env.cr,
+ "stock_inventory_discrepancy",
+ "migrations/15.0.1.0.0/noupdate_changes.xml",
+ )
diff --git a/stock_inventory_discrepancy/models/__init__.py b/stock_inventory_discrepancy/models/__init__.py
index 6431c5a0539a..cc20d5da4779 100644
--- a/stock_inventory_discrepancy/models/__init__.py
+++ b/stock_inventory_discrepancy/models/__init__.py
@@ -1,6 +1,5 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from . import stock_inventory
-from . import stock_inventory_line
+from . import stock_quant
from . import stock_warehouse
from . import stock_location
diff --git a/stock_inventory_discrepancy/models/stock_inventory.py b/stock_inventory_discrepancy/models/stock_inventory.py
deleted file mode 100644
index 6ae5bec8630b..000000000000
--- a/stock_inventory_discrepancy/models/stock_inventory.py
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 2017-21 ForgeFlow S.L. (https://www.forgeflow.com)
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-
-from odoo import _, api, fields, models
-from odoo.exceptions import UserError
-
-
-class StockInventory(models.Model):
- _inherit = "stock.inventory"
-
- state = fields.Selection(
- selection_add=[("pending", "Pending to Approve"), ("done",)],
- string="Status",
- readonly=True,
- index=True,
- copy=False,
- help="States of the Inventory Adjustment:\n"
- "- Draft: Inventory not started.\n"
- "- In Progress: Inventory in execution.\n"
- "- Pending to Approve: Inventory have some discrepancies "
- "greater than the predefined threshold and it's waiting for the "
- "Control Manager approval.\n"
- "- Validated: Inventory Approved.",
- )
- over_discrepancy_line_count = fields.Integer(
- string="Number of Discrepancies Over Threshold",
- compute="_compute_over_discrepancy_line_count",
- store=True,
- )
-
- @api.depends("line_ids.product_qty", "line_ids.theoretical_qty")
- def _compute_over_discrepancy_line_count(self):
- for inventory in self:
- lines = inventory.line_ids.filtered(
- lambda line: line._has_over_discrepancy()
- )
- inventory.over_discrepancy_line_count = len(lines)
-
- def action_over_discrepancies(self):
- self.write({"state": "pending"})
-
- def _check_group_inventory_validation_always(self):
- grp_inv_val = self.env.ref(
- "stock_inventory_discrepancy.group_stock_inventory_validation_always"
- )
- if grp_inv_val in self.env.user.groups_id:
- return True
- else:
- raise UserError(
- _(
- "The Qty Update is over the Discrepancy Threshold.\n "
- "Please, contact a user with rights to perform "
- "this action."
- )
- )
-
- def _action_done(self):
- for inventory in self:
- if inventory.over_discrepancy_line_count > 0.0:
- if self.user_has_groups(
- "stock_inventory_discrepancy.group_stock_inventory_validation"
- ) and not self.user_has_groups(
- "stock_inventory_discrepancy."
- "group_stock_inventory_validation_always"
- ):
- inventory.action_over_discrepancies()
- return True
- else:
- inventory._check_group_inventory_validation_always()
- return super(StockInventory, self)._action_done()
-
- def action_force_done(self):
- return super(StockInventory, self)._action_done()
diff --git a/stock_inventory_discrepancy/models/stock_inventory_line.py b/stock_inventory_discrepancy/models/stock_inventory_line.py
deleted file mode 100644
index 2af72477deac..000000000000
--- a/stock_inventory_discrepancy/models/stock_inventory_line.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 2017-21 ForgeFlow S.L. (https://www.forgeflow.com)
-# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-
-from odoo import api, fields, models
-
-
-class StockInventoryLine(models.Model):
- _inherit = "stock.inventory.line"
-
- discrepancy_qty = fields.Float(
- string="Discrepancy",
- compute="_compute_discrepancy",
- help="The difference between the actual qty counted and the "
- "theoretical quantity on hand.",
- digits="Product Unit of Measure",
- default=0,
- compute_sudo=True,
- )
- discrepancy_percent = fields.Float(
- string="Discrepancy percent (%)",
- compute="_compute_discrepancy",
- digits=(3, 2),
- help="The discrepancy expressed in percent with theoretical quantity "
- "as basis",
- group_operator="avg",
- store=True,
- compute_sudo=True,
- )
- discrepancy_threshold = fields.Float(
- string="Threshold (%)",
- digits=(3, 2),
- help="Maximum Discrepancy Rate Threshold",
- compute="_compute_discrepancy_threshold",
- )
- has_over_discrepancy = fields.Boolean(
- compute="_compute_has_over_discrepancy",
- )
-
- @api.depends("theoretical_qty", "product_qty")
- def _compute_discrepancy(self):
- for line in self:
- line.discrepancy_qty = line.product_qty - line.theoretical_qty
- if line.theoretical_qty:
- line.discrepancy_percent = 100 * abs(
- (line.product_qty - line.theoretical_qty) / line.theoretical_qty
- )
- elif not line.theoretical_qty and line.product_qty:
- line.discrepancy_percent = 100.0
- else:
- line.discrepancy_percent = 0.0
-
- def _compute_discrepancy_threshold(self):
- for line in self:
- whs = line.location_id.get_warehouse()
- if line.location_id.discrepancy_threshold > 0.0:
- line.discrepancy_threshold = line.location_id.discrepancy_threshold
- elif whs.discrepancy_threshold > 0.0:
- line.discrepancy_threshold = whs.discrepancy_threshold
- else:
- line.discrepancy_threshold = False
-
- def _compute_has_over_discrepancy(self):
- for rec in self:
- rec.has_over_discrepancy = rec._has_over_discrepancy()
-
- def _has_over_discrepancy(self):
- return self.discrepancy_percent > self.discrepancy_threshold > 0
diff --git a/stock_inventory_discrepancy/models/stock_quant.py b/stock_inventory_discrepancy/models/stock_quant.py
new file mode 100644
index 000000000000..8659eb20636b
--- /dev/null
+++ b/stock_inventory_discrepancy/models/stock_quant.py
@@ -0,0 +1,68 @@
+# Copyright 2023 Tecnativa - Ernesto Tejeda
+# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+from odoo import api, fields, models
+
+
+class StockQuant(models.Model):
+ _inherit = "stock.quant"
+
+ discrepancy_percent = fields.Float(
+ string="Discrepancy percent (%)",
+ compute="_compute_discrepancy",
+ digits=(3, 2),
+ help="The discrepancy expressed in percent with theoretical quantity "
+ "as basis",
+ group_operator="avg",
+ store=True,
+ compute_sudo=True,
+ )
+ discrepancy_threshold = fields.Float(
+ string="Threshold (%)",
+ digits=(3, 2),
+ help="Maximum Discrepancy Rate Threshold",
+ compute="_compute_discrepancy_threshold",
+ )
+ has_over_discrepancy = fields.Boolean(
+ compute="_compute_has_over_discrepancy",
+ )
+
+ @api.depends("quantity", "inventory_quantity")
+ def _compute_discrepancy(self):
+ for quant in self:
+ if not quant.quantity or not quant.inventory_quantity_set:
+ quant.discrepancy_percent = 0
+ else:
+ quant.discrepancy_percent = abs(
+ 100 * (quant.inventory_diff_quantity) / quant.quantity
+ )
+
+ def _compute_discrepancy_threshold(self):
+ for quant in self:
+ whs = quant.location_id.warehouse_id
+ if quant.location_id.discrepancy_threshold > 0.0:
+ quant.discrepancy_threshold = quant.location_id.discrepancy_threshold
+ elif whs.discrepancy_threshold > 0.0:
+ quant.discrepancy_threshold = whs.discrepancy_threshold
+ else:
+ quant.discrepancy_threshold = False
+
+ def _compute_has_over_discrepancy(self):
+ for rec in self:
+ rec.has_over_discrepancy = (
+ rec.discrepancy_percent > rec.discrepancy_threshold
+ )
+
+ def action_apply_inventory(self):
+ if self.env.context.get("skip_exceeded_discrepancy", False):
+ return super().action_apply_inventory()
+ over_discrepancy = self.filtered(lambda r: r.has_over_discrepancy)
+ if over_discrepancy:
+ action = self.env["ir.actions.act_window"]._for_xml_id(
+ "stock_inventory_discrepancy.confirm_discrepancy_action"
+ )
+ action["context"] = dict(
+ self._context.copy(),
+ discrepancy_quant_ids=over_discrepancy.ids,
+ )
+ return action
+ return super().action_apply_inventory()
diff --git a/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst b/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst
index 0fea89874d9a..cbc8f8f8b871 100644
--- a/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst
+++ b/stock_inventory_discrepancy/readme/CONTRIBUTORS.rst
@@ -2,3 +2,6 @@
* Andreas Dian Sukarno Putro
* Bhavesh Odedra
* Héctor Villarreal
+* `Tecnativa `_:
+
+ * Ernesto Tejeda
diff --git a/stock_inventory_discrepancy/security/ir.model.access.csv b/stock_inventory_discrepancy/security/ir.model.access.csv
new file mode 100644
index 000000000000..03798e3d3428
--- /dev/null
+++ b/stock_inventory_discrepancy/security/ir.model.access.csv
@@ -0,0 +1,3 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_confirm_discrepancy_wiz,confirm_discrepancy_wiz,model_confirm_discrepancy_wiz,stock.group_stock_user,1,1,1,0
+access_user_adjustment_name,user.stock.inventory.adjustment.name,stock.model_stock_inventory_adjustment_name,stock.group_stock_user,1,1,1,0
diff --git a/stock_inventory_discrepancy/security/stock_inventory_discrepancy_security.xml b/stock_inventory_discrepancy/security/stock_inventory_discrepancy_security.xml
index b9d941028eac..1a43b73b2515 100644
--- a/stock_inventory_discrepancy/security/stock_inventory_discrepancy_security.xml
+++ b/stock_inventory_discrepancy/security/stock_inventory_discrepancy_security.xml
@@ -1,13 +1,13 @@
-
- Validate Inventory Adjustments Under Threshold
+ Validate Inventory Adjustments
- Validate All inventory Adjustments
+ Validate Inventory Adjustments excceded threshold
-
-
- Stock Inventory Discrepancy
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
Adds the capability to show the discrepancy of every line in an inventory and
to block the inventory validation (setting it as ‘Pending to Approve’) when the
discrepancy is greater than an user defined threshold.
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.
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.