Skip to content

Commit

Permalink
[MIG] stock_picking_send_by_mail: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-xtendoo committed May 12, 2022
1 parent 792a95e commit 607f1af
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions setup/stock_picking_send_by_mail/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
5 changes: 3 additions & 2 deletions stock_picking_send_by_mail/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
{
"name": "Stock Picking by Mail",
"summary": "Send stock picking by email",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"author": "Sandra Figueroa Varela, "
"Tecnativa, "
"Odoo Community Association (OCA)",
"Odoo Community Association (OCA), "
"Daniel Domínguez (Xtendoo)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"category": "Warehouse Management",
"license": "AGPL-3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ class TestStockPickingSendByMail(common.SavepointCase):
def setUpClass(cls):
super(TestStockPickingSendByMail, cls).setUpClass()
cls.product = cls.env["product.product"].create({"name": "Test product"})
cls.location_id = cls.env.ref("stock.stock_location_stock")
cls.location_destination_id = cls.env.ref("stock.stock_location_customers")
cls.picking_type = cls.env.ref("stock.picking_type_out")
cls.picking = cls.env["stock.picking"].create(
{
"picking_type_id": cls.picking_type.id,
"location_id": cls.picking_type.default_location_src_id.id,
"location_dest_id": cls.picking_type.default_location_src_id.id,
"location_id": cls.location_id.id,
"location_dest_id": cls.location_destination_id.id,
"move_lines": [
(
0,
Expand All @@ -23,6 +25,8 @@ def setUpClass(cls):
"name": cls.product.name,
"product_id": cls.product.id,
"product_uom": cls.product.uom_id.id,
"location_id": cls.location_id.id,
"location_dest_id": cls.location_destination_id.id,
},
)
],
Expand Down

0 comments on commit 607f1af

Please sign in to comment.