Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] stock_operating_unit: Migration to 18.0 #721

Open
wants to merge 72 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
cb87448
stock_operating_unit
JordiBForgeFlow Sep 15, 2016
21fc7e1
flake8 issues
JordiBForgeFlow Sep 28, 2016
b3d4237
flake 8
JordiBForgeFlow Sep 28, 2016
bfa21f2
flake 8
JordiBForgeFlow Sep 28, 2016
01173fc
update contributors
AaronHForgeFlow Sep 30, 2016
06817d6
code style
AaronHForgeFlow Oct 4, 2016
5ba87af
constraint that checks the OU in the picking matches the one in the move
AaronHForgeFlow Oct 4, 2016
40fd7e8
the operating unit in pickings should derive from the picking type
JordiBForgeFlow Oct 5, 2016
1428405
travis issues
AaronHForgeFlow Oct 5, 2016
9177437
travis issues and test stock picking
AaronHForgeFlow Nov 4, 2016
636c914
test stock security according picking 1 in test_stock_picking
AaronHForgeFlow Nov 4, 2016
eab0f79
Update operating units of previous locations
AaronHForgeFlow Jan 16, 2017
94c5b75
lint check operating_unit_id readonly in the picking
AaronHForgeFlow Jan 17, 2017
3184282
Correct error message and xml files
guewen Jan 23, 2017
49fda7d
[MIG] stock_operating_unit to v10.0
AaronHForgeFlow Jan 26, 2017
8a367bd
[FIX] stock_operating_unit: correct constrain function, avoid error o…
esthermm Apr 5, 2017
9d87f25
[FIX]onchange does not work with readonly fields
AaronHForgeFlow Sep 28, 2017
d436624
[FIX]stock.move._check_stock_move_operating_unit
AaronHForgeFlow Apr 10, 2018
3b666e2
[FIX]internal locations should consider all locations but customer or…
AaronHForgeFlow Jun 7, 2018
4c85a04
[FIX]field that triggers constraint is not a valid field name
AaronHForgeFlow Jul 26, 2018
81482b6
[MIG] stock_operating_unit: Migration to v12
bjeficent Dec 12, 2018
ba06d5f
[UPD] Update stock_operating_unit.pot
oca-travis Oct 16, 2019
c9ec437
[UPD] README.rst
OCA-git-bot Oct 16, 2019
3be29d1
[FIX] Alignments
MiquelRForgeFlow Nov 27, 2019
52dc8a3
[IMP] stock_operating_unit: black, isort, prettier
BT-nstuder Jan 6, 2020
7694809
[MIG] stock_operating_unit: Migration to 13.0
BT-nstuder Apr 2, 2020
b06500c
[IMP] stock_operating_unit: Update record rule
BT-nstuder Apr 6, 2020
1e34bc8
[FIX] stock_operating_unit: Constraint on stock move
BT-nstuder Apr 6, 2020
7d7681d
[IMP]add operating unit rule in stock.move.line
AaronHForgeFlow Apr 20, 2020
565b709
[UPD] Update stock_operating_unit.pot
oca-travis Apr 20, 2020
9b23c22
[UPD] README.rst
OCA-git-bot Apr 20, 2020
1e4eb60
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Oct 5, 2020
00c4de0
[UPD] README.rst
OCA-git-bot Oct 5, 2020
27a8e6d
[14.0][MIG] stock_operating_unit
kittiu Dec 4, 2020
133069b
[IMP] Multi Ware Access
osi-scampbell Jan 15, 2020
2033427
[UPD] Update stock_operating_unit.pot
oca-travis May 9, 2021
acaf766
[UPD] README.rst
OCA-git-bot May 9, 2021
36ba25c
[FIX] stock_operating_unit: fix warning in orderpoint constraint oper…
alan196 Aug 17, 2021
70e7664
stock_operating_unit 14.0.1.0.1
OCA-git-bot Aug 17, 2021
0b2db24
[14.0] stock_operating_unit: Add Record Rule to Quants.
gdgellatly Jan 9, 2022
9094eaf
stock_operating_unit 14.0.1.0.2
OCA-git-bot Jan 11, 2022
2fd1c92
[IMP] stock_operating_unit: black, isort, prettier
alan196 Mar 29, 2022
7a6bea3
[MIG] stock_operating_unit: Migration to 15.0
alan196 Mar 29, 2022
b82b700
[UPD] Update stock_operating_unit.pot
Jul 15, 2022
5ef3763
[UPD] README.rst
OCA-git-bot Jul 15, 2022
5a0ea1a
Added translation using Weblate (Spanish (Argentina))
ibuioli Aug 6, 2022
757f19d
Translated using Weblate (Spanish (Argentina))
ibuioli Aug 6, 2022
97a7912
[FIX] stock_operating_unit: filter domain users out
Saran440 Mar 3, 2023
7410f78
stock_operating_unit 15.0.1.1.0
OCA-git-bot Mar 7, 2023
b5c0c12
[FIX] stock_operating_unit: remove domain of operation type
ps-tubtim Mar 9, 2023
acf19c2
stock_operating_unit 15.0.1.2.0
OCA-git-bot Mar 10, 2023
8877cb5
[FIX] stock_operating_unit: migration script to 15.0
AaronHForgeFlow May 23, 2023
80c6132
[MIG] stock_operating_unit: Migration to 16.0
Borruso Jun 22, 2023
70d32f5
[UPD] Update stock_operating_unit.pot
Aug 24, 2023
84bb9a8
[UPD] README.rst
OCA-git-bot Aug 24, 2023
5fc0463
[UPD] README.rst
OCA-git-bot Sep 3, 2023
69b6a23
Update translation files
weblate Sep 3, 2023
d2f0c05
[FIX] stock_operating_unit: access to picking types when warehouse is…
AaronHForgeFlow Sep 19, 2023
927a00c
[FIX] stock_operating_unit: fix view field not in form
Borruso Sep 20, 2023
2d35501
oca-github-bot post-merge updates
OCA-git-bot Sep 20, 2023
fbb271d
[BOT] post-merge updates
OCA-git-bot Oct 19, 2023
595846a
[IMP] stock_operating_unit: proper error message in location misconfi…
AaronHForgeFlow Oct 18, 2023
2a0ffe2
[UPD] Update stock_operating_unit.pot
Oct 19, 2023
aa4724b
[BOT] post-merge updates
OCA-git-bot Oct 19, 2023
e2002a8
Update translation files
weblate Oct 28, 2023
3ac52df
[IMP] stock_operating_unit: pre-commit execution
jdidderen-nsi May 29, 2024
0c62fd4
[MIG] stock_operating_unit: Migration to 17.0
jdidderen-nsi May 29, 2024
0eef668
[UPD] Update stock_operating_unit.pot
Aug 5, 2024
97cd6c2
[BOT] post-merge updates
OCA-git-bot Aug 5, 2024
beae1cd
[IMP] stock_operating_unit: pre-commit auto fixes
BT-dlagin Dec 6, 2024
f044180
[18.0][MIG] stock_operating_unit: Migration to 18.0
BT-dlagin Dec 10, 2024
160c780
[DON'T MERGE] test-requirements.txt
BT-dlagin Dec 12, 2024
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
108 changes: 108 additions & 0 deletions stock_operating_unit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
==========================
Stock with Operating Units
==========================

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

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Foperating--unit-lightgray.png?logo=github
:target: https://github.com/OCA/operating-unit/tree/18.0/stock_operating_unit
:alt: OCA/operating-unit
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/operating-unit-18-0/operating-unit-18-0-stock_operating_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/operating-unit&target_branch=18.0
:alt: Try me on Runboat

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

This module introduces the following features:

- Adds the operating unit to the Warehouse.
- Adds the operating unit to the Stock Location.
- Adds the requesting operating unit to stock pickings.
- Implements user's security access rules.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

- Assign Operating Unit to Warehouses.
- Assign Operating Unit to Stock Locations.

Usage
=====

This module defines the operating unit entity and the user's security
rules. Other modules extend the standard Odoo apps with the OU.

Known issues / Roadmap
======================

The Manager can see the stock rules of other Operating Units but he can
not edit them. If he tries to access to one of these stock rules, he
will receive a configuration error.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/operating-unit/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/operating-unit/issues/new?body=module:%20stock_operating_unit%0Aversion:%2018.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
-------

* ForgeFlow
* Serpent Consulting Services Pvt. Ltd.

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

- Jordi Ballester Alomar <jordi.ballester@forgeflow.com>
- Aaron Henriquez <ahforgeflow@forgeflow.com>
- Sudhir Arya <sudhir.arya@serpentcs.com>
- Nicola Studer <nicola.studer@braintec-group.com>
- Kitti U. <kittiu@ecosoft.co.th>
- Alan Ramos <alan.ramos@jarsa.com>

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/operating-unit <https://github.com/OCA/operating-unit/tree/18.0/stock_operating_unit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions stock_operating_unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

from . import model
19 changes: 19 additions & 0 deletions stock_operating_unit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2019 ForgeFlow S.L.
# Copyright 2019 Serpent Consulting Services Pvt. Ltd.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).

{
"name": "Stock with Operating Units",
"summary": "Adds the concept of operating unit (OU) in stock management",
"version": "18.0.1.0.0",
"category": "Generic Modules/Sales & Purchases",
"author": "ForgeFlow, "
"Serpent Consulting Services Pvt. Ltd., "
"Odoo Community Association (OCA)",
"license": "LGPL-3",
"website": "https://github.com/OCA/operating-unit",
"depends": ["stock", "operating_unit"],
"data": ["security/stock_security.xml", "data/stock_data.xml", "view/stock.xml"],
"demo": ["demo/stock_demo.xml"],
"installable": True,
}
12 changes: 12 additions & 0 deletions stock_operating_unit/data/stock_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ForgeFlow S.L.
Copyright 2019 Serpent Consulting Services Pvt. Ltd.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo noupdate="1">
<record id="stock.warehouse0" model="stock.warehouse">
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" />
</record>
<record id="stock.stock_location_stock" model="stock.location">
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" />
</record>
</odoo>
30 changes: 30 additions & 0 deletions stock_operating_unit/demo/stock_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ForgeFlow S.L.
Copyright 2019 Serpent Consulting Services Pvt. Ltd.
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
<odoo noupdate="1">
<!-- Shelf 2 stock location -->
<record id="stock.stock_location_14" model="stock.location">
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" />
</record>
<!-- Shelf 1 stock location -->
<record id="stock.stock_location_components" model="stock.location">
<field name="operating_unit_id" ref="operating_unit.main_operating_unit" />
</record>
<!--B2B-->
<record id="stock_warehouse_b2b" model="stock.warehouse">
<field name="name">B2B Warehouse</field>
<field name="code">B2B</field>
<field name="partner_id" ref="base.main_partner" />
<field name="company_id" ref="base.main_company" />
<field name="operating_unit_id" ref="operating_unit.b2b_operating_unit" />
</record>
<!-- B2C -->
<record id="stock_warehouse_b2c" model="stock.warehouse">
<field name="name">B2C Warehouse</field>
<field name="code">B2C</field>
<field name="partner_id" ref="base.main_partner" />
<field name="company_id" ref="base.main_company" />
<field name="operating_unit_id" ref="operating_unit.b2c_operating_unit" />
</record>
</odoo>
185 changes: 185 additions & 0 deletions stock_operating_unit/i18n/es_AR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_operating_unit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-29 23:46+0000\n"
"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n"
"Language-Team: none\n"
"Language: es_AR\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_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_warehouse.py:0
#, python-format
msgid ""
"Configuration Error. The Operating Unit of the Warehouse and the Location "
"must be the same. "
msgstr ""
"Error de Configuración. La Unidad Operativa del Almacén y la Ubicación debe "
"ser la misma. "

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_location.py:0
#, python-format
msgid "Configuration error. Internal locations should have an operating unit"
msgstr ""
"Error de configuración. Las Ubicaciones internas deben tener una unidad "
"operativa"

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_location.py:0
#, python-format
msgid ""
"Configuration error. The Company in the Stock Location and in the Operating "
"Unit must be the same."
msgstr ""
"Error de Configuración. La Compañía en la Ubicación de Inventario y en la "
"Unidad Operativa debe ser la misma."

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_picking.py:0
#, python-format
msgid ""
"Configuration error. The Company in the Stock Picking and in the Operating "
"Unit must be the same."
msgstr ""
"Error de Configuración. La Compañía en la Transferencia de Inventario y en "
"la Unidad Operativa debe ser la misma."

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_warehouse.py:0
#, python-format
msgid ""
"Configuration error. The Company in the Stock Warehouse and in the Operating "
"Unit must be the same."
msgstr ""
"Error de Configuración. La Compañía en el Almacén de Inventario y en la "
"Unidad Operativa debe ser la misma."

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_picking.py:0
#, python-format
msgid ""
"Configuration error. The Operating Unit of the picking must be the same as "
"that of the warehouse of the Picking Type."
msgstr ""
"Error de Configuración. La Unidad Operativa de la transferencia debe ser la "
"misma que la del almacén del Tipo de Transferencia."

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_location.py:0
#, python-format
msgid ""
"Configuration error. The Parent Stock Location must belong to the same "
"Operating Unit."
msgstr ""
"Error de Configuración. La Ubicación de Inventario principal debe pertenecer "
"a la misma Unidad Operativa."

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_move.py:0
#, python-format
msgid ""
"Configuration error. The Stock moves must be related to a location (source "
"or destination) that belongs to the requesting Operating Unit."
msgstr ""
"Error de Configuración. Los Movimientos de Inventario debe estar "
"relacionados a una ubicación (origen o destino) que pertenezca a la Unidad "
"Operativa solicitada."

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_location.py:0
#, python-format
msgid ""
"Configuration error. The operating unit should be assigned to internal "
"locations only."
msgstr ""
"Error de Configuración. La unidad operativa debe ser asignada solo a "
"ubicaciones internas."

#. module: stock_operating_unit
#. odoo-python
#: code:addons/stock_operating_unit/model/stock_location.py:0
#, python-format
msgid ""
"Configuration error. This location is assigned to a warehouse that belongs "
"to a different operating unit."
msgstr ""
"Error de Configuración. Esta ubicación es asignada al almacén que pertenece "
"a una unidad operativa diferente."

#. module: stock_operating_unit
#: model:ir.model.fields,field_description:stock_operating_unit.field_stock_move__operating_unit_dest_id
msgid "Dest. Location Operating Unit"
msgstr "Ubicación de Destino de la Unidad Operativa"

#. module: stock_operating_unit
#: model:ir.model,name:stock_operating_unit.model_stock_location
msgid "Inventory Locations"
msgstr "Ubicaciones de Inventario"

#. module: stock_operating_unit
#: model:ir.model,name:stock_operating_unit.model_stock_warehouse_orderpoint
msgid "Minimum Inventory Rule"
msgstr "Regla de Inventario Mínimo"

#. module: stock_operating_unit
#: model:ir.model.fields,field_description:stock_operating_unit.field_stock_location__operating_unit_id
#: model:ir.model.fields,field_description:stock_operating_unit.field_stock_quant__operating_unit_id
#: model:ir.model.fields,field_description:stock_operating_unit.field_stock_rule__operating_unit_id
#: model:ir.model.fields,field_description:stock_operating_unit.field_stock_warehouse__operating_unit_id
#: model_terms:ir.ui.view,arch_db:stock_operating_unit.view_picking_internal_search
msgid "Operating Unit"
msgstr "Unidad Operativa"

#. module: stock_operating_unit
#: model:ir.model,name:stock_operating_unit.model_stock_quant
msgid "Quants"
msgstr "Cantidades"

#. module: stock_operating_unit
#: model:ir.model.fields,field_description:stock_operating_unit.field_stock_picking__operating_unit_id
msgid "Requesting Operating Unit"
msgstr "Unidad Operativa Solicitante"

#. module: stock_operating_unit
#: model:ir.model.fields,field_description:stock_operating_unit.field_stock_move__operating_unit_id
msgid "Source Location Operating Unit"
msgstr "Ubicación de Origen de la Unidad Operativa"

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

#. module: stock_operating_unit
#: model:ir.model,name:stock_operating_unit.model_stock_rule
msgid "Stock Rule"
msgstr "Regla de Inventario"

#. module: stock_operating_unit
#: model:ir.model,name:stock_operating_unit.model_stock_picking
msgid "Transfer"
msgstr "Transferir"

#. module: stock_operating_unit
#: model:ir.model,name:stock_operating_unit.model_stock_warehouse
msgid "Warehouse"
msgstr "Almacén"
Loading
Loading