__manifest__.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- coding: utf-8 -*-
  2. {
  3. 'name': "cat_app",
  4. 'summary': """
  5. Short (1 phrase/line) summary of the module's purpose, used as
  6. subtitle on modules listing or apps.openerp.com""",
  7. 'description': """
  8. Long description of module's purpose
  9. """,
  10. 'author': "zzry",
  11. 'website': "http://www.yourcompany.com",
  12. # Categories can be used to filter modules in modules listing
  13. # Check https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/data/ir_module_category_data.xml
  14. # for the full list
  15. 'category': 'Uncategorized',
  16. 'version': '0.1',
  17. # any module necessary for this one to work correctly
  18. 'depends': ['base'],
  19. # always loaded
  20. # 视图文件通常在权限文件之后
  21. 'data': [
  22. 'views/views.xml',
  23. 'views/templates.xml',
  24. "security/library_security.xml",
  25. 'security/ir.model.access.csv',
  26. 'views/library_menu.xml',
  27. 'views/book_view.xml',
  28. "views/book_list_template.xml",
  29. ],
  30. # 加载静态资源
  31. # 'assets': {
  32. # 'web.assets_backend': [
  33. # 'css/custom_styles.css',
  34. # ],
  35. # },
  36. # only loaded in demonstration mode
  37. 'demo': [
  38. 'demo/demo.xml',
  39. ],
  40. #是否可安装(设置为False则前端无法搜索到)
  41. 'installable': True,
  42. #是否自动安装(在depends参数的模块都安装完成之后,自动安装本模块)
  43. 'auto_install': False,
  44. 'application': True, # 如果是应用,设置为 True
  45. }