├── .copier-answers.yml
├── .editorconfig
├── .github
└── workflows
│ ├── pre-commit.yml
│ ├── stale.yml
│ └── test.yml
├── .gitignore
├── .pre-commit-config.yaml
├── .pylintrc
├── .pylintrc-mandatory
├── .ruff.toml
├── LICENSE
├── README.md
├── checklog-odoo.cfg
├── eslint.config.cjs
└── prettier.config.cjs
/.copier-answers.yml:
--------------------------------------------------------------------------------
1 | # Do NOT update manually; changes here will be overwritten by Copier
2 | _commit: v1.29
3 | _src_path: git+https://github.com/OCA/oca-addons-repo-template
4 | additional_ruff_rules: []
5 | ci: GitHub
6 | convert_readme_fragments_to_markdown: true
7 | enable_checklog_odoo: true
8 | generate_requirements_txt: true
9 | github_check_license: true
10 | github_ci_extra_env: {}
11 | github_enable_codecov: true
12 | github_enable_makepot: true
13 | github_enable_stale_action: true
14 | github_enforce_dev_status_compatibility: true
15 | include_wkhtmltopdf: false
16 | odoo_test_flavor: Both
17 | odoo_version: 18.0
18 | org_name: Odoo Community Association (OCA)
19 | org_slug: OCA
20 | rebel_module_groups: []
21 | repo_description: project-agile
22 | repo_name: project-agile
23 | repo_slug: project-agile
24 | repo_website: https://github.com/OCA/project-agile
25 | use_pyproject_toml: true
26 | use_ruff: true
27 |
28 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # Configuration for known file extensions
2 | [*.{css,js,json,less,md,py,rst,sass,scss,xml,yaml,yml}]
3 | charset = utf-8
4 | end_of_line = lf
5 | indent_size = 4
6 | indent_style = space
7 | insert_final_newline = true
8 | trim_trailing_whitespace = true
9 |
10 | [*.{json,yml,yaml,rst,md}]
11 | indent_size = 2
12 |
13 | # Do not configure editor for libs and autogenerated content
14 | [{*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst}]
15 | charset = unset
16 | end_of_line = unset
17 | indent_size = unset
18 | indent_style = unset
19 | insert_final_newline = false
20 | trim_trailing_whitespace = false
21 |
--------------------------------------------------------------------------------
/.github/workflows/pre-commit.yml:
--------------------------------------------------------------------------------
1 | name: pre-commit
2 |
3 | on:
4 | pull_request:
5 | branches:
6 | - "18.0*"
7 | push:
8 | branches:
9 | - "18.0"
10 | - "18.0-ocabot-*"
11 |
12 | jobs:
13 | pre-commit:
14 | runs-on: ubuntu-22.04
15 | steps:
16 | - uses: actions/checkout@v4
17 | - uses: actions/setup-python@v5
18 | with:
19 | python-version: "3.11"
20 | - name: Get python version
21 | run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22 | - uses: actions/cache@v4
23 | with:
24 | path: ~/.cache/pre-commit
25 | key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
26 | - name: Install pre-commit
27 | run: pip install pre-commit
28 | - name: Run pre-commit
29 | run: pre-commit run --all-files --show-diff-on-failure --color=always
30 | env:
31 | # Consider valid a PR that changes README fragments but doesn't
32 | # change the README.rst file itself. It's not really a problem
33 | # because the bot will update it anyway after merge. This way, we
34 | # lower the barrier for functional contributors that want to fix the
35 | # readme fragments, while still letting developers get README
36 | # auto-generated (which also helps functionals when using runboat).
37 | # DOCS https://pre-commit.com/#temporarily-disabling-hooks
38 | SKIP: oca-gen-addon-readme
39 | - name: Check that all files generated by pre-commit are in git
40 | run: |
41 | newfiles="$(git ls-files --others --exclude-from=.gitignore)"
42 | if [ "$newfiles" != "" ] ; then
43 | echo "Please check-in the following files:"
44 | echo "$newfiles"
45 | exit 1
46 | fi
47 |
--------------------------------------------------------------------------------
/.github/workflows/stale.yml:
--------------------------------------------------------------------------------
1 | name: Mark stale issues and pull requests
2 |
3 | on:
4 | schedule:
5 | - cron: "0 12 * * 0"
6 |
7 | jobs:
8 | stale:
9 | runs-on: ubuntu-latest
10 | steps:
11 | - name: Stale PRs and issues policy
12 | uses: actions/stale@v9
13 | with:
14 | repo-token: ${{ secrets.GITHUB_TOKEN }}
15 | # General settings.
16 | ascending: true
17 | remove-stale-when-updated: true
18 | # Pull Requests settings.
19 | # 120+30 day stale policy for PRs
20 | # * Except PRs marked as "no stale"
21 | days-before-pr-stale: 120
22 | days-before-pr-close: 30
23 | exempt-pr-labels: "no stale"
24 | stale-pr-label: "stale"
25 | stale-pr-message: >
26 | There hasn't been any activity on this pull request in the past 4 months, so
27 | it has been marked as stale and it will be closed automatically if no
28 | further activity occurs in the next 30 days.
29 |
30 | If you want this PR to never become stale, please ask a PSC member to apply
31 | the "no stale" label.
32 | # Issues settings.
33 | # 180+30 day stale policy for open issues
34 | # * Except Issues marked as "no stale"
35 | days-before-issue-stale: 180
36 | days-before-issue-close: 30
37 | exempt-issue-labels: "no stale,needs more information"
38 | stale-issue-label: "stale"
39 | stale-issue-message: >
40 | There hasn't been any activity on this issue in the past 6 months, so it has
41 | been marked as stale and it will be closed automatically if no further
42 | activity occurs in the next 30 days.
43 |
44 | If you want this issue to never become stale, please ask a PSC member to
45 | apply the "no stale" label.
46 |
47 | # 15+30 day stale policy for issues pending more information
48 | # * Issues that are pending more information
49 | # * Except Issues marked as "no stale"
50 | - name: Needs more information stale issues policy
51 | uses: actions/stale@v9
52 | with:
53 | repo-token: ${{ secrets.GITHUB_TOKEN }}
54 | ascending: true
55 | only-labels: "needs more information"
56 | exempt-issue-labels: "no stale"
57 | days-before-stale: 15
58 | days-before-close: 30
59 | days-before-pr-stale: -1
60 | days-before-pr-close: -1
61 | remove-stale-when-updated: true
62 | stale-issue-label: "stale"
63 | stale-issue-message: >
64 | This issue needs more information and there hasn't been any activity
65 | recently, so it has been marked as stale and it will be closed automatically
66 | if no further activity occurs in the next 30 days.
67 |
68 | If you think this is a mistake, please ask a PSC member to remove the "needs
69 | more information" label.
70 |
--------------------------------------------------------------------------------
/.github/workflows/test.yml:
--------------------------------------------------------------------------------
1 | name: tests
2 |
3 | on:
4 | pull_request:
5 | branches:
6 | - "18.0*"
7 | push:
8 | branches:
9 | - "18.0"
10 | - "18.0-ocabot-*"
11 |
12 | jobs:
13 | unreleased-deps:
14 | runs-on: ubuntu-latest
15 | name: Detect unreleased dependencies
16 | steps:
17 | - uses: actions/checkout@v4
18 | - run: |
19 | for reqfile in requirements.txt test-requirements.txt ; do
20 | if [ -f ${reqfile} ] ; then
21 | result=0
22 | # reject non-comment lines that contain a / (i.e. URLs, relative paths)
23 | grep "^[^#].*/" ${reqfile} || result=$?
24 | if [ $result -eq 0 ] ; then
25 | echo "Unreleased dependencies found in ${reqfile}."
26 | exit 1
27 | fi
28 | fi
29 | done
30 | test:
31 | runs-on: ubuntu-22.04
32 | container: ${{ matrix.container }}
33 | name: ${{ matrix.name }}
34 | strategy:
35 | fail-fast: false
36 | matrix:
37 | include:
38 | - container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
39 | name: test with Odoo
40 | - container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
41 | name: test with OCB
42 | makepot: "true"
43 | services:
44 | postgres:
45 | image: postgres:12.0
46 | env:
47 | POSTGRES_USER: odoo
48 | POSTGRES_PASSWORD: odoo
49 | POSTGRES_DB: odoo
50 | ports:
51 | - 5432:5432
52 | env:
53 | OCA_ENABLE_CHECKLOG_ODOO: "1"
54 | steps:
55 | - uses: actions/checkout@v4
56 | with:
57 | persist-credentials: false
58 | - name: Install addons and dependencies
59 | run: oca_install_addons
60 | - name: Check licenses
61 | run: manifestoo -d . check-licenses
62 | - name: Check development status
63 | run: manifestoo -d . check-dev-status --default-dev-status=Beta
64 | - name: Initialize test db
65 | run: oca_init_test_database
66 | - name: Run tests
67 | run: oca_run_tests
68 | - uses: codecov/codecov-action@v4
69 | with:
70 | token: ${{ secrets.CODECOV_TOKEN }}
71 | - name: Update .pot files
72 | run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
73 | if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
74 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 | *.py[cod]
4 | /.venv
5 | /.pytest_cache
6 | /.ruff_cache
7 |
8 | # C extensions
9 | *.so
10 |
11 | # Distribution / packaging
12 | .Python
13 | env/
14 | bin/
15 | build/
16 | develop-eggs/
17 | dist/
18 | eggs/
19 | lib64/
20 | parts/
21 | sdist/
22 | var/
23 | *.egg-info/
24 | .installed.cfg
25 | *.egg
26 | *.eggs
27 |
28 | # Windows installers
29 | *.msi
30 |
31 | # Debian packages
32 | *.deb
33 |
34 | # Redhat packages
35 | *.rpm
36 |
37 | # MacOS packages
38 | *.dmg
39 | *.pkg
40 |
41 | # Installer logs
42 | pip-log.txt
43 | pip-delete-this-directory.txt
44 |
45 | # Unit test / coverage reports
46 | htmlcov/
47 | .tox/
48 | .coverage
49 | .cache
50 | nosetests.xml
51 | coverage.xml
52 |
53 | # Translations
54 | *.mo
55 |
56 | # Pycharm
57 | .idea
58 |
59 | # Eclipse
60 | .settings
61 |
62 | # Visual Studio cache/options directory
63 | .vs/
64 | .vscode
65 |
66 | # OSX Files
67 | .DS_Store
68 |
69 | # Django stuff:
70 | *.log
71 |
72 | # Mr Developer
73 | .mr.developer.cfg
74 | .project
75 | .pydevproject
76 |
77 | # Rope
78 | .ropeproject
79 |
80 | # Sphinx documentation
81 | docs/_build/
82 |
83 | # Backup files
84 | *~
85 | *.swp
86 |
87 | # OCA rules
88 | !static/lib/
89 |
--------------------------------------------------------------------------------
/.pre-commit-config.yaml:
--------------------------------------------------------------------------------
1 | exclude: |
2 | (?x)
3 | # NOT INSTALLABLE ADDONS
4 | # END NOT INSTALLABLE ADDONS
5 | # Files and folders generated by bots, to avoid loops
6 | ^setup/|/static/description/index\.html$|
7 | # We don't want to mess with tool-generated files
8 | .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
9 | # Maybe reactivate this when all README files include prettier ignore tags?
10 | ^README\.md$|
11 | # Library files can have extraneous formatting (even minimized)
12 | /static/(src/)?lib/|
13 | # Repos using Sphinx to generate docs don't need prettying
14 | ^docs/_templates/.*\.html$|
15 | # Don't bother non-technical authors with formatting issues in docs
16 | readme/.*\.(rst|md)$|
17 | # Ignore build and dist directories in addons
18 | /build/|/dist/|
19 | # Ignore test files in addons
20 | /tests/samples/.*|
21 | # You don't usually want a bot to modify your legal texts
22 | (LICENSE.*|COPYING.*)
23 | default_language_version:
24 | python: python3
25 | node: "22.9.0"
26 | repos:
27 | - repo: local
28 | hooks:
29 | # These files are most likely copier diff rejection junks; if found,
30 | # review them manually, fix the problem (if needed) and remove them
31 | - id: forbidden-files
32 | name: forbidden files
33 | entry: found forbidden files; remove them
34 | language: fail
35 | files: "\\.rej$"
36 | - id: en-po-files
37 | name: en.po files cannot exist
38 | entry: found a en.po file
39 | language: fail
40 | files: '[a-zA-Z0-9_]*/i18n/en\.po$'
41 | - repo: https://github.com/sbidoul/whool
42 | rev: v1.2
43 | hooks:
44 | - id: whool-init
45 | - repo: https://github.com/oca/maintainer-tools
46 | rev: bf9ecb9938b6a5deca0ff3d870fbd3f33341fded
47 | hooks:
48 | # update the NOT INSTALLABLE ADDONS section above
49 | - id: oca-update-pre-commit-excluded-addons
50 | - id: oca-fix-manifest-website
51 | args: ["https://github.com/OCA/project-agile"]
52 | - id: oca-gen-addon-readme
53 | args:
54 | - --addons-dir=.
55 | - --branch=18.0
56 | - --org-name=OCA
57 | - --repo-name=project-agile
58 | - --if-source-changed
59 | - --keep-source-digest
60 | - --convert-fragments-to-markdown
61 | - id: oca-gen-external-dependencies
62 | - repo: https://github.com/OCA/odoo-pre-commit-hooks
63 | rev: v0.0.33
64 | hooks:
65 | - id: oca-checks-odoo-module
66 | - id: oca-checks-po
67 | args:
68 | - --disable=po-pretty-format
69 | - repo: local
70 | hooks:
71 | - id: prettier
72 | name: prettier (with plugin-xml)
73 | entry: prettier
74 | args:
75 | - --write
76 | - --list-different
77 | - --ignore-unknown
78 | types: [text]
79 | files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
80 | language: node
81 | additional_dependencies:
82 | - "prettier@3.3.3"
83 | - "@prettier/plugin-xml@3.4.1"
84 | - repo: local
85 | hooks:
86 | - id: eslint
87 | name: eslint
88 | entry: eslint
89 | args:
90 | - --color
91 | - --fix
92 | verbose: true
93 | types: [javascript]
94 | language: node
95 | additional_dependencies:
96 | - "eslint@9.12.0"
97 | - "eslint-plugin-jsdoc@50.3.1"
98 | - repo: https://github.com/pre-commit/pre-commit-hooks
99 | rev: v4.6.0
100 | hooks:
101 | - id: trailing-whitespace
102 | # exclude autogenerated files
103 | exclude: /README\.rst$|\.pot?$
104 | - id: end-of-file-fixer
105 | # exclude autogenerated files
106 | exclude: /README\.rst$|\.pot?$
107 | - id: debug-statements
108 | - id: fix-encoding-pragma
109 | args: ["--remove"]
110 | - id: check-case-conflict
111 | - id: check-docstring-first
112 | - id: check-executables-have-shebangs
113 | - id: check-merge-conflict
114 | # exclude files where underlines are not distinguishable from merge conflicts
115 | exclude: /README\.rst$|^docs/.*\.rst$
116 | - id: check-symlinks
117 | - id: check-xml
118 | - id: mixed-line-ending
119 | args: ["--fix=lf"]
120 | - repo: https://github.com/astral-sh/ruff-pre-commit
121 | rev: v0.6.8
122 | hooks:
123 | - id: ruff
124 | args: [--fix, --exit-non-zero-on-fix]
125 | - id: ruff-format
126 | - repo: https://github.com/OCA/pylint-odoo
127 | rev: v9.1.3
128 | hooks:
129 | - id: pylint_odoo
130 | name: pylint with optional checks
131 | args:
132 | - --rcfile=.pylintrc
133 | - --exit-zero
134 | verbose: true
135 | - id: pylint_odoo
136 | args:
137 | - --rcfile=.pylintrc-mandatory
138 |
--------------------------------------------------------------------------------
/.pylintrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | [MASTER]
4 | load-plugins=pylint_odoo
5 | score=n
6 |
7 | [ODOOLINT]
8 | readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
9 | manifest-required-authors=Odoo Community Association (OCA)
10 | manifest-required-keys=license
11 | manifest-deprecated-keys=description,active
12 | license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
13 | valid-odoo-versions=18.0
14 |
15 | [MESSAGES CONTROL]
16 | disable=all
17 |
18 | # This .pylintrc contains optional AND mandatory checks and is meant to be
19 | # loaded in an IDE to have it check everything, in the hope this will make
20 | # optional checks more visible to contributors who otherwise never look at a
21 | # green travis to see optional checks that failed.
22 | # .pylintrc-mandatory containing only mandatory checks is used the pre-commit
23 | # config as a blocking check.
24 |
25 | enable=anomalous-backslash-in-string,
26 | api-one-deprecated,
27 | api-one-multi-together,
28 | assignment-from-none,
29 | attribute-deprecated,
30 | class-camelcase,
31 | dangerous-default-value,
32 | dangerous-view-replace-wo-priority,
33 | development-status-allowed,
34 | duplicate-id-csv,
35 | duplicate-key,
36 | duplicate-xml-fields,
37 | duplicate-xml-record-id,
38 | eval-referenced,
39 | eval-used,
40 | incoherent-interpreter-exec-perm,
41 | license-allowed,
42 | manifest-author-string,
43 | manifest-deprecated-key,
44 | manifest-required-author,
45 | manifest-required-key,
46 | manifest-version-format,
47 | method-compute,
48 | method-inverse,
49 | method-required-super,
50 | method-search,
51 | openerp-exception-warning,
52 | pointless-statement,
53 | pointless-string-statement,
54 | print-used,
55 | redundant-keyword-arg,
56 | redundant-modulename-xml,
57 | reimported,
58 | relative-import,
59 | return-in-init,
60 | rst-syntax-error,
61 | sql-injection,
62 | too-few-format-args,
63 | translation-field,
64 | translation-required,
65 | unreachable,
66 | use-vim-comment,
67 | wrong-tabs-instead-of-spaces,
68 | xml-syntax-error,
69 | attribute-string-redundant,
70 | character-not-valid-in-resource-link,
71 | consider-merging-classes-inherited,
72 | context-overridden,
73 | create-user-wo-reset-password,
74 | dangerous-filter-wo-user,
75 | dangerous-qweb-replace-wo-priority,
76 | deprecated-data-xml-node,
77 | deprecated-openerp-xml-node,
78 | duplicate-po-message-definition,
79 | except-pass,
80 | file-not-used,
81 | invalid-commit,
82 | manifest-maintainers-list,
83 | missing-newline-extrafiles,
84 | missing-readme,
85 | missing-return,
86 | odoo-addons-relative-import,
87 | old-api7-method-defined,
88 | po-msgstr-variables,
89 | po-syntax-error,
90 | renamed-field-parameter,
91 | resource-not-exist,
92 | str-format-used,
93 | test-folder-imported,
94 | translation-contains-variable,
95 | translation-positional-used,
96 | unnecessary-utf8-coding-comment,
97 | website-manifest-key-not-valid-uri,
98 | xml-attribute-translatable,
99 | xml-deprecated-qweb-directive,
100 | xml-deprecated-tree-attribute,
101 | external-request-timeout,
102 | # messages that do not cause the lint step to fail
103 | consider-merging-classes-inherited,
104 | create-user-wo-reset-password,
105 | dangerous-filter-wo-user,
106 | deprecated-module,
107 | file-not-used,
108 | invalid-commit,
109 | missing-manifest-dependency,
110 | missing-newline-extrafiles,
111 | missing-readme,
112 | no-utf8-coding-comment,
113 | odoo-addons-relative-import,
114 | old-api7-method-defined,
115 | redefined-builtin,
116 | too-complex,
117 | unnecessary-utf8-coding-comment
118 |
119 |
120 | [REPORTS]
121 | msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
122 | output-format=colorized
123 | reports=no
124 |
--------------------------------------------------------------------------------
/.pylintrc-mandatory:
--------------------------------------------------------------------------------
1 |
2 | [MASTER]
3 | load-plugins=pylint_odoo
4 | score=n
5 |
6 | [ODOOLINT]
7 | readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
8 | manifest-required-authors=Odoo Community Association (OCA)
9 | manifest-required-keys=license
10 | manifest-deprecated-keys=description,active
11 | license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
12 | valid-odoo-versions=18.0
13 |
14 | [MESSAGES CONTROL]
15 | disable=all
16 |
17 | enable=anomalous-backslash-in-string,
18 | api-one-deprecated,
19 | api-one-multi-together,
20 | assignment-from-none,
21 | attribute-deprecated,
22 | class-camelcase,
23 | dangerous-default-value,
24 | dangerous-view-replace-wo-priority,
25 | development-status-allowed,
26 | duplicate-id-csv,
27 | duplicate-key,
28 | duplicate-xml-fields,
29 | duplicate-xml-record-id,
30 | eval-referenced,
31 | eval-used,
32 | incoherent-interpreter-exec-perm,
33 | license-allowed,
34 | manifest-author-string,
35 | manifest-deprecated-key,
36 | manifest-required-author,
37 | manifest-required-key,
38 | manifest-version-format,
39 | method-compute,
40 | method-inverse,
41 | method-required-super,
42 | method-search,
43 | openerp-exception-warning,
44 | pointless-statement,
45 | pointless-string-statement,
46 | print-used,
47 | redundant-keyword-arg,
48 | redundant-modulename-xml,
49 | reimported,
50 | relative-import,
51 | return-in-init,
52 | rst-syntax-error,
53 | sql-injection,
54 | too-few-format-args,
55 | translation-field,
56 | translation-required,
57 | unreachable,
58 | use-vim-comment,
59 | wrong-tabs-instead-of-spaces,
60 | xml-syntax-error,
61 | attribute-string-redundant,
62 | character-not-valid-in-resource-link,
63 | consider-merging-classes-inherited,
64 | context-overridden,
65 | create-user-wo-reset-password,
66 | dangerous-filter-wo-user,
67 | dangerous-qweb-replace-wo-priority,
68 | deprecated-data-xml-node,
69 | deprecated-openerp-xml-node,
70 | duplicate-po-message-definition,
71 | except-pass,
72 | file-not-used,
73 | invalid-commit,
74 | manifest-maintainers-list,
75 | missing-newline-extrafiles,
76 | missing-readme,
77 | missing-return,
78 | odoo-addons-relative-import,
79 | old-api7-method-defined,
80 | po-msgstr-variables,
81 | po-syntax-error,
82 | renamed-field-parameter,
83 | resource-not-exist,
84 | str-format-used,
85 | test-folder-imported,
86 | translation-contains-variable,
87 | translation-positional-used,
88 | unnecessary-utf8-coding-comment,
89 | website-manifest-key-not-valid-uri,
90 | xml-attribute-translatable,
91 | xml-deprecated-qweb-directive,
92 | xml-deprecated-tree-attribute,
93 | external-request-timeout
94 |
95 | [REPORTS]
96 | msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
97 | output-format=colorized
98 | reports=no
99 |
--------------------------------------------------------------------------------
/.ruff.toml:
--------------------------------------------------------------------------------
1 |
2 | target-version = "py310"
3 | fix = true
4 |
5 | [lint]
6 | extend-select = [
7 | "B",
8 | "C90",
9 | "E501", # line too long (default 88)
10 | "I", # isort
11 | "UP", # pyupgrade
12 | ]
13 | extend-safe-fixes = ["UP008"]
14 | exclude = ["setup/*"]
15 |
16 | [format]
17 | exclude = ["setup/*"]
18 |
19 | [lint.per-file-ignores]
20 | "__init__.py" = ["F401", "I001"] # ignore unused and unsorted imports in __init__.py
21 | "__manifest__.py" = ["B018"] # useless expression
22 |
23 | [lint.isort]
24 | section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addons", "first-party", "local-folder"]
25 |
26 | [lint.isort.sections]
27 | "odoo" = ["odoo"]
28 | "odoo-addons" = ["odoo.addons"]
29 |
30 | [lint.mccabe]
31 | max-complexity = 16
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 0. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section
207 | 7. This requirement modifies the requirement in section 4 to
208 | "keep intact all notices".
209 |
210 | c) You must license the entire work, as a whole, under this
211 | License to anyone who comes into possession of a copy. This
212 | License will therefore apply, along with any applicable section 7
213 | additional terms, to the whole of the work, and all its parts,
214 | regardless of how they are packaged. This License gives no
215 | permission to license the work in any other way, but it does not
216 | invalidate such permission if you have separately received it.
217 |
218 | d) If the work has interactive user interfaces, each must display
219 | Appropriate Legal Notices; however, if the Program has interactive
220 | interfaces that do not display Appropriate Legal Notices, your
221 | work need not make them do so.
222 |
223 | A compilation of a covered work with other separate and independent
224 | works, which are not by their nature extensions of the covered work,
225 | and which are not combined with it such as to form a larger program,
226 | in or on a volume of a storage or distribution medium, is called an
227 | "aggregate" if the compilation and its resulting copyright are not
228 | used to limit the access or legal rights of the compilation's users
229 | beyond what the individual works permit. Inclusion of a covered work
230 | in an aggregate does not cause this License to apply to the other
231 | parts of the aggregate.
232 |
233 | 6. Conveying Non-Source Forms.
234 |
235 | You may convey a covered work in object code form under the terms
236 | of sections 4 and 5, provided that you also convey the
237 | machine-readable Corresponding Source under the terms of this License,
238 | in one of these ways:
239 |
240 | a) Convey the object code in, or embodied in, a physical product
241 | (including a physical distribution medium), accompanied by the
242 | Corresponding Source fixed on a durable physical medium
243 | customarily used for software interchange.
244 |
245 | b) Convey the object code in, or embodied in, a physical product
246 | (including a physical distribution medium), accompanied by a
247 | written offer, valid for at least three years and valid for as
248 | long as you offer spare parts or customer support for that product
249 | model, to give anyone who possesses the object code either (1) a
250 | copy of the Corresponding Source for all the software in the
251 | product that is covered by this License, on a durable physical
252 | medium customarily used for software interchange, for a price no
253 | more than your reasonable cost of physically performing this
254 | conveying of source, or (2) access to copy the
255 | Corresponding Source from a network server at no charge.
256 |
257 | c) Convey individual copies of the object code with a copy of the
258 | written offer to provide the Corresponding Source. This
259 | alternative is allowed only occasionally and noncommercially, and
260 | only if you received the object code with such an offer, in accord
261 | with subsection 6b.
262 |
263 | d) Convey the object code by offering access from a designated
264 | place (gratis or for a charge), and offer equivalent access to the
265 | Corresponding Source in the same way through the same place at no
266 | further charge. You need not require recipients to copy the
267 | Corresponding Source along with the object code. If the place to
268 | copy the object code is a network server, the Corresponding Source
269 | may be on a different server (operated by you or a third party)
270 | that supports equivalent copying facilities, provided you maintain
271 | clear directions next to the object code saying where to find the
272 | Corresponding Source. Regardless of what server hosts the
273 | Corresponding Source, you remain obligated to ensure that it is
274 | available for as long as needed to satisfy these requirements.
275 |
276 | e) Convey the object code using peer-to-peer transmission, provided
277 | you inform other peers where the object code and Corresponding
278 | Source of the work are being offered to the general public at no
279 | charge under subsection 6d.
280 |
281 | A separable portion of the object code, whose source code is excluded
282 | from the Corresponding Source as a System Library, need not be
283 | included in conveying the object code work.
284 |
285 | A "User Product" is either (1) a "consumer product", which means any
286 | tangible personal property which is normally used for personal, family,
287 | or household purposes, or (2) anything designed or sold for incorporation
288 | into a dwelling. In determining whether a product is a consumer product,
289 | doubtful cases shall be resolved in favor of coverage. For a particular
290 | product received by a particular user, "normally used" refers to a
291 | typical or common use of that class of product, regardless of the status
292 | of the particular user or of the way in which the particular user
293 | actually uses, or expects or is expected to use, the product. A product
294 | is a consumer product regardless of whether the product has substantial
295 | commercial, industrial or non-consumer uses, unless such uses represent
296 | the only significant mode of use of the product.
297 |
298 | "Installation Information" for a User Product means any methods,
299 | procedures, authorization keys, or other information required to install
300 | and execute modified versions of a covered work in that User Product from
301 | a modified version of its Corresponding Source. The information must
302 | suffice to ensure that the continued functioning of the modified object
303 | code is in no case prevented or interfered with solely because
304 | modification has been made.
305 |
306 | If you convey an object code work under this section in, or with, or
307 | specifically for use in, a User Product, and the conveying occurs as
308 | part of a transaction in which the right of possession and use of the
309 | User Product is transferred to the recipient in perpetuity or for a
310 | fixed term (regardless of how the transaction is characterized), the
311 | Corresponding Source conveyed under this section must be accompanied
312 | by the Installation Information. But this requirement does not apply
313 | if neither you nor any third party retains the ability to install
314 | modified object code on the User Product (for example, the work has
315 | been installed in ROM).
316 |
317 | The requirement to provide Installation Information does not include a
318 | requirement to continue to provide support service, warranty, or updates
319 | for a work that has been modified or installed by the recipient, or for
320 | the User Product in which it has been modified or installed. Access to a
321 | network may be denied when the modification itself materially and
322 | adversely affects the operation of the network or violates the rules and
323 | protocols for communication across the network.
324 |
325 | Corresponding Source conveyed, and Installation Information provided,
326 | in accord with this section must be in a format that is publicly
327 | documented (and with an implementation available to the public in
328 | source code form), and must require no special password or key for
329 | unpacking, reading or copying.
330 |
331 | 7. Additional Terms.
332 |
333 | "Additional permissions" are terms that supplement the terms of this
334 | License by making exceptions from one or more of its conditions.
335 | Additional permissions that are applicable to the entire Program shall
336 | be treated as though they were included in this License, to the extent
337 | that they are valid under applicable law. If additional permissions
338 | apply only to part of the Program, that part may be used separately
339 | under those permissions, but the entire Program remains governed by
340 | this License without regard to the additional permissions.
341 |
342 | When you convey a copy of a covered work, you may at your option
343 | remove any additional permissions from that copy, or from any part of
344 | it. (Additional permissions may be written to require their own
345 | removal in certain cases when you modify the work.) You may place
346 | additional permissions on material, added by you to a covered work,
347 | for which you have or can give appropriate copyright permission.
348 |
349 | Notwithstanding any other provision of this License, for material you
350 | add to a covered work, you may (if authorized by the copyright holders of
351 | that material) supplement the terms of this License with terms:
352 |
353 | a) Disclaiming warranty or limiting liability differently from the
354 | terms of sections 15 and 16 of this License; or
355 |
356 | b) Requiring preservation of specified reasonable legal notices or
357 | author attributions in that material or in the Appropriate Legal
358 | Notices displayed by works containing it; or
359 |
360 | c) Prohibiting misrepresentation of the origin of that material, or
361 | requiring that modified versions of such material be marked in
362 | reasonable ways as different from the original version; or
363 |
364 | d) Limiting the use for publicity purposes of names of licensors or
365 | authors of the material; or
366 |
367 | e) Declining to grant rights under trademark law for use of some
368 | trade names, trademarks, or service marks; or
369 |
370 | f) Requiring indemnification of licensors and authors of that
371 | material by anyone who conveys the material (or modified versions of
372 | it) with contractual assumptions of liability to the recipient, for
373 | any liability that these contractual assumptions directly impose on
374 | those licensors and authors.
375 |
376 | All other non-permissive additional terms are considered "further
377 | restrictions" within the meaning of section 10. If the Program as you
378 | received it, or any part of it, contains a notice stating that it is
379 | governed by this License along with a term that is a further
380 | restriction, you may remove that term. If a license document contains
381 | a further restriction but permits relicensing or conveying under this
382 | License, you may add to a covered work material governed by the terms
383 | of that license document, provided that the further restriction does
384 | not survive such relicensing or conveying.
385 |
386 | If you add terms to a covered work in accord with this section, you
387 | must place, in the relevant source files, a statement of the
388 | additional terms that apply to those files, or a notice indicating
389 | where to find the applicable terms.
390 |
391 | Additional terms, permissive or non-permissive, may be stated in the
392 | form of a separately written license, or stated as exceptions;
393 | the above requirements apply either way.
394 |
395 | 8. Termination.
396 |
397 | You may not propagate or modify a covered work except as expressly
398 | provided under this License. Any attempt otherwise to propagate or
399 | modify it is void, and will automatically terminate your rights under
400 | this License (including any patent licenses granted under the third
401 | paragraph of section 11).
402 |
403 | However, if you cease all violation of this License, then your
404 | license from a particular copyright holder is reinstated (a)
405 | provisionally, unless and until the copyright holder explicitly and
406 | finally terminates your license, and (b) permanently, if the copyright
407 | holder fails to notify you of the violation by some reasonable means
408 | prior to 60 days after the cessation.
409 |
410 | Moreover, your license from a particular copyright holder is
411 | reinstated permanently if the copyright holder notifies you of the
412 | violation by some reasonable means, this is the first time you have
413 | received notice of violation of this License (for any work) from that
414 | copyright holder, and you cure the violation prior to 30 days after
415 | your receipt of the notice.
416 |
417 | Termination of your rights under this section does not terminate the
418 | licenses of parties who have received copies or rights from you under
419 | this License. If your rights have been terminated and not permanently
420 | reinstated, you do not qualify to receive new licenses for the same
421 | material under section 10.
422 |
423 | 9. Acceptance Not Required for Having Copies.
424 |
425 | You are not required to accept this License in order to receive or
426 | run a copy of the Program. Ancillary propagation of a covered work
427 | occurring solely as a consequence of using peer-to-peer transmission
428 | to receive a copy likewise does not require acceptance. However,
429 | nothing other than this License grants you permission to propagate or
430 | modify any covered work. These actions infringe copyright if you do
431 | not accept this License. Therefore, by modifying or propagating a
432 | covered work, you indicate your acceptance of this License to do so.
433 |
434 | 10. Automatic Licensing of Downstream Recipients.
435 |
436 | Each time you convey a covered work, the recipient automatically
437 | receives a license from the original licensors, to run, modify and
438 | propagate that work, subject to this License. You are not responsible
439 | for enforcing compliance by third parties with this License.
440 |
441 | An "entity transaction" is a transaction transferring control of an
442 | organization, or substantially all assets of one, or subdividing an
443 | organization, or merging organizations. If propagation of a covered
444 | work results from an entity transaction, each party to that
445 | transaction who receives a copy of the work also receives whatever
446 | licenses to the work the party's predecessor in interest had or could
447 | give under the previous paragraph, plus a right to possession of the
448 | Corresponding Source of the work from the predecessor in interest, if
449 | the predecessor has it or can get it with reasonable efforts.
450 |
451 | You may not impose any further restrictions on the exercise of the
452 | rights granted or affirmed under this License. For example, you may
453 | not impose a license fee, royalty, or other charge for exercise of
454 | rights granted under this License, and you may not initiate litigation
455 | (including a cross-claim or counterclaim in a lawsuit) alleging that
456 | any patent claim is infringed by making, using, selling, offering for
457 | sale, or importing the Program or any portion of it.
458 |
459 | 11. Patents.
460 |
461 | A "contributor" is a copyright holder who authorizes use under this
462 | License of the Program or a work on which the Program is based. The
463 | work thus licensed is called the contributor's "contributor version".
464 |
465 | A contributor's "essential patent claims" are all patent claims
466 | owned or controlled by the contributor, whether already acquired or
467 | hereafter acquired, that would be infringed by some manner, permitted
468 | by this License, of making, using, or selling its contributor version,
469 | but do not include claims that would be infringed only as a
470 | consequence of further modification of the contributor version. For
471 | purposes of this definition, "control" includes the right to grant
472 | patent sublicenses in a manner consistent with the requirements of
473 | this License.
474 |
475 | Each contributor grants you a non-exclusive, worldwide, royalty-free
476 | patent license under the contributor's essential patent claims, to
477 | make, use, sell, offer for sale, import and otherwise run, modify and
478 | propagate the contents of its contributor version.
479 |
480 | In the following three paragraphs, a "patent license" is any express
481 | agreement or commitment, however denominated, not to enforce a patent
482 | (such as an express permission to practice a patent or covenant not to
483 | sue for patent infringement). To "grant" such a patent license to a
484 | party means to make such an agreement or commitment not to enforce a
485 | patent against the party.
486 |
487 | If you convey a covered work, knowingly relying on a patent license,
488 | and the Corresponding Source of the work is not available for anyone
489 | to copy, free of charge and under the terms of this License, through a
490 | publicly available network server or other readily accessible means,
491 | then you must either (1) cause the Corresponding Source to be so
492 | available, or (2) arrange to deprive yourself of the benefit of the
493 | patent license for this particular work, or (3) arrange, in a manner
494 | consistent with the requirements of this License, to extend the patent
495 | license to downstream recipients. "Knowingly relying" means you have
496 | actual knowledge that, but for the patent license, your conveying the
497 | covered work in a country, or your recipient's use of the covered work
498 | in a country, would infringe one or more identifiable patents in that
499 | country that you have reason to believe are valid.
500 |
501 | If, pursuant to or in connection with a single transaction or
502 | arrangement, you convey, or propagate by procuring conveyance of, a
503 | covered work, and grant a patent license to some of the parties
504 | receiving the covered work authorizing them to use, propagate, modify
505 | or convey a specific copy of the covered work, then the patent license
506 | you grant is automatically extended to all recipients of the covered
507 | work and works based on it.
508 |
509 | A patent license is "discriminatory" if it does not include within
510 | the scope of its coverage, prohibits the exercise of, or is
511 | conditioned on the non-exercise of one or more of the rights that are
512 | specifically granted under this License. You may not convey a covered
513 | work if you are a party to an arrangement with a third party that is
514 | in the business of distributing software, under which you make payment
515 | to the third party based on the extent of your activity of conveying
516 | the work, and under which the third party grants, to any of the
517 | parties who would receive the covered work from you, a discriminatory
518 | patent license (a) in connection with copies of the covered work
519 | conveyed by you (or copies made from those copies), or (b) primarily
520 | for and in connection with specific products or compilations that
521 | contain the covered work, unless you entered into that arrangement,
522 | or that patent license was granted, prior to 28 March 2007.
523 |
524 | Nothing in this License shall be construed as excluding or limiting
525 | any implied license or other defenses to infringement that may
526 | otherwise be available to you under applicable patent law.
527 |
528 | 12. No Surrender of Others' Freedom.
529 |
530 | If conditions are imposed on you (whether by court order, agreement or
531 | otherwise) that contradict the conditions of this License, they do not
532 | excuse you from the conditions of this License. If you cannot convey a
533 | covered work so as to satisfy simultaneously your obligations under this
534 | License and any other pertinent obligations, then as a consequence you may
535 | not convey it at all. For example, if you agree to terms that obligate you
536 | to collect a royalty for further conveying from those to whom you convey
537 | the Program, the only way you could satisfy both those terms and this
538 | License would be to refrain entirely from conveying the Program.
539 |
540 | 13. Remote Network Interaction; Use with the GNU General Public License.
541 |
542 | Notwithstanding any other provision of this License, if you modify the
543 | Program, your modified version must prominently offer all users
544 | interacting with it remotely through a computer network (if your version
545 | supports such interaction) an opportunity to receive the Corresponding
546 | Source of your version by providing access to the Corresponding Source
547 | from a network server at no charge, through some standard or customary
548 | means of facilitating copying of software. This Corresponding Source
549 | shall include the Corresponding Source for any work covered by version 3
550 | of the GNU General Public License that is incorporated pursuant to the
551 | following paragraph.
552 |
553 | Notwithstanding any other provision of this License, you have
554 | permission to link or combine any covered work with a work licensed
555 | under version 3 of the GNU General Public License into a single
556 | combined work, and to convey the resulting work. The terms of this
557 | License will continue to apply to the part which is the covered work,
558 | but the work with which it is combined will remain governed by version
559 | 3 of the GNU General Public License.
560 |
561 | 14. Revised Versions of this License.
562 |
563 | The Free Software Foundation may publish revised and/or new versions of
564 | the GNU Affero General Public License from time to time. Such new versions
565 | will be similar in spirit to the present version, but may differ in detail to
566 | address new problems or concerns.
567 |
568 | Each version is given a distinguishing version number. If the
569 | Program specifies that a certain numbered version of the GNU Affero General
570 | Public License "or any later version" applies to it, you have the
571 | option of following the terms and conditions either of that numbered
572 | version or of any later version published by the Free Software
573 | Foundation. If the Program does not specify a version number of the
574 | GNU Affero General Public License, you may choose any version ever published
575 | by the Free Software Foundation.
576 |
577 | If the Program specifies that a proxy can decide which future
578 | versions of the GNU Affero General Public License can be used, that proxy's
579 | public statement of acceptance of a version permanently authorizes you
580 | to choose that version for the Program.
581 |
582 | Later license versions may give you additional or different
583 | permissions. However, no additional obligations are imposed on any
584 | author or copyright holder as a result of your choosing to follow a
585 | later version.
586 |
587 | 15. Disclaimer of Warranty.
588 |
589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597 |
598 | 16. Limitation of Liability.
599 |
600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608 | SUCH DAMAGES.
609 |
610 | 17. Interpretation of Sections 15 and 16.
611 |
612 | If the disclaimer of warranty and limitation of liability provided
613 | above cannot be given local legal effect according to their terms,
614 | reviewing courts shall apply local law that most closely approximates
615 | an absolute waiver of all civil liability in connection with the
616 | Program, unless a warranty or assumption of liability accompanies a
617 | copy of the Program in return for a fee.
618 |
619 | END OF TERMS AND CONDITIONS
620 |
621 | How to Apply These Terms to Your New Programs
622 |
623 | If you develop a new program, and you want it to be of the greatest
624 | possible use to the public, the best way to achieve this is to make it
625 | free software which everyone can redistribute and change under these terms.
626 |
627 | To do so, attach the following notices to the program. It is safest
628 | to attach them to the start of each source file to most effectively
629 | state the exclusion of warranty; and each file should have at least
630 | the "copyright" line and a pointer to where the full notice is found.
631 |
632 |
633 | Copyright (C)
634 |
635 | This program is free software: you can redistribute it and/or modify
636 | it under the terms of the GNU Affero General Public License as published by
637 | the Free Software Foundation, either version 3 of the License, or
638 | (at your option) any later version.
639 |
640 | This program is distributed in the hope that it will be useful,
641 | but WITHOUT ANY WARRANTY; without even the implied warranty of
642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 | GNU Affero General Public License for more details.
644 |
645 | You should have received a copy of the GNU Affero General Public License
646 | along with this program. If not, see .
647 |
648 | Also add information on how to contact you by electronic and paper mail.
649 |
650 | If your software can interact with users remotely through a computer
651 | network, you should also make sure that it provides a way for users to
652 | get its source. For example, if your program is a web application, its
653 | interface could display a "Source" link that leads users to an archive
654 | of the code. There are many ways you could offer source, and different
655 | solutions will be better for different programs; see section 13 for the
656 | specific requirements.
657 |
658 | You should also get your employer (if you work as a programmer) or school,
659 | if any, to sign a "copyright disclaimer" for the program, if necessary.
660 | For more information on this, and how to apply and follow the GNU AGPL, see
661 | .
662 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | [](https://runboat.odoo-community.org/builds?repo=OCA/project-agile&target_branch=18.0)
3 | [](https://github.com/OCA/project-agile/actions/workflows/pre-commit.yml?query=branch%3A18.0)
4 | [](https://github.com/OCA/project-agile/actions/workflows/test.yml?query=branch%3A18.0)
5 | [](https://codecov.io/gh/OCA/project-agile)
6 | [](https://translation.odoo-community.org/engage/project-agile-18-0/?utm_source=widget)
7 |
8 |
9 |
10 | # project-agile
11 |
12 | project-agile
13 |
14 |
15 |
16 |
17 |
18 | [//]: # (addons)
19 |
20 | This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
21 |
22 | [//]: # (end addons)
23 |
24 |
25 |
26 | ## Licenses
27 |
28 | This repository is licensed under [AGPL-3.0](LICENSE).
29 |
30 | However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA)
31 | policy. Consult each module's `__manifest__.py` file, which contains a `license` key
32 | that explains its license.
33 |
34 | ----
35 | OCA, or the [Odoo Community Association](http://odoo-community.org/), is a nonprofit
36 | organization whose mission is to support the collaborative development of Odoo features
37 | and promote its widespread use.
38 |
--------------------------------------------------------------------------------
/checklog-odoo.cfg:
--------------------------------------------------------------------------------
1 | [checklog-odoo]
2 | ignore=
3 | WARNING.* 0 failed, 0 error\(s\).*
4 |
--------------------------------------------------------------------------------
/eslint.config.cjs:
--------------------------------------------------------------------------------
1 | jsdoc = require("eslint-plugin-jsdoc");
2 |
3 | const config = [{
4 | plugins: {
5 | jsdoc,
6 | },
7 |
8 | languageOptions: {
9 | globals: {
10 | _: "readonly",
11 | $: "readonly",
12 | fuzzy: "readonly",
13 | jQuery: "readonly",
14 | moment: "readonly",
15 | odoo: "readonly",
16 | openerp: "readonly",
17 | owl: "readonly",
18 | luxon: "readonly",
19 | },
20 |
21 | ecmaVersion: 2024,
22 | sourceType: "script",
23 | },
24 |
25 | rules: {
26 | "accessor-pairs": "warn",
27 | "array-callback-return": "warn",
28 | "callback-return": "warn",
29 | "capitalized-comments": ["warn", "always", {
30 | ignoreConsecutiveComments: true,
31 | ignoreInlineComments: true,
32 | }],
33 | complexity: ["warn", 15],
34 | "constructor-super": "warn",
35 | "dot-notation": "warn",
36 | eqeqeq: "warn",
37 | "global-require": "warn",
38 | "handle-callback-err": "warn",
39 | "id-blacklist": "warn",
40 | "id-match": "warn",
41 | "init-declarations": "error",
42 | "max-depth": "warn",
43 | "max-nested-callbacks": "warn",
44 | "max-statements-per-line": "warn",
45 | "no-alert": "warn",
46 | "no-array-constructor": "warn",
47 | "no-caller": "warn",
48 | "no-case-declarations": "warn",
49 | "no-class-assign": "warn",
50 | "no-cond-assign": "error",
51 | "no-const-assign": "error",
52 | "no-constant-condition": "warn",
53 | "no-control-regex": "warn",
54 | "no-debugger": "error",
55 | "no-delete-var": "warn",
56 | "no-div-regex": "warn",
57 | "no-dupe-args": "error",
58 | "no-dupe-class-members": "error",
59 | "no-dupe-keys": "error",
60 | "no-duplicate-case": "error",
61 | "no-duplicate-imports": "error",
62 | "no-else-return": "warn",
63 | "no-empty-character-class": "warn",
64 | "no-empty-function": "error",
65 | "no-empty-pattern": "error",
66 | "no-empty": "warn",
67 | "no-eq-null": "error",
68 | "no-eval": "error",
69 | "no-ex-assign": "error",
70 | "no-extend-native": "warn",
71 | "no-extra-bind": "warn",
72 | "no-extra-boolean-cast": "warn",
73 | "no-extra-label": "warn",
74 | "no-fallthrough": "warn",
75 | "no-func-assign": "error",
76 | "no-global-assign": "error",
77 | "no-implicit-coercion": ["warn", {
78 | allow: ["~"],
79 | }],
80 | "no-implicit-globals": "warn",
81 | "no-implied-eval": "warn",
82 | "no-inline-comments": "warn",
83 | "no-inner-declarations": "warn",
84 | "no-invalid-regexp": "warn",
85 | "no-irregular-whitespace": "warn",
86 | "no-iterator": "warn",
87 | "no-label-var": "warn",
88 | "no-labels": "warn",
89 | "no-lone-blocks": "warn",
90 | "no-lonely-if": "error",
91 | "no-mixed-requires": "error",
92 | "no-multi-str": "warn",
93 | "no-native-reassign": "error",
94 | "no-negated-condition": "warn",
95 | "no-negated-in-lhs": "error",
96 | "no-new-func": "warn",
97 | "no-new-object": "warn",
98 | "no-new-require": "warn",
99 | "no-new-symbol": "warn",
100 | "no-new-wrappers": "warn",
101 | "no-new": "warn",
102 | "no-obj-calls": "warn",
103 | "no-octal-escape": "warn",
104 | "no-octal": "warn",
105 | "no-param-reassign": "warn",
106 | "no-path-concat": "warn",
107 | "no-process-env": "warn",
108 | "no-process-exit": "warn",
109 | "no-proto": "warn",
110 | "no-prototype-builtins": "warn",
111 | "no-redeclare": "warn",
112 | "no-regex-spaces": "warn",
113 | "no-restricted-globals": "warn",
114 | "no-restricted-imports": "warn",
115 | "no-restricted-modules": "warn",
116 | "no-restricted-syntax": "warn",
117 | "no-return-assign": "error",
118 | "no-script-url": "warn",
119 | "no-self-assign": "warn",
120 | "no-self-compare": "warn",
121 | "no-sequences": "warn",
122 | "no-shadow-restricted-names": "warn",
123 | "no-shadow": "warn",
124 | "no-sparse-arrays": "warn",
125 | "no-sync": "warn",
126 | "no-this-before-super": "warn",
127 | "no-throw-literal": "warn",
128 | "no-undef-init": "warn",
129 | "no-undef": "error",
130 | "no-unmodified-loop-condition": "warn",
131 | "no-unneeded-ternary": "error",
132 | "no-unreachable": "error",
133 | "no-unsafe-finally": "error",
134 | "no-unused-expressions": "error",
135 | "no-unused-labels": "error",
136 | "no-unused-vars": "error",
137 | "no-use-before-define": "error",
138 | "no-useless-call": "warn",
139 | "no-useless-computed-key": "warn",
140 | "no-useless-concat": "warn",
141 | "no-useless-constructor": "warn",
142 | "no-useless-escape": "warn",
143 | "no-useless-rename": "warn",
144 | "no-void": "warn",
145 | "no-with": "warn",
146 | "operator-assignment": ["error", "always"],
147 | "prefer-const": "warn",
148 | radix: "warn",
149 | "require-yield": "warn",
150 | "sort-imports": "warn",
151 | "spaced-comment": ["error", "always"],
152 | strict: ["error", "function"],
153 | "use-isnan": "error",
154 |
155 | "jsdoc/check-tag-names": "warn",
156 | "jsdoc/check-types": "warn",
157 | "jsdoc/require-param-description": "off",
158 | "jsdoc/require-return": "off",
159 | "jsdoc/require-return-description": "off",
160 | "jsdoc/require-return-type": "off",
161 |
162 | "valid-typeof": "warn",
163 | yoda: "warn",
164 | },
165 |
166 | settings: {
167 | jsdoc: {
168 | tagNamePreference: {
169 | arg: "param",
170 | argument: "param",
171 | augments: "extends",
172 | constructor: "class",
173 | exception: "throws",
174 | func: "function",
175 | method: "function",
176 | prop: "property",
177 | return: "returns",
178 | virtual: "abstract",
179 | yield: "yields",
180 | },
181 | preferredTypes: {
182 | array: "Array",
183 | bool: "Boolean",
184 | boolean: "Boolean",
185 | number: "Number",
186 | object: "Object",
187 | str: "String",
188 | string: "String",
189 | },
190 | },
191 | },
192 |
193 | }, {
194 | files: ["**/*.esm.js"],
195 |
196 | languageOptions: {
197 | ecmaVersion: 2024,
198 | sourceType: "module",
199 | },
200 | }];
201 |
202 | module.exports = config
203 |
--------------------------------------------------------------------------------
/prettier.config.cjs:
--------------------------------------------------------------------------------
1 | /** @type {import('prettier').Config} */
2 |
3 | const config = {
4 | // https://github.com/prettier/prettier/issues/15388#issuecomment-1717746872
5 | plugins: [require.resolve("@prettier/plugin-xml")],
6 | bracketSpacing: false,
7 | printWidth: 88,
8 | proseWrap: "always",
9 | semi: true,
10 | trailingComma: "es5",
11 | xmlWhitespaceSensitivity: "preserve",
12 | };
13 |
14 | module.exports = config;
15 |
--------------------------------------------------------------------------------