Skip to content

Commit

Permalink
[MIG] stock_inventory_preparation_filter: Migration to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierpiernas committed May 28, 2019
1 parent b206338 commit 469dc53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stock_inventory_preparation_filter/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Extended Inventory Preparation Filters",
"version": "11.0.1.0.0",
"version": "12.0.1.0.0",
"depends": [
"stock",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

class StockInventoryEmptyLines(models.Model):
_name = 'stock.inventory.line.empty'
_description = 'Inventory Line Empty'

product_code = fields.Char(
string='Product Code',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,28 @@ def setUp(self):
(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({
Expand Down

0 comments on commit 469dc53

Please sign in to comment.