-
-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[16.0][MIG] stock_warehouse_relationship
- Loading branch information
1 parent
d0beee3
commit b2823b1
Showing
11 changed files
with
34 additions
and
130 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ Stock Warehouse relationship | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:65a3639c6b885f1f5a54d26b6d714c01a4521ca1fdbe39e466386d1b6999bf79 | ||
!! source digest: sha256:82b354f748f037bca8d435f4e7a20f14144645ca9c9679b93b76c7329c10fc50 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png | ||
|
@@ -42,9 +42,6 @@ Following models are linked by this module: | |
* *stock.quant* | ||
* *stock.quant.package* | ||
|
||
You'll probably like to use `stock_location_warehouse` as well | ||
which add `warehouse_id` on `stock.location`. | ||
|
||
This module is inspired from the experiences of | ||
`stock_multi_warehouse_security <https://github.com/akretion/stock-logistics-warehouse/tree/12-muli-wh-security/stock_multi_warehouse_security/>`_ | ||
on version 12.0 but has some key differences on user experience: | ||
|
@@ -59,11 +56,6 @@ on version 12.0 but has some key differences on user experience: | |
.. contents:: | ||
:local: | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* link inventories to warehouse(s) somehow | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
|
@@ -90,6 +82,8 @@ Contributors | |
|
||
* Pierre Verkest <[email protected]> | ||
|
||
* Florian da Costa <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
|
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
83 changes: 0 additions & 83 deletions
83
stock_warehouse_relationship/i18n/stock_warehouse_relationship copy.pot
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
* `Foodles <https://www.foodles.co>`_ | ||
|
||
* Pierre Verkest <[email protected]> | ||
|
||
* Florian da Costa <[email protected]> |
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
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
from . import test_warehouse_relationship |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Copyright 2022 Foodles (http://www.foodles.co). | ||
# @author Pierre Verkest <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
from odoo.tests.common import SavepointCase | ||
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class TestWarehouseRelationship(SavepointCase): | ||
class TestWarehouseRelationship(TransactionCase): | ||
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
|
@@ -104,10 +104,10 @@ def test_stock_picking_warehouse_id(self): | |
|
||
def test_stock_move_warehouse_id(self): | ||
self.assertEqual( | ||
self.stock_picking_wh_1.move_lines.mapped("warehouse_id"), self.warehouse_1 | ||
self.stock_picking_wh_1.move_ids.mapped("warehouse_id"), self.warehouse_1 | ||
) | ||
self.assertEqual( | ||
self.stock_picking_wh_2.move_lines.mapped("warehouse_id"), self.warehouse_2 | ||
self.stock_picking_wh_2.move_ids.mapped("warehouse_id"), self.warehouse_2 | ||
) | ||
|
||
def test_stock_move_line_warehouse_id(self): | ||
|
@@ -124,7 +124,7 @@ def test_stock_move_line_warehouse_id(self): | |
def test_stock_quant_warehouse_id(self): | ||
pickings = self.stock_picking_wh_1 | self.stock_picking_wh_2 | ||
pickings.action_assign() | ||
pickings.move_lines.write({"quantity_done": 5}) | ||
pickings.move_ids.write({"quantity_done": 5}) | ||
pickings.button_validate() | ||
|
||
self.assertEqual( | ||
|
@@ -180,5 +180,5 @@ def test_create_picking_with_picking_type(self): | |
) | ||
stock_picking.action_assign() | ||
self.assertEqual( | ||
self.stock_picking_wh_2.move_lines.mapped("warehouse_id"), self.warehouse_2 | ||
self.stock_picking_wh_2.move_ids.mapped("warehouse_id"), self.warehouse_2 | ||
) |
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