Skip to content

Commit d1f087e

Browse files
authored
Merge pull request #1864 from OCA/18.0
Syncing from upstream OCA/stock-logistics-warehouse (18.0)
2 parents 3a2a722 + f831e52 commit d1f087e

File tree

7 files changed

+160
-5
lines changed

7 files changed

+160
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ addon | version | maintainers | summary
5858
[stock_move_location](stock_move_location/) | 18.0.1.0.1 | | This module allows to move all stock in a stock location to an other one.
5959
[stock_move_location_purchase_uom](stock_move_location_purchase_uom/) | 18.0.1.0.0 | | This module 'glues' the modules stock_move_location and stock_move_purchase_uom.
6060
[stock_move_packaging_qty](stock_move_packaging_qty/) | 18.0.1.1.0 | <a href='https://github.com/yajo'><img src='https://github.com/yajo.png' width='32' height='32' style='border-radius:50%;' alt='yajo'/></a> <a href='https://github.com/EmilioPascual'><img src='https://github.com/EmilioPascual.png' width='32' height='32' style='border-radius:50%;' alt='EmilioPascual'/></a> <a href='https://github.com/Shide'><img src='https://github.com/Shide.png' width='32' height='32' style='border-radius:50%;' alt='Shide'/></a> | Add packaging fields in the stock moves
61-
[stock_move_purchase_uom](stock_move_purchase_uom/) | 18.0.1.1.0 | | Allow to use the purchase UoM in a stock move
61+
[stock_move_purchase_uom](stock_move_purchase_uom/) | 18.0.1.1.1 | | Allow to use the purchase UoM in a stock move
6262
[stock_move_reset_quantity](stock_move_reset_quantity/) | 18.0.1.0.0 | | Reset quantity to zero
6363
[stock_package_type_volume](stock_package_type_volume/) | 18.0.1.0.0 | | Compute volume of a package type
6464
[stock_packaging_calculator](stock_packaging_calculator/) | 18.0.2.0.0 | | Compute product quantity to pick by packaging

stock_move_purchase_uom/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Stock Move Purchase UoM
1111
!! This file is generated by oca-gen-addon-readme !!
1212
!! changes will be overwritten. !!
1313
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14-
!! source digest: sha256:553c8578d067ba2cfa733eeddbd6cd7dea4d91ae3aaf42730be3701e5feaee96
14+
!! source digest: sha256:9994b9770d0c6252f3cd46b773aa4c437acbcfe9a2dfd345e9c57fdb1f4ddce3
1515
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1616
1717
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

stock_move_purchase_uom/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Stock Move Purchase UoM",
55
"summary": "Allow to use the purchase UoM in a stock move",
6-
"version": "18.0.1.1.0",
6+
"version": "18.0.1.1.1",
77
"author": "ForgeFlow, Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/stock-logistics-warehouse",
99
"category": "Warehouse",

stock_move_purchase_uom/models/stock_move.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def create(self, vals_list):
1616
and move.picking_type_id
1717
and move.picking_type_id.use_purchase_uom
1818
and purchase_uom
19-
and move.product_uom != purchase_uom
2019
and not move.origin_returned_move_id
2120
):
2221
updated_product_uom_qty = move.product_uom._compute_quantity(

stock_move_purchase_uom/static/description/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ <h1>Stock Move Purchase UoM</h1>
372372
!! This file is generated by oca-gen-addon-readme !!
373373
!! changes will be overwritten. !!
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375-
!! source digest: sha256:553c8578d067ba2cfa733eeddbd6cd7dea4d91ae3aaf42730be3701e5feaee96
375+
!! source digest: sha256:9994b9770d0c6252f3cd46b773aa4c437acbcfe9a2dfd345e9c57fdb1f4ddce3
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377377
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_move_purchase_uom"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_move_purchase_uom"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>This module adds a check in the operation types form that allows users

stock_move_purchase_uom/tests/test_stock_move.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,55 @@ def test_create_move_rounding_method_up(self):
4747
picking = picking_form.save()
4848
move = picking.move_ids_without_package[0]
4949
self.assertEqual(move.product_uom_qty, 0.01)
50+
51+
def test_create_move_same_uom_rounding_up(self):
52+
unit_uom = self.env.ref("uom.product_uom_unit")
53+
unit_uom.rounding = 1.0
54+
product_unit = self.env["product.product"].create(
55+
{
56+
"name": "Test product unit",
57+
"is_storable": True,
58+
"categ_id": self.env.ref("product.product_category_all").id,
59+
"uom_id": unit_uom.id,
60+
"uom_po_id": unit_uom.id,
61+
}
62+
)
63+
self.stock_picking_type_2.purchase_uom_rounding_method = "UP"
64+
move = self.env["stock.move"].create(
65+
{
66+
"name": product_unit.display_name,
67+
"location_id": self.location.id,
68+
"location_dest_id": self.location_dest.id,
69+
"product_id": product_unit.id,
70+
"product_uom_qty": 5.25,
71+
"picking_type_id": self.stock_picking_type_2.id,
72+
"product_uom": unit_uom.id,
73+
}
74+
)
75+
self.assertEqual(move.product_uom_qty, 6.0)
76+
77+
def test_create_move_same_uom_rounding_half_up(self):
78+
unit_uom = self.env.ref("uom.product_uom_unit")
79+
unit_uom.rounding = 1.0
80+
product_unit = self.env["product.product"].create(
81+
{
82+
"name": "Test product unit",
83+
"is_storable": True,
84+
"categ_id": self.env.ref("product.product_category_all").id,
85+
"uom_id": unit_uom.id,
86+
"uom_po_id": unit_uom.id,
87+
}
88+
)
89+
self.stock_picking_type_2.purchase_uom_rounding_method = "HALF-UP"
90+
move = self.env["stock.move"].create(
91+
{
92+
"name": product_unit.display_name,
93+
"location_id": self.location.id,
94+
"location_dest_id": self.location_dest.id,
95+
"product_id": product_unit.id,
96+
"product_uom_qty": 5.25,
97+
"picking_type_id": self.stock_picking_type_2.id,
98+
"product_uom": unit_uom.id,
99+
}
100+
)
101+
self.assertEqual(move.product_uom_qty, 5.0)

stock_secondary_unit/i18n/tr.po

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_secondary_unit
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 18.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2026-02-13 15:09+0000\n"
10+
"Last-Translator: Betül Öğmen <betulo@eska.biz>\n"
11+
"Language-Team: none\n"
12+
"Language: tr\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 5.15.2\n"
18+
19+
#. module: stock_secondary_unit
20+
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.product_form_view_procurement_button
21+
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.product_template_form_view_procurement_button
22+
msgid "<span class=\"o_stat_text\">Secondary Unit</span>"
23+
msgstr "<span class=\"o_stat_text\">İkincil Birim</span>"
24+
25+
#. module: stock_secondary_unit
26+
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.report_delivery_document
27+
msgid "<strong>Secondary Qty</strong>"
28+
msgstr "<strong>İkincil Miktar</strong>"
29+
30+
#. module: stock_secondary_unit
31+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__product_uom_qty
32+
msgid "Demand"
33+
msgstr "Talep"
34+
35+
#. module: stock_secondary_unit
36+
#: model:ir.model,name:stock_secondary_unit.model_product_template
37+
msgid "Product"
38+
msgstr "Ürün"
39+
40+
#. module: stock_secondary_unit
41+
#: model:ir.model,name:stock_secondary_unit.model_stock_move_line
42+
msgid "Product Moves (Stock Move Line)"
43+
msgstr "Ürün Hareketleri (Stok Hareket Satırları)"
44+
45+
#. module: stock_secondary_unit
46+
#: model:ir.model,name:stock_secondary_unit.model_product_product
47+
msgid "Product Variant"
48+
msgstr "Ürün Varyantı"
49+
50+
#. module: stock_secondary_unit
51+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__quantity
52+
msgid "Quantity"
53+
msgstr "Miktar"
54+
55+
#. module: stock_secondary_unit
56+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_product__secondary_unit_qty_available
57+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_template__secondary_unit_qty_available
58+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_product_secondary_unit_mixin__secondary_unit_qty_available
59+
msgid "Quantity On Hand (2Unit)"
60+
msgstr "Stok Miktarı (2Birim)"
61+
62+
#. module: stock_secondary_unit
63+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__secondary_uom_id
64+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__secondary_uom_id
65+
msgid "Second unit"
66+
msgstr "İkinci birim"
67+
68+
#. module: stock_secondary_unit
69+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_product__stock_secondary_uom_id
70+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_template__stock_secondary_uom_id
71+
msgid "Second unit for inventory"
72+
msgstr "Envanter için ikinci birim"
73+
74+
#. module: stock_secondary_unit
75+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__secondary_uom_qty
76+
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__secondary_uom_qty
77+
msgid "Secondary Qty"
78+
msgstr "İkincil Miktar"
79+
80+
#. module: stock_secondary_unit
81+
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.view_template_property_form
82+
msgid "Secondary unit"
83+
msgstr "İkincil birim"
84+
85+
#. module: stock_secondary_unit
86+
#: model:ir.model,name:stock_secondary_unit.model_stock_move
87+
msgid "Stock Move"
88+
msgstr "Stok Hareketi"
89+
90+
#. module: stock_secondary_unit
91+
#: model:ir.model,name:stock_secondary_unit.model_stock_product_secondary_unit_mixin
92+
msgid "Stock Product Secondary Unit Mixin"
93+
msgstr "Stok Ürün İkincil Birim Karışımı"
94+
95+
#. module: stock_secondary_unit
96+
#: model:ir.model.fields,help:stock_secondary_unit.field_stock_move__product_uom_qty
97+
msgid ""
98+
"This is the quantity of product that is planned to be moved.Lowering this "
99+
"quantity does not generate a backorder.Changing this quantity on assigned "
100+
"moves affects the product reservation, and should be done with care."
101+
msgstr ""
102+
"Bu, taşınması planlanan ürün miktarıdır. Bu miktarın düşürülmesi bir sipariş "
103+
"geri dönüşü oluşturmaz. Atanmış taşımalarda bu miktarın değiştirilmesi ürün "
104+
"rezervasyonunu etkiler ve dikkatli yapılmalıdır."

0 commit comments

Comments
 (0)