Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion stock_return_request/tests/test_stock_return_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_01_return_request_to_customer_with_lot(self):
picking_customer_lot = self.picking_obj.create(
{
"partner_id": self.partner_customer.id,
"picking_type_id": self.wh1.out_type_id.id,
"picking_type_id": self.picking_type_out.id,
"move_ids": [
Command.create(
{
Expand Down
24 changes: 22 additions & 2 deletions stock_return_request/tests/test_stock_return_request_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,26 @@ def setUpClass(cls):
"company_id": cls.company.id,
}
)
cls.picking_type_in = cls.env["stock.picking.type"].create(
{
"name": "pick type in",
"sequence_code": "1",
"code": "incoming",
"company_id": cls.company.id,
"warehouse_id": cls.wh1.id,
}
)
cls.picking_type_out = cls.env["stock.picking.type"].create(
{
"name": "pick type out",
"sequence_code": "2",
"code": "outgoing",
"company_id": cls.company.id,
"warehouse_id": cls.wh1.id,
}
)
cls.picking_type_in.return_picking_type_id = cls.picking_type_out
cls.picking_type_out.return_picking_type_id = cls.picking_type_in
# Locations (WH1 locations are created automatically)
location_obj = cls.env["stock.location"]
cls.supplier_loc = location_obj.create(
Expand Down Expand Up @@ -118,7 +138,7 @@ def setUpClass(cls):
"location_dest_id": cls.wh1.lot_stock_id.id,
"partner_id": cls.partner_supplier.id,
"company_id": cls.company.id,
"picking_type_id": cls.wh1.in_type_id.id,
"picking_type_id": cls.picking_type_in.id,
"move_ids": [
Command.create(
{
Expand Down Expand Up @@ -294,7 +314,7 @@ def setUpClass(cls):
"location_dest_id": cls.customer_loc.id,
"company_id": cls.company.id,
"partner_id": cls.partner_customer.id,
"picking_type_id": cls.wh1.out_type_id.id,
"picking_type_id": cls.picking_type_out.id,
"move_ids": [
Command.create(
{
Expand Down
Loading