Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
528 commits
Select commit Hold shift + click to select a range
a165872
[UPD] README.rst
OCA-git-bot Oct 19, 2022
f603580
[ADD] setup.py
OCA-git-bot Oct 19, 2022
875b08b
queue_job_context 14.0.1.0.1
OCA-git-bot Oct 19, 2022
5c1e723
[UPD] addons table in README.md
OCA-git-bot Oct 19, 2022
c519d5c
[ADD] queue_job_cron_jobrunner
ivantodorovich Mar 2, 2022
46a7c8e
Add enqueue of graph dependencies in queue_job_cron_jobrunner
guewen Nov 1, 2022
9513d9d
Backport from 15.0 to 14.0 for queue_job_cron_jobrunner
chrisb-c01 Oct 31, 2022
235fad1
Update pre-commit conf
simahawk Nov 17, 2022
f50eadb
Merge pull request #484 from OCA/copier-sync
etobella Nov 17, 2022
900f4ed
Merge PR #479 into 14.0
OCA-git-bot Nov 17, 2022
7d2c501
[UPD] Update queue_job_cron_jobrunner.pot
Nov 17, 2022
6bd3012
[UPD] addons table in README.md
OCA-git-bot Nov 17, 2022
6b390f4
[UPD] README.rst
OCA-git-bot Nov 17, 2022
c849a31
[ADD] setup.py
OCA-git-bot Nov 17, 2022
c5f3c40
Merge PR #449 into 14.0
OCA-git-bot Nov 22, 2022
8a43fe6
base_import_async 14.0.1.0.2
OCA-git-bot Nov 22, 2022
e84f420
[UPD] addons table in README.md
OCA-git-bot Nov 22, 2022
d0ef6f7
Added translation using Weblate (Romanian)
dhongu Nov 22, 2022
eb7e730
Added translation using Weblate (Romanian)
dhongu Nov 22, 2022
3b4bb05
Added translation using Weblate (Romanian)
dhongu Nov 22, 2022
6f19c8d
Translated using Weblate (Romanian)
dhongu Nov 22, 2022
dd0c27b
Translated using Weblate (Romanian)
dhongu Nov 22, 2022
5f88783
[IMP] queue_job: add configuration options for
repodevs Nov 2, 2022
3620349
Merge PR #480 into 14.0
OCA-git-bot Nov 23, 2022
1c127af
queue_job 14.0.3.1.0
OCA-git-bot Nov 23, 2022
412382b
[UPD] addons table in README.md
OCA-git-bot Nov 23, 2022
4a99c61
[IMP] update dotfiles [ci skip]
OCA-git-bot Dec 11, 2022
02d0a25
IMP queue_job: add cancelled filter
hparfr Jan 3, 2023
2e8b8f7
[14.0][FIX] queue_job: fix read
sanchonuria Feb 9, 2023
1f71c0a
Merge PR #506 into 14.0
OCA-git-bot Feb 9, 2023
4814950
queue_job 14.0.3.1.1
OCA-git-bot Feb 9, 2023
072ac30
[UPD] addons table in README.md
OCA-git-bot Feb 9, 2023
226ceee
[FIX] queue_job: Commit was removed, but that could be a problem if y…
etobella Feb 14, 2023
4018daf
[IMP] queue_job: new app icon
ruuter Dec 7, 2020
d8a469b
Merge PR #511 into 14.0
OCA-git-bot Feb 23, 2023
7ca3be0
queue_job 14.0.3.1.2
OCA-git-bot Feb 23, 2023
287df77
[UPD] addons table in README.md
OCA-git-bot Feb 23, 2023
d7607e8
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 12, 2023
3dd8b8c
Support several recipient users in base_export_async
Nov 21, 2019
5d0bdff
Fix test based on create_date
Nov 22, 2019
c73e4ca
[UPD] Update base_export_async.pot
oca-travis Jun 11, 2020
1d8b4d8
[UPD] README.rst
OCA-git-bot Jun 11, 2020
117fbc0
Update translation files
oca-transbot Jun 11, 2020
b825bed
Added translation using Weblate (French)
ypapouin Nov 20, 2020
03ce7c5
Translated using Weblate (French)
ypapouin Nov 20, 2020
f0523df
Update translation files
oca-transbot Nov 22, 2020
16734ce
Added translation using Weblate (Danish)
hhgabelgaard Feb 7, 2021
f116e5c
Translated using Weblate (Danish)
hhgabelgaard Feb 7, 2021
484712a
Added translation using Weblate (Portuguese)
pedrocs-exo Mar 4, 2021
9418ee8
Translated using Weblate (Portuguese)
pedrocs-exo Mar 4, 2021
53b2301
Added translation using Weblate (Italian)
primes2h Jul 6, 2021
640e1b0
[IMP] base_export_async: black, isort, prettier
cuongnmtm Jan 30, 2023
4a12bab
[MIG] base_export_async: Migration to 14.0
cuongnmtm Jan 30, 2023
d36bac3
[REF] base_export_async: send mail via delay_export_mail_template
vincent-cowboy Jan 25, 2023
6deeea9
[FIX] base_export_async: fix error when click on export all button
cuongnmtm Jan 31, 2023
5a66c11
Merge PR #492 into 14.0
OCA-git-bot Mar 16, 2023
d2b694a
[UPD] Update base_export_async.pot
Mar 16, 2023
b04d021
[UPD] addons table in README.md
OCA-git-bot Mar 16, 2023
9d3d696
[UPD] README.rst
OCA-git-bot Mar 16, 2023
7901530
[ADD] setup.py
OCA-git-bot Mar 16, 2023
180309f
Add export_async_schedule
Nov 21, 2019
60ec58c
[UPD] README.rst
Nov 22, 2019
d297054
Add end of month option for the schedules
Nov 22, 2019
369e0bf
[UPD] Update export_async_schedule.pot
oca-travis Jun 11, 2020
556a141
[UPD] README.rst
OCA-git-bot Jun 11, 2020
b0ca4a0
Added translation using Weblate (French)
ypapouin Nov 20, 2020
eabd3a5
Translated using Weblate (French)
ypapouin Nov 20, 2020
a94fd6d
Translated using Weblate (French)
ypapouin Feb 9, 2021
7eb9c03
[IMP] export_async_schedule: black, isort, prettier
cuongnmtm Jan 11, 2023
c92c318
[MIG] export_async_schedule: Migration to 14.0
cuongnmtm Jan 11, 2023
21ae62a
Merge PR #507 into 14.0
OCA-git-bot Mar 29, 2023
1ab8642
queue_job 14.0.3.1.3
OCA-git-bot Mar 29, 2023
66a1f65
[UPD] addons table in README.md
OCA-git-bot Mar 29, 2023
1ef238b
Merge PR #495 into 14.0
OCA-git-bot Apr 2, 2023
b0a9ecc
[UPD] Update queue_job.pot
Apr 2, 2023
bade1dd
queue_job 14.0.3.1.4
OCA-git-bot Apr 2, 2023
40d9e6e
[UPD] addons table in README.md
OCA-git-bot Apr 2, 2023
61f0e5c
Update translation files
weblate Apr 2, 2023
ee5d86e
Handle cancelled state in job runner
sbidoul May 2, 2023
fa92fbf
Merge PR #533 into 14.0
OCA-git-bot May 3, 2023
7eedfe4
queue_job 14.0.3.1.5
OCA-git-bot May 3, 2023
29f7e66
[UPD] addons table in README.md
OCA-git-bot May 3, 2023
299cf4d
Fix trap_jobs() recordset comparison
guewen May 9, 2023
0b449b9
Fix OdooDocTestCase broken by a new test_sequence attribute
guewen Jun 7, 2023
fe77bd5
Merge PR #537 into 14.0
OCA-git-bot Jun 7, 2023
c2bac03
queue_job 14.0.3.2.0
OCA-git-bot Jun 7, 2023
03202fa
test_queue_job 14.0.3.1.0
OCA-git-bot Jun 7, 2023
c6b514e
[UPD] addons table in README.md
OCA-git-bot Jun 7, 2023
166829d
Merge PR #493 into 14.0
OCA-git-bot Jun 21, 2023
36a9a6e
[UPD] Update export_async_schedule.pot
Jun 21, 2023
b665f79
[UPD] addons table in README.md
OCA-git-bot Jun 21, 2023
518a16f
[UPD] README.rst
OCA-git-bot Jun 21, 2023
5600285
[ADD] setup.py
OCA-git-bot Jun 21, 2023
084037d
Update translation files
weblate Jun 21, 2023
d9542c9
Merge PR #408 into 14.0
OCA-git-bot Jun 27, 2023
5e6d44f
queue_job 14.0.3.3.0
OCA-git-bot Jun 27, 2023
9147b5e
[UPD] addons table in README.md
OCA-git-bot Jun 27, 2023
4224ac1
[UPD] README.rst
OCA-git-bot Sep 3, 2023
7ae561f
Update translation files
weblate Oct 9, 2023
4fa1e0c
Update translation files
weblate Oct 9, 2023
cda5a0e
Update translation files
weblate Oct 9, 2023
04e50f0
Update translation files
weblate Oct 9, 2023
306093d
Update translation files
weblate Oct 9, 2023
8fae7bc
FIX queue_job avoiding AccessDenied when loading the module in an ins…
eLBati Oct 26, 2021
3e9c5d9
Sync from template
simahawk Nov 21, 2023
deefe70
Apply new pre-commit conf
simahawk Nov 21, 2023
61498fb
Merge PR #583 into 14.0
OCA-git-bot Nov 21, 2023
fad797f
[UPD] Update export_async_schedule.pot
Nov 21, 2023
1ca9399
[UPD] Update queue_job.pot
Nov 21, 2023
d3c0bfa
[UPD] Update queue_job_batch.pot
Nov 21, 2023
fbfb0ce
[BOT] post-merge updates
OCA-git-bot Nov 21, 2023
4e0c975
Update translation files
weblate Nov 21, 2023
31dd3d1
Update translation files
weblate Nov 21, 2023
bfbf30d
Update translation files
weblate Nov 21, 2023
8cf07dd
[IMP] queue_job: identity_key enhancements
Jun 16, 2023
53bc60e
queue_job: job_record_with_same_identity_key ignore STARTED
simahawk Nov 21, 2023
a7396ef
Merge PR #581 into 14.0
OCA-git-bot Nov 22, 2023
8240043
[BOT] post-merge updates
OCA-git-bot Nov 22, 2023
15a2b59
Merge PR #571 into 14.0
OCA-git-bot Nov 23, 2023
2b6fcba
[BOT] post-merge updates
OCA-git-bot Nov 23, 2023
2bda1e8
queue_job: split identity_key hasher to ease reuse
simahawk Nov 27, 2023
3b2c1f2
Merge PR #594 into 14.0
OCA-git-bot Nov 27, 2023
609c918
[BOT] post-merge updates
OCA-git-bot Nov 27, 2023
e70b67a
[IMP] queue_job: track error in chatter
MiquelRForgeFlow Nov 16, 2023
ce33934
Merge PR #598 into 14.0
OCA-git-bot Nov 28, 2023
642dedb
[BOT] post-merge updates
OCA-git-bot Nov 28, 2023
089eb3e
Translated using Weblate (Italian)
mymage Dec 7, 2023
38b4ed0
[FIX] queue_job_cron_jobrunner: avoid concurrent access on ir.cron
petrus-v Dec 19, 2023
cdab52d
Added translation using Weblate (Italian)
mymage Jan 31, 2024
b2667f4
Added translation using Weblate (Italian)
mymage Jan 31, 2024
98f271e
Added translation using Weblate (Italian)
mymage Jan 31, 2024
b6bee22
Added translation using Weblate (Italian)
mymage Jan 31, 2024
99247c9
Added translation using Weblate (Italian)
mymage Jan 31, 2024
92a3852
Added translation using Weblate (Italian)
mymage Jan 31, 2024
26b207b
Added translation using Weblate (Italian)
mymage Jan 31, 2024
15b476f
Added translation using Weblate (Italian)
mymage Jan 31, 2024
5aa513b
Added translation using Weblate (Italian)
mymage Jan 31, 2024
9b7f427
queue_job: fix retry format with tuple values
InigoGR Feb 1, 2024
806613c
Translated using Weblate (Italian)
mymage Feb 5, 2024
fb16c00
[IMP] queue_job_cron: Avoid parallel run
lmignon Dec 21, 2023
894d0f1
Merge PR #625 into 14.0
OCA-git-bot Feb 6, 2024
855b526
[UPD] Update queue_job_cron.pot
Feb 6, 2024
2e77bec
[BOT] post-merge updates
OCA-git-bot Feb 6, 2024
f9692ab
Update translation files
weblate Feb 6, 2024
249ee17
Translated using Weblate (Italian)
mymage Feb 12, 2024
fe4fe95
queue_job: fix partial index to add 'wait_dependencies' state
sebalix Mar 6, 2024
bde03d6
Merge PR #629 into 14.0
OCA-git-bot Mar 6, 2024
4c824c2
[BOT] post-merge updates
OCA-git-bot Mar 6, 2024
d8af191
Translated using Weblate (Italian)
rbellanova Mar 27, 2024
a833198
Translated using Weblate (Italian)
rbellanova Mar 27, 2024
9343db1
queue_job: triggers stored computed fields before calling 'set_done()'
sebalix Mar 27, 2024
da14343
Merge PR #637 into 14.0
OCA-git-bot Mar 27, 2024
50795d1
[BOT] post-merge updates
OCA-git-bot Mar 27, 2024
352396e
Translated using Weblate (Italian)
mymage Mar 28, 2024
659b441
Merge PR #611 into 14.0
OCA-git-bot Apr 4, 2024
34e80c7
[BOT] post-merge updates
OCA-git-bot Apr 4, 2024
233312f
Translated using Weblate (Italian)
mymage Apr 4, 2024
4780143
Translated using Weblate (Italian)
mymage Apr 4, 2024
5277e9c
Translated using Weblate (Italian)
mymage Apr 8, 2024
148fb90
[FIX] queue_job_cron_jobrunner: use priority to select job
petrus-v Apr 10, 2024
74cc04a
Translated using Weblate (Italian)
mymage Apr 11, 2024
8a2ab3b
Added translation using Weblate (Spanish)
Ivorra78 Apr 22, 2024
1c875b2
Added translation using Weblate (Spanish)
Ivorra78 Apr 22, 2024
dbb5193
Translated using Weblate (Spanish)
Ivorra78 Apr 22, 2024
778dca2
Translated using Weblate (Spanish)
Ivorra78 Apr 22, 2024
7824d9c
[IMP] update dotfiles
OCA-git-bot May 1, 2024
6b47998
Translated using Weblate (Italian)
mymage May 6, 2024
9789e0f
Translated using Weblate (Italian)
mymage May 17, 2024
7f55495
Merge PR #624 into 14.0
OCA-git-bot May 18, 2024
e35e7fe
[UPD] Update queue_job.pot
May 18, 2024
cf35a44
[BOT] post-merge updates
OCA-git-bot May 18, 2024
76a42e2
Update translation files
weblate May 18, 2024
f0511aa
[IMP] queue_job: Display warning before displaying big dependency graphs
paradoxxxzero Jun 4, 2024
13fd91a
Translated using Weblate (Italian)
mymage Jun 6, 2024
e107eb3
Merge PR #657 into 14.0
OCA-git-bot Jun 9, 2024
f17cd34
[BOT] post-merge updates
OCA-git-bot Jun 9, 2024
08ecff4
Translated using Weblate (Italian)
mymage Jul 4, 2024
b0e3b0d
Translated using Weblate (Italian)
francesco-ooops Jul 15, 2024
80a4185
[FIX] queue_job: missing flush
QuocDuong1306 Jul 29, 2024
189a307
[IMP] queue_job: Cancel child jobs when the parent is cancelled
QuocDuong1306 Aug 1, 2024
939a98f
Merge PR #676 into 14.0
OCA-git-bot Aug 6, 2024
c5552d5
[BOT] post-merge updates
OCA-git-bot Aug 6, 2024
3edd8a8
[fix] queue_job: JobsTrap.perform_enqueued_jobs
fd-oncodna May 22, 2024
6686ac8
Merge PR #678 into 14.0
OCA-git-bot Aug 14, 2024
30e57e6
[BOT] post-merge updates
OCA-git-bot Aug 14, 2024
21f6e25
queue_job: unify no delay option
simahawk Feb 28, 2023
03ca33d
Merge PR #680 into 14.0
OCA-git-bot Sep 4, 2024
ee55b99
[BOT] post-merge updates
OCA-git-bot Sep 4, 2024
972727d
Merge PR #643 into 14.0
OCA-git-bot Sep 12, 2024
28460c6
[BOT] post-merge updates
OCA-git-bot Sep 12, 2024
1788746
[FIX] queue_job: typo
florentx Sep 16, 2024
90c45f6
[IMP] queue_job: add filter on Date Created
florentx Sep 16, 2024
793f06e
[IMP] queue_job_batch: inverse batch order
petrus-v Sep 17, 2024
a89a881
Merge PR #683 into 14.0
OCA-git-bot Sep 18, 2024
744fbd3
[UPD] Update queue_job.pot
Sep 18, 2024
e5a2cde
[BOT] post-merge updates
OCA-git-bot Sep 18, 2024
fa794e0
Update translation files
weblate Sep 18, 2024
c0e4ef7
Translated using Weblate (Italian)
mymage Oct 16, 2024
8a8da09
Merge PR #684 into 14.0
OCA-git-bot Oct 21, 2024
0e39a39
[BOT] post-merge updates
OCA-git-bot Oct 21, 2024
f929b64
[IMP] queue_job: Add split method
paradoxxxzero Nov 19, 2024
6584cbc
Merge PR #658 into 14.0
OCA-git-bot Nov 19, 2024
cf2ff24
[BOT] post-merge updates
OCA-git-bot Nov 19, 2024
a22f22c
[REF] queue_job: Use set.discard(...) instead of SafeSet
florentx Dec 16, 2024
975ea6c
Merge PR #719 into 14.0
OCA-git-bot Dec 21, 2024
0c55d5c
[BOT] post-merge updates
OCA-git-bot Dec 21, 2024
ad4f54d
[REF] remove explicit 'object' inheritance
florentx Jan 27, 2022
1ddc4c8
[REF] remove explicit super() arguments
florentx Dec 26, 2024
ac9190f
Translated using Weblate (Italian)
mymage Jan 16, 2025
b3c98bc
Translated using Weblate (Italian)
mymage Jan 16, 2025
42a5497
Translated using Weblate (Italian)
mymage Jan 16, 2025
a77575e
Translated using Weblate (Italian)
mymage Jan 20, 2025
24d9d2b
Merge PR #728 into 14.0
OCA-git-bot Jan 28, 2025
81f6262
[BOT] post-merge updates
OCA-git-bot Jan 28, 2025
813ad66
[IMP] update dotfiles
OCA-git-bot Feb 2, 2025
48b7005
[FIX] queue_job: job runner open pipe that are never closed properly
petrus-v Mar 13, 2025
296f3d1
Merge PR #754 into 14.0
OCA-git-bot Mar 19, 2025
1840d7c
[BOT] post-merge updates
OCA-git-bot Mar 19, 2025
2ed0c75
[IMP] queue_job: perform_enqueued_jobs should filter the context
florentx Jan 17, 2025
25b5bfb
[ADD] base_export_async: make attachment accessible to portal users
hbrunn Mar 21, 2025
622586d
Merge PR #738 into 14.0
OCA-git-bot Apr 30, 2025
200e979
[BOT] post-merge updates
OCA-git-bot Apr 30, 2025
6b2f3c4
[IMP] queue_job: add Priority to Group-By and search
florentx May 26, 2025
95e4517
Translated using Weblate (Italian)
mymage May 27, 2025
e4083f4
Merge PR #772 into 14.0
OCA-git-bot Jun 2, 2025
be2d0b3
[UPD] Update queue_job.pot
Jun 2, 2025
aafafba
[BOT] post-merge updates
OCA-git-bot Jun 2, 2025
e155a5a
Update translation files
weblate Jun 2, 2025
7cf92ba
[IMP] queue_job: use __slots__ for ChannelJob
florentx Jun 2, 2025
c72ae6b
[IMP] queue_job: more efficient ChannelJob sorting
florentx Jun 3, 2025
371431d
[UPD] addons table in README.md
OCA-git-bot Jun 4, 2025
be51905
[IMP] queue_job: filter for retried jobs
florentx Jun 11, 2025
b0ce228
[IMP] queue_job: set the columns optional in list view
florentx Jun 11, 2025
a5b514a
Merge PR #790 into 14.0
OCA-git-bot Jun 12, 2025
a82cc62
[UPD] Update queue_job.pot
Jun 12, 2025
7eb48b9
[BOT] post-merge updates
OCA-git-bot Jun 12, 2025
731b305
Update translation files
weblate Jun 12, 2025
d8973a8
Merge PR #791 into 14.0
OCA-git-bot Jun 12, 2025
d522451
[BOT] post-merge updates
OCA-git-bot Jun 12, 2025
35093d2
[FIX] queue_job: Cannot toggle visibility of ETA column
florentx Jun 18, 2025
3f9895b
Merge PR #797 into 14.0
OCA-git-bot Jun 18, 2025
81b2cf8
[BOT] post-merge updates
OCA-git-bot Jun 18, 2025
5803c2a
[IMP] queue_job: add index for efficient autovacuum
florentx Jun 25, 2025
ab9ed45
Merge PR #799 into 14.0
OCA-git-bot Jun 25, 2025
8b11584
[BOT] post-merge updates
OCA-git-bot Jun 25, 2025
32bb8fd
Merge PR #756 into 14.0
OCA-git-bot Jul 27, 2025
88f2fd8
[BOT] post-merge updates
OCA-git-bot Jul 27, 2025
0c5f515
Translated using Weblate (Italian)
mymage Aug 4, 2025
97b716d
Merge PR #781 into 14.0
OCA-git-bot Oct 29, 2025
33bcad9
[BOT] post-merge updates
OCA-git-bot Oct 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.0.3
_commit: v1.29
_src_path: gh:oca/oca-addons-repo-template
dependency_installation_mode: PIP
ci: GitHub
convert_readme_fragments_to_markdown: false
enable_checklog_odoo: false
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
github_enable_codecov: true
github_enable_makepot: true
github_enable_stale_action: true
github_enforce_dev_status_compatibility: true
include_wkhtmltopdf: false
odoo_test_flavor: Both
odoo_version: 14.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
rebel_module_groups: []
repo_description: "TODO: add repo description."
repo_description: Advanced async jobs management for Odoo
repo_name: queue
repo_slug: queue
travis_apt_packages: []
travis_apt_sources: []
repo_website: https://github.com/OCA/queue
use_pyproject_toml: false
use_ruff: false

12 changes: 10 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
env:
browser: true
es6: true

# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
ecmaVersion: 2017
ecmaVersion: 2019

overrides:
- files:
- "**/*.esm.js"
parserOptions:
sourceType: module

# Globals available in Odoo that shouldn't produce errorings
globals:
Expand All @@ -14,7 +21,8 @@ globals:
moment: readonly
odoo: readonly
openerp: readonly
Promise: readonly
owl: readonly
luxon: readonly

# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
Expand Down
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
max-line-length = 80
max-line-length = 88
max-complexity = 16
# B = bugbear
# B9 = bugbear opinionated (incl line length)
Expand All @@ -8,3 +8,5 @@ select = C,E,F,W,B,B9
# E501: flake8 line length (covered by bugbear B950)
# W503: line break before binary operator (black behaviour)
ignore = E203,E501,W503
per-file-ignores=
__init__.py:F401
46 changes: 46 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: pre-commit

on:
pull_request:
branches:
- "14.0*"
push:
branches:
- "14.0"
- "14.0-ocabot-*"

jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always
env:
# Consider valid a PR that changes README fragments but doesn't
# change the README.rst file itself. It's not really a problem
# because the bot will update it anyway after merge. This way, we
# lower the barrier for functional contributors that want to fix the
# readme fragments, while still letting developers get README
# auto-generated (which also helps functionals when using runboat).
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
SKIP: oca-gen-addon-readme
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
if [ "$newfiles" != "" ] ; then
echo "Please check-in the following files:"
echo "$newfiles"
exit 1
fi
69 changes: 69 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 12 * * 0"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Stale PRs and issues policy
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# General settings.
ascending: true
remove-stale-when-updated: true
# Pull Requests settings.
# 120+30 day stale policy for PRs
# * Except PRs marked as "no stale"
days-before-pr-stale: 120
days-before-pr-close: 30
exempt-pr-labels: "no stale"
stale-pr-label: "stale"
stale-pr-message: >
There hasn't been any activity on this pull request in the past 4 months, so
it has been marked as stale and it will be closed automatically if no
further activity occurs in the next 30 days.

If you want this PR to never become stale, please ask a PSC member to apply
the "no stale" label.
# Issues settings.
# 180+30 day stale policy for open issues
# * Except Issues marked as "no stale"
days-before-issue-stale: 180
days-before-issue-close: 30
exempt-issue-labels: "no stale,needs more information"
stale-issue-label: "stale"
stale-issue-message: >
There hasn't been any activity on this issue in the past 6 months, so it has
been marked as stale and it will be closed automatically if no further
activity occurs in the next 30 days.

If you want this issue to never become stale, please ask a PSC member to
apply the "no stale" label.

# 15+30 day stale policy for issues pending more information
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ascending: true
only-labels: "needs more information"
exempt-issue-labels: "no stale"
days-before-stale: 15
days-before-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
remove-stale-when-updated: true
stale-issue-label: "stale"
stale-issue-message: >
This issue needs more information and there hasn't been any activity
recently, so it has been marked as stale and it will be closed automatically
if no further activity occurs in the next 30 days.

If you think this is a mistake, please ask a PSC member to remove the "needs
more information" label.
71 changes: 71 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: tests

on:
pull_request:
branches:
- "14.0*"
push:
branches:
- "14.0"
- "14.0-ocabot-*"

jobs:
unreleased-deps:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v4
- run: |
for reqfile in requirements.txt test-requirements.txt ; do
if [ -f ${reqfile} ] ; then
result=0
# reject non-comment lines that contain a / (i.e. URLs, relative paths)
grep "^[^#].*/" ${reqfile} || result=$?
if [ $result -eq 0 ] ; then
echo "Unreleased dependencies found in ${reqfile}."
exit 1
fi
fi
done
test:
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
name: test with OCB
makepot: "true"
services:
postgres:
image: postgres:9.6
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install addons and dependencies
run: oca_install_addons
- name: Check licenses
run: manifestoo -d . check-licenses
- name: Check development status
run: manifestoo -d . check-dev-status --default-dev-status=Beta
- name: Initialize test db
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
/.venv
/.pytest_cache
/.ruff_cache

# C extensions
*.so
Expand All @@ -15,7 +16,6 @@ build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
Expand All @@ -25,6 +25,19 @@ var/
*.egg
*.eggs

# Windows installers
*.msi

# Debian packages
*.deb

# Redhat packages
*.rpm

# MacOS packages
*.dmg
*.pkg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
Expand Down
1 change: 1 addition & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
ensure_newline_before_comments = True
2 changes: 2 additions & 0 deletions .oca_hooks.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES_CONTROL]
disable=xml-deprecated-data-node,xml-deprecated-tree-attribute
Loading