[FIX] Travis

This commit is contained in:
Pedro M. Baeza
2014-09-28 18:45:28 +02:00
parent 60cbd6b79d
commit 51d7e10a43
3 changed files with 9 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ with product code and quantity
""",
"data": [
"views/stock_inventory_view.xml",
"security/ir.model.access.csv",
],
"installable": True,
"auto_install": False,

View File

@@ -49,15 +49,13 @@ class StockInventory(orm.Model):
_inherit = 'stock.inventory'
def _get_available_filters(self, cr, uid, context=None):
"""
This function will return the list of filter allowed according to
the options checked in 'Settings\Warehouse'.
"""This function will return the list of filter allowed according to
the options checked in 'Settings\Warehouse'.
:rtype: list of tuple
:return: list of tuple
"""
res_filter = super(StockInventory,
self)._get_available_filters(cr, uid,
context=context)
res_filter = super(StockInventory, self)._get_available_filters(
cr, uid, context=context)
res_filter.append(('categories', _('Selected Categories')))
res_filter.append(('products', _('Selected Products')))
for filter in res_filter:

View File

@@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_stock_inventory_line_empty_user,access_stock_inventory_line_empty_user,model_stock_inventory_line_empty,stock.group_stock_user,1,0,0,0
access_stock_inventory_line_empty_manager,access_stock_inventory_line_empty_manager,model_stock_inventory_line_empty,stock.group_stock_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_stock_inventory_line_empty_user access_stock_inventory_line_empty_user model_stock_inventory_line_empty stock.group_stock_user 1 0 0 0
3 access_stock_inventory_line_empty_manager access_stock_inventory_line_empty_manager model_stock_inventory_line_empty stock.group_stock_manager 1 1 1 1