Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

58 lines
1.8KB

  1. # Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
  2. # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. # List of migrations steps handled by this library
  5. # * init and target name are friendly name used by the user, when calling
  6. # the lib.
  7. # * init and target code are technical code used to name the migration script
  8. # files.
  9. _AVAILABLE_MIGRATION_STEPS = [
  10. {
  11. "init_version_name": "8.0",
  12. "target_version_name": "9.0",
  13. "init_version_code": "080",
  14. "target_version_code": "090",
  15. }, {
  16. "init_version_name": "9.0",
  17. "target_version_name": "10.0",
  18. "init_version_code": "090",
  19. "target_version_code": "100",
  20. }, {
  21. "init_version_name": "10.0",
  22. "target_version_name": "11.0",
  23. "init_version_code": "100",
  24. "target_version_code": "110",
  25. }, {
  26. "init_version_name": "11.0",
  27. "target_version_name": "12.0",
  28. "init_version_code": "110",
  29. "target_version_code": "120",
  30. }, {
  31. "init_version_name": "12.0",
  32. "target_version_name": "13.0",
  33. "init_version_code": "120",
  34. "target_version_code": "130",
  35. }, {
  36. "init_version_name": "13.0",
  37. "target_version_name": "14.0",
  38. "init_version_code": "130",
  39. "target_version_code": "140",
  40. }, {
  41. "init_version_name": "14.0",
  42. "target_version_name": "15.0",
  43. "init_version_code": "140",
  44. "target_version_code": "150",
  45. }, {
  46. "init_version_name": "15.0",
  47. "target_version_name": "16.0",
  48. "init_version_code": "150",
  49. "target_version_code": "160",
  50. },
  51. ]
  52. _ALLOWED_EXTENSIONS = [".py", ".xml", ".js"]
  53. _MANIFEST_NAMES = ["__openerp__.py", "__manifest__.py"]
上海开阖软件有限公司 沪ICP备12045867号-1