mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_inventory_preparation_filter: Migration to 12.0
This commit is contained in:
committed by
Sergio Teruel
parent
c8205c7891
commit
26e0805f37
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
"name": "Extended Inventory Preparation Filters",
|
||||
"version": "11.0.1.0.0",
|
||||
"version": "12.0.1.0.0",
|
||||
"depends": [
|
||||
"stock",
|
||||
],
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user