diff --git a/coop_stock/i18n/fr.po b/coop_stock/i18n/fr.po index 6c2b3b001..ee692b61a 100644 --- a/coop_stock/i18n/fr.po +++ b/coop_stock/i18n/fr.po @@ -4,10 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 18.0\n" +"Project-Id-Version: Odoo Server 18.0+e\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-03-31 04:02+0000\n" -"PO-Revision-Date: 2026-03-31 04:02+0000\n" +"POT-Creation-Date: 2026-04-24 10:28+0000\n" +"PO-Revision-Date: 2026-04-24 10:28+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -56,7 +56,7 @@ msgstr "Date" #. module: coop_stock #: model_terms:ir.ui.view,arch_db:coop_stock.product_template_kanban_stock_view_inherit msgid "Forecasted:" -msgstr "Prévu :" +msgstr "Prévu:" #. module: coop_stock #: model_terms:ir.ui.view,arch_db:coop_stock.product_category_search_view_inherit @@ -121,7 +121,7 @@ msgstr "Catégorie de produit" #. module: coop_stock #: model:ir.model,name:coop_stock.model_stock_move_line msgid "Product Moves (Stock Move Line)" -msgstr "Mouvements de produit (Ligne de mouvement de stock)" +msgstr "Mouvements de produits (Ligne de mouvement de stock)" #. module: coop_stock #: model:ir.model,name:coop_stock.model_product_product @@ -184,7 +184,7 @@ msgid "" " if it should show the\n" " customer." msgstr "" -"Le système de type d'expédition vous permet d'assigner à chaque opération de stock\n" +"Le système de types d'expédition vous permet d'assigner à chaque opération de stock\n" " un type spécifique qui modifiera ses vues\n" " en conséquence.\n" " Sur le type d'expédition, vous pouvez par exemple spécifier\n" @@ -193,11 +193,6 @@ msgstr "" " si elle doit afficher le\n" " client." -#. module: coop_stock -#: model:ir.model,name:coop_stock.model_stock_picking -msgid "Transfer" -msgstr "Transfert" - #. module: coop_stock #: model_terms:ir.ui.view,arch_db:coop_stock.product_category_search_view_inherit msgid "Type" @@ -218,4 +213,4 @@ msgstr "Code produit fournisseur" #. module: coop_stock #: model:ir.model.fields.selection,name:coop_stock.selection__product_category__type__view msgid "View" -msgstr "Vue" \ No newline at end of file +msgstr "Vue" diff --git a/coop_stock/models/__init__.py b/coop_stock/models/__init__.py index e54971c15..a5d3233ee 100644 --- a/coop_stock/models/__init__.py +++ b/coop_stock/models/__init__.py @@ -1,7 +1,6 @@ from . import product_category from . import product_product from . import product_template -from . import stock_picking from . import stock_move from . import stock_quant from . import pos_order diff --git a/coop_stock/models/stock_picking.py b/coop_stock/models/stock_picking.py deleted file mode 100644 index ea86cfa5d..000000000 --- a/coop_stock/models/stock_picking.py +++ /dev/null @@ -1,34 +0,0 @@ -############################################################################## -# -# Purchase - Package Quantity Module for Odoo -# Copyright (C) 2016-Today Akretion (https://www.akretion.com) -# @author Julien WESTE -# @author Sylvain LE GAL (https://twitter.com/legalsylvain) -# Copyright (C) 2020-Today: Druidoo () -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## - -from odoo import models - - -class StockPicking(models.Model): - _inherit = "stock.picking" - - def copy_expected_qtys(self): - for picking in self: - for pack in picking.move_ids_without_package: - pack.product_packaging_quantity = pack.product_packaging_qty - pack.quantity = pack.product_uom_qty diff --git a/coop_stock/tests/test_coop_stock.py b/coop_stock/tests/test_coop_stock.py index 192ebb50e..77a63d7c7 100644 --- a/coop_stock/tests/test_coop_stock.py +++ b/coop_stock/tests/test_coop_stock.py @@ -1,6 +1,5 @@ from datetime import datetime -from odoo.tests import Form from odoo.tests.common import TransactionCase @@ -41,32 +40,6 @@ def test_01_stock_inventory_post_inventory(self): 20.0, ) - def test_02_stock_picking(self): - picking_form = Form(self.env["stock.picking"]) - self.picking_type = self.env.ref("stock.picking_type_out") - self.product = self.env.ref("product.product_delivery_01") - picking_form.partner_id = self.partner_3 - picking_form.picking_type_id = self.picking_type - self.picking = picking_form.save() - self.picking._onchange_picking_type() - self.move = self.env["stock.move"].create( - { - "picking_id": self.picking.id, - "product_id": self.product.id, - "name": "Test", - "product_uom_qty": 20, - "product_uom": self.env.ref("uom.product_uom_unit").id, - "location_id": self.picking.location_id.id, - "location_dest_id": self.picking.location_dest_id.id, - } - ) - self.picking.copy_expected_qtys() - self.assertEqual( - self.move.quantity, - self.move.product_uom_qty, - "copy_expected_qtys should set quantity = product_uom_qty", - ) - def test_03_inventory_move_date_from_context(self): """Move date must match inventory_datetime passed via context.""" product = self.env["product.product"].create( diff --git a/coop_stock/views/stock_picking_view.xml b/coop_stock/views/stock_picking_view.xml index 504659d47..f4693bd19 100644 --- a/coop_stock/views/stock_picking_view.xml +++ b/coop_stock/views/stock_picking_view.xml @@ -29,13 +29,6 @@ name="decoration-danger" >quantity!=product_uom_qty - -