[MIG] stock_inventory_preparation_filter: Migration to 12.0

This commit is contained in:
xavierpiernas
2019-05-28 09:43:00 +02:00
committed by Sergio Teruel
parent c8205c7891
commit 26e0805f37
3 changed files with 6 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
{
"name": "Extended Inventory Preparation Filters",
"version": "11.0.1.0.0",
"version": "12.0.1.0.0",
"depends": [
"stock",
],

View File

@@ -8,6 +8,7 @@ from odoo.addons import decimal_precision as dp
class StockInventoryEmptyLines(models.Model):
_name = 'stock.inventory.line.empty'
_description = 'Inventory Line Empty'
product_code = fields.Char(
string='Product Code',

View File

@@ -62,28 +62,28 @@ class TestStockInventoryPreparationFilterCategories(common.TransactionCase):
(0, 0, {
'product_id': self.product1.id,
'product_uom_id': self.env.ref(
"product.product_uom_unit").id,
"uom.product_uom_unit").id,
'product_qty': 2.0,
'location_id': self.location.id,
}),
(0, 0, {
'product_id': self.product2.id,
'product_uom_id': self.env.ref(
"product.product_uom_unit").id,
"uom.product_uom_unit").id,
'product_qty': 4.0,
'location_id': self.location.id,
}),
(0, 0, {
'product_id': self.product_lot.id,
'product_uom_id': self.env.ref(
"product.product_uom_unit").id,
"uom.product_uom_unit").id,
'product_qty': 6.0,
'location_id': self.location.id,
'prod_lot_id': self.lot.id,
}),
],
})
inventory.action_done()
inventory._action_done()
def test_inventory_category_filter(self):
inventory = self.inventory_model.create({