'INV / Inventory'

@staticmethod
def inv():

    ADMIN = current.session.s3.system_roles.ADMIN
    current.s3db.inv_recv_crud_strings()
    inv_recv_list = current.response.s3.crud_strings.inv_recv.title_list
    settings = current.deployment_settings
    use_adjust = (lambda i: (not settings.get_inv_direct_stock_edits()))
    use_commit = (lambda i: settings.get_req_use_commit())
    return M()(M('Warehouses', c='inv', f='warehouse')(M('Create', m='create'), M('Import', m='import', p='create')), M('Warehouse    Stock', c='inv', f='inv_item')(M('Adjust    Stock    Levels', f='adj', check=use_adjust), M('Kitting', f='kitting'), M('Import', f='inv_item', m='import', p='create')), M('Reports', c='inv', f='inv_item')(M('Warehouse    Stock', f='inv_item', m='report'), M('Expiration    Report', c='inv', f='track_item', vars=dict(report='exp')), M('Monetization    Report', c='inv', f='inv_item', vars=dict(report='mon')), M('Utilization    Report', c='inv', f='track_item', vars=dict(report='util')), M('Summary    of    Incoming    Supplies', c='inv', f='track_item', vars=dict(report='inc')), M('Summary    of    Releases', c='inv', f='track_item', vars=dict(report='rel'))), M(inv_recv_list, c='inv', f='recv', translate=False)(M('Create', m='create'), M('Timeline', args='timeline')), M('Sent    Shipments', c='inv', f='send')(M('Create', m='create'), M('Search    Shipped    Items', f='track_item'), M('Timeline', args='timeline')), M('Items', c='supply', f='item', m='summary')(M('Create', m='create'), M('Import', f='catalog_item', m='import', p='create')), M('Catalogs', c='supply', f='catalog')(M('Create', m='create')), M('Item    Categories', c='supply', f='item_category', restrict=[ADMIN])(M('Create', m='create')), M('Suppliers', c='inv', f='supplier')(M('Create', m='create'), M('Import', m='import', p='create')), M('Facilities', c='inv', f='facility')(M('Create', m='create', t='org_facility')), M('Facility    Types', c='inv', f='facility_type', restrict=[ADMIN])(M('Create', m='create')), M('Warehouse    Types', c='inv', f='warehouse_type', restrict=[ADMIN])(M('Create', m='create')), M('Requests', c='req', f='req')(M('Create', m='create'), M('Requested    Items', f='req_item')), M('Commitments', c='req', f='commit', check=use_commit)())
