-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by yvaucher
- Loading branch information
Showing
29 changed files
with
1,995 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:f1a793d4e053eb5af0529f5fa42b28208432df52a543c3ac3d976d5023c62527 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/17.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-17-0/operating-unit-17-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=17.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:%2017.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 <[email protected]> | ||
- Aaron Henriquez <[email protected]> | ||
- Sudhir Arya <[email protected]> | ||
- Nicola Studer <[email protected]> | ||
- Kitti U. <[email protected]> | ||
- Alan Ramos <[email protected]> | ||
|
||
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/17.0/stock_operating_unit>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "17.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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?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> | ||
<!-- Multi Company --> | ||
<!-- Child Company 1--> | ||
<record id="stock.res_company_1" model="res.company"> | ||
<field name="name">Your company child</field> | ||
</record> | ||
<record id="operating_unit_shop0" model="operating.unit"> | ||
<field name="name">Chicago</field> | ||
<field name="code">CH</field> | ||
<field name="partner_id" ref="stock.res_partner_company_1" /> | ||
<field name="company_id" ref="stock.res_company_1" /> | ||
</record> | ||
<!-- Chicago Warehouse --> | ||
<record id="stock.stock_warehouse_shop0" model="stock.warehouse"> | ||
<field name="operating_unit_id" ref="operating_unit_shop0" /> | ||
</record> | ||
<!-- Your Company, Chicago shop --> | ||
<record id="stock.stock_location_shop0" model="stock.location"> | ||
<field name="operating_unit_id" ref="operating_unit_shop0" /> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>\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" |
Oops, something went wrong.