Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
87e7d7c
[ADD] stock_secondary_unit: New module for getting stock in a seconda…
sergio-teruel Sep 11, 2018
f876872
[11.0][FIX] stock_secondary_unit: Remove procurement_rule move. Fix d…
sergio-teruel Feb 19, 2019
d8e59f5
[12.0][MIG] stock_secondary_unit
kittiu Apr 4, 2019
c8504c6
[FIX] stock_secondary_unit: Fix key error in vals
sergio-teruel Jun 5, 2019
7b89428
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Oct 16, 2019
fd96328
Translated using Weblate (Chinese (Simplified))
digitalsatori Oct 21, 2019
3a68f5b
[12.0][FIX] stock_secondary_unit: move line create round
enriquemartin Nov 13, 2019
72a7568
[IMP] stock_secondary_unit: black, isort
ps-tubtim Dec 18, 2019
6d1233f
[MIG] stock_secondary_unit: Migration to 13.0
ps-tubtim Dec 18, 2019
38aa30b
[IMP] stock_secondary_unit: Display info only for inventory users
sergio-teruel Sep 16, 2020
21694c6
[IMP] stock_secondary_unit: Remove unnecessary code. Always compute a…
sergio-teruel Nov 3, 2020
dbf2593
[FIX] stock_secondary_unit: Incorrect secondary unit link in product …
sergio-teruel Dec 1, 2020
2e69597
[IMP] stock_secondary_unit: Use secondary units directly in pickings
sergio-teruel Dec 19, 2020
517b401
[FIX] stock_secondary_unit: Allow use secondary units in form view fo…
sergio-teruel Jun 22, 2021
6e591b7
[IMP] stock_secondary_unit: black, isort, prettier
alan196 Oct 5, 2021
5f45da9
[MIG] stock_secondary_unit: migration to V14.
alan196 Oct 5, 2021
ede0e91
[MIG] stock_secondary_unit: Migration to 15.0
CarlosRoca13 Jun 7, 2022
7a90d9e
Translated using Weblate (Spanish)
Ivorra78 Jul 27, 2023
704f209
Added translation using Weblate (Finnish)
n17 Aug 11, 2023
8e7b164
[IMP] stock_secondary_unit: test performance improvement
josep-tecnativa Oct 25, 2023
62a5992
[IMP] stock_secondary_unit: Compatibility with product variants
sergio-teruel Jan 12, 2023
cafdb79
[FIX] stock_secondary_unit: Remove _merge_moves_fields method. Now Od…
sergio-teruel Feb 27, 2023
c4d8093
[FIX] stock_secondary_unit: Propagate secondary_uom_id for new extra …
sergio-teruel Jul 17, 2023
03f46d5
[FIX] stock_secondary_unit: The second qty is computed when a sml is …
sergio-teruel Nov 23, 2023
6e89601
Added translation using Weblate (Italian)
mymage Dec 18, 2023
1c851e0
[IMP] stock_secondary_unit: Make readonly secondary qty field in some…
sergio-teruel Feb 22, 2024
043bc87
[MIG] stock_secondary_unit: Migration to 16.0
lk-eska Apr 8, 2024
4bdfd97
[IMP] stock_secondary_unit: make the secondary unit and secondary qua…
pilarvargas-tecnativa Jun 19, 2024
beb4392
Translated using Weblate (Italian)
mymage Oct 10, 2024
8edea13
[16.0][FIX] stock_secondary_unit: use @api.model_create_multi in crea…
ced-adhoc Oct 16, 2024
305b9a3
[FIX] stock_secondary_unit: Error when user try to select a secondary…
sergio-teruel Nov 11, 2024
bcd1f39
[IMP] stock_secondary_unit: pre-commit execution
rov-adhoc Jan 8, 2025
9df94e1
[MIG] stock_secondary_unit: Migration to 17.0
rov-adhoc Jan 8, 2025
877e280
Translated using Weblate (Italian)
mymage Jan 20, 2025
42f8e86
[MIG] stock_secondary_unit: Migration to 18.0
Feb 28, 2025
a67d548
[UPD] Update stock_secondary_unit.pot
Sep 2, 2025
e744d9f
[BOT] post-merge updates
OCA-git-bot Sep 2, 2025
57a6159
Added translation using Weblate (Croatian)
uvid-vlado Sep 29, 2025
e968212
Translated using Weblate (Croatian)
uvid-ana Dec 8, 2025
4469514
Added translation using Weblate (Turkish)
bo-eska Feb 13, 2026
e414c9c
Translated using Weblate (Turkish)
bo-eska Feb 13, 2026
37b8a8f
[MIG] stock-secondary_unit: Migration to 19.0
Vicent-S73 Mar 26, 2026
cbe049f
[DON'T MERGE] test-requirements.txt
Vicent-S73 Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions stock_secondary_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

====================
Stock Secondary Unit
====================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:74d27f6a71ab6acf126e480ea7dcfdc84c09d7269ff765dd075e960ecf101647
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/license-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/19.0/stock_secondary_unit
: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-19-0/stock-logistics-warehouse-19-0-stock_secondary_unit
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of stock module to allow define
other units with their conversion factor.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module you need to:

1. Go to a *Product > General Information tab*.
2. Create any record in "Secondary unit of measure".
3. Set the conversion factor.
4. Go to *Inventory tab* and set a second unit of measure.
5. Push button 'On hand' and set quantities in stock for this product.
6. Go to product list and you can see the secondary unit value.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_secondary_unit%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__

- Carlos Dauden
- Sergio Teruel
- Carlos Roca

- Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
- Alan Ramos <alan.ramos@jarsa.com.mx>
- `Studio73 <https://www.studio73.es/>`__:

- Vicent Castells

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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 <https://github.com/OCA/stock-logistics-warehouse/tree/19.0/stock_secondary_unit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions stock_secondary_unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
21 changes: 21 additions & 0 deletions stock_secondary_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Secondary Unit",
"summary": "Get product quantities in a secondary unit",
"version": "19.0.1.0.0",
"development_status": "Production/Stable",
"category": "stock",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["stock", "product_secondary_unit"],
"data": [
"views/product_views.xml",
"views/stock_move_views.xml",
"views/stock_picking_views.xml",
"report/report_deliveryslip.xml",
],
}
142 changes: 142 additions & 0 deletions stock_secondary_unit/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_secondary_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-11 06:27+0000\n"
"PO-Revision-Date: 2023-07-27 22:12+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: stock_secondary_unit
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.report_delivery_document
msgid "<strong>Secondary Qty</strong>"
msgstr "<strong>Cantidad secundaria</strong>"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__product_uom_qty
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_reservation__product_uom_qty
msgid "Demand"
msgstr "Demanda"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_product_template
msgid "Product"
msgstr "Producto"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
msgstr "Movimientos de productos (línea de movimiento de existencias)"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_product_product
msgid "Product Variant"
msgstr ""

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__qty_done
msgid "Qty Done"
msgstr ""

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_product__secondary_unit_qty_available
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_template__secondary_unit_qty_available
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_product_secondary_unit_mixin__secondary_unit_qty_available
msgid "Quantity On Hand (2Unit)"
msgstr "Cantidad a mano (2Ud.)"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__secondary_uom_id
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__secondary_uom_id
msgid "Second unit"
msgstr "Segunda unidad"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_product__stock_secondary_uom_id
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_template__stock_secondary_uom_id
msgid "Second unit for inventory"
msgstr "Segunda unidad de medida para inventario"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__secondary_uom_qty
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__secondary_uom_qty
msgid "Secondary Qty"
msgstr "Cantd Secundaria"

#. module: stock_secondary_unit
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.view_template_property_form
msgid "Secondary unit"
msgstr "Unidad Secundaria"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de existencias"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_stock_product_secondary_unit_mixin
msgid "Stock Product Secondary Unit Mixin"
msgstr ""

#. module: stock_secondary_unit
#: model:ir.model.fields,help:stock_secondary_unit.field_stock_move__product_uom_qty
#: model:ir.model.fields,help:stock_secondary_unit.field_stock_reservation__product_uom_qty
msgid ""
"This is the quantity of product that is planned to be moved.Lowering this "
"quantity does not generate a backorder.Changing this quantity on assigned "
"moves affects the product reservation, and should be done with care."
msgstr ""

#~ msgid "Done"
#~ msgstr "Hecho"

#~ msgid ""
#~ "This is the quantity of products from an inventory point of view. For "
#~ "moves in the state 'done', this is the quantity of products that were "
#~ "actually moved. For other moves, this is the quantity of product that is "
#~ "planned to be moved. Lowering this quantity does not generate a "
#~ "backorder. Changing this quantity on assigned moves affects the product "
#~ "reservation, and should be done with care."
#~ msgstr ""
#~ "Es la cantidad de productos desde el punto de vista del inventario. Para "
#~ "los movimientos en estado \"realizado\", es la cantidad de productos que "
#~ "se han movido realmente. Para otros movimientos, es la cantidad de "
#~ "productos que está previsto mover. La reducción de esta cantidad no "
#~ "genera un pedido pendiente. La modificación de esta cantidad en los "
#~ "movimientos asignados afecta a la reserva de productos, y debe hacerse "
#~ "con cuidado."

#~ msgid "Product Template"
#~ msgstr "Plantilla de producto"

#~ msgid "Stock Product Secondary Unit"
#~ msgstr "Existencias de unidad secundaria del producto"

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última modificación en"

#, fuzzy
#~ msgid "Stock Secondary Unit Mixin"
#~ msgstr "Unidad Secundaria"

#~ msgid "On Hand (2unit)"
#~ msgstr "A mano (2Ud.)"

#~ msgid "Second Unit Quantity On Hand"
#~ msgstr "Segunda unidad de medida por defecto"
121 changes: 121 additions & 0 deletions stock_secondary_unit/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_secondary_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-08-11 13:10+0000\n"
"Last-Translator: Oskars Zālītis <oskars.zalitis@avoin.systems>\n"
"Language-Team: none\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: stock_secondary_unit
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.report_delivery_document
msgid "<strong>Secondary Qty</strong>"
msgstr "<strong>2. Määrä</strong>"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__product_uom_qty
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_reservation__product_uom_qty
msgid "Demand"
msgstr ""

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_product_template
msgid "Product"
msgstr "Tuote"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
msgstr "Tuotteiden siirrot (Stock Move Line)"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_product_product
msgid "Product Variant"
msgstr ""

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__qty_done
msgid "Qty Done"
msgstr ""

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_product__secondary_unit_qty_available
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_template__secondary_unit_qty_available
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_product_secondary_unit_mixin__secondary_unit_qty_available
msgid "Quantity On Hand (2Unit)"
msgstr "Varastossa (2.yks.)"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__secondary_uom_id
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__secondary_uom_id
msgid "Second unit"
msgstr "2. Yksikkö"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_product__stock_secondary_uom_id
#: model:ir.model.fields,field_description:stock_secondary_unit.field_product_template__stock_secondary_uom_id
msgid "Second unit for inventory"
msgstr "Toinen varastointiyksikkö"

#. module: stock_secondary_unit
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move__secondary_uom_qty
#: model:ir.model.fields,field_description:stock_secondary_unit.field_stock_move_line__secondary_uom_qty
msgid "Secondary Qty"
msgstr "2. Määrä"

#. module: stock_secondary_unit
#: model_terms:ir.ui.view,arch_db:stock_secondary_unit.view_template_property_form
msgid "Secondary unit"
msgstr "2. Yksikkö"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_stock_move
msgid "Stock Move"
msgstr "Varastosiirto"

#. module: stock_secondary_unit
#: model:ir.model,name:stock_secondary_unit.model_stock_product_secondary_unit_mixin
msgid "Stock Product Secondary Unit Mixin"
msgstr ""

#. module: stock_secondary_unit
#: model:ir.model.fields,help:stock_secondary_unit.field_stock_move__product_uom_qty
#: model:ir.model.fields,help:stock_secondary_unit.field_stock_reservation__product_uom_qty
msgid ""
"This is the quantity of product that is planned to be moved.Lowering this "
"quantity does not generate a backorder.Changing this quantity on assigned "
"moves affects the product reservation, and should be done with care."
msgstr ""

#~ msgid "Done"
#~ msgstr "Valmis"

#~ msgid ""
#~ "This is the quantity of products from an inventory point of view. For "
#~ "moves in the state 'done', this is the quantity of products that were "
#~ "actually moved. For other moves, this is the quantity of product that is "
#~ "planned to be moved. Lowering this quantity does not generate a "
#~ "backorder. Changing this quantity on assigned moves affects the product "
#~ "reservation, and should be done with care."
#~ msgstr ""
#~ "Tämä on tuotteiden määrä varaston näkymästä. \"Valmiissa tilassa\" "
#~ "tapahtuvien siirtojen osalta tämä on tosiasiallisesti siirrettyjen "
#~ "tuotteiden määrä. Muita siirtoja varten tämä on tuotteen määrä, joka on "
#~ "tarkoitus siirtää. Tämän määrän alentaminen ei synny takaisinkytkentää. "
#~ "Tämän määrän muuttaminen määrättyihin liikkeisiin vaikuttaa tuotteen "
#~ "varaamiseen, ja se on tehtävä huolellisesti."

#~ msgid "Product Template"
#~ msgstr "Tuotemalli"

#~ msgid "Stock Product Secondary Unit"
#~ msgstr "Tuotteen toinen varastointiyksikkö"
Loading
Loading