From 7747600fc154e223b6474cccd3e65eef9df4dffb Mon Sep 17 00:00:00 2001 From: Kitti U Date: Thu, 27 Jun 2019 17:21:46 +0700 Subject: [PATCH] [12.0][MIG] stock_request_kanban --- stock_request_kanban/__manifest__.py | 2 +- stock_request_kanban/readme/CONTRIBUTORS.rst | 1 + stock_request_kanban/tests/test_kanban.py | 8 ++++---- .../views/stock_inventory_kanban_views.xml | 2 +- stock_request_kanban/views/stock_request_kanban_views.xml | 8 ++++---- .../wizard/wizard_stock_request_order_kanban.py | 3 ++- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/stock_request_kanban/__manifest__.py b/stock_request_kanban/__manifest__.py index 0a3eb4813..162355651 100644 --- a/stock_request_kanban/__manifest__.py +++ b/stock_request_kanban/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'Stock Request kanban', - 'version': '11.0.1.2.0', + 'version': '12.0.1.0.0', 'category': 'Reporting', 'website': 'https://github.com/OCA/stock-logistics-warehouse', 'author': 'Creu Blanca, Eficent, Odoo Community Association (OCA)', diff --git a/stock_request_kanban/readme/CONTRIBUTORS.rst b/stock_request_kanban/readme/CONTRIBUTORS.rst index 93ec993e0..ed1b3be4a 100644 --- a/stock_request_kanban/readme/CONTRIBUTORS.rst +++ b/stock_request_kanban/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Enric Tobella +* Kitti Upariphutthiphong diff --git a/stock_request_kanban/tests/test_kanban.py b/stock_request_kanban/tests/test_kanban.py index 4a44eac64..5c28639f0 100644 --- a/stock_request_kanban/tests/test_kanban.py +++ b/stock_request_kanban/tests/test_kanban.py @@ -12,7 +12,7 @@ class TestKanban(TestBaseKanban): super().setUp() self.main_company = self.env.ref('base.main_company') self.warehouse = self.env.ref('stock.warehouse0') - self.categ_unit = self.env.ref('product.product_uom_categ_unit') + self.categ_unit = self.env.ref('uom.product_uom_categ_unit') # common data self.company_2 = self.env['res.company'].create({ @@ -42,19 +42,19 @@ class TestKanban(TestBaseKanban): 'route_ids': [(4, self.route.id)], 'company_id': False, }) - self.uom_dozen = self.env['product.uom'].create({ + self.uom_dozen = self.env['uom.uom'].create({ 'name': 'Test-DozenA', 'category_id': self.categ_unit.id, 'factor_inv': 12, 'uom_type': 'bigger', 'rounding': 0.001}) - self.env['procurement.rule'].create({ + self.env['stock.rule'].create({ 'name': 'Transfer', 'route_id': self.route.id, 'location_src_id': self.ressuply_loc.id, 'location_id': self.warehouse.lot_stock_id.id, - 'action': 'move', + 'action': 'pull_push', 'picking_type_id': self.warehouse.int_type_id.id, 'procure_method': 'make_to_stock', 'warehouse_id': self.warehouse.id, diff --git a/stock_request_kanban/views/stock_inventory_kanban_views.xml b/stock_request_kanban/views/stock_inventory_kanban_views.xml index 879134b44..6833dbc1c 100644 --- a/stock_request_kanban/views/stock_inventory_kanban_views.xml +++ b/stock_request_kanban/views/stock_inventory_kanban_views.xml @@ -50,7 +50,7 @@ />
-