Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][BACKPORT] oca_edi from 14.0 #802

Closed
wants to merge 306 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
306 commits
Select commit Hold shift + click to select a range
eeac276
edi: move and rename _exchange_notify_record to exc rec
simahawk Dec 2, 2020
336d4d9
edi.backend: rename check method for exchange_process
simahawk Dec 2, 2020
eb0436d
[UPD] Update edi.pot
oca-travis Dec 2, 2020
00171da
edi 13.0.1.9.0
OCA-git-bot Dec 2, 2020
0cc4d74
edi: simply ack handling
simahawk Nov 30, 2020
d083b61
edi.backend: handle reception of files
simahawk Dec 1, 2020
f0a9543
edi: rename test file for process
simahawk Dec 2, 2020
02760e3
edi: cron tests silent logger
simahawk Dec 2, 2020
67f5559
edi: cron generate ack record when needed
simahawk Dec 2, 2020
d90ddd6
[UPD] Update edi.pot
oca-travis Dec 2, 2020
3563d86
edi 13.0.1.10.0
OCA-git-bot Dec 2, 2020
5f21939
edi.backend fix _check_input_exchange_sync signature
simahawk Dec 3, 2020
d5c8c75
[UPD] Update edi.pot
oca-travis Dec 3, 2020
106fa2c
edi 13.0.1.11.0
OCA-git-bot Dec 3, 2020
f4bb725
edi: add receive component base mixin
simahawk Dec 2, 2020
8773bbb
edi: add type advanced settings
simahawk Dec 3, 2020
1fb8221
edi: fix manifest description
simahawk Dec 3, 2020
41c01bd
edi: add base lookup for validators
simahawk Dec 3, 2020
f373d75
edi.backend: fix handle reception of files
simahawk Dec 3, 2020
e5788a8
edi: improve validation handling
simahawk Dec 7, 2020
4c1e763
[UPD] Update edi.pot
oca-travis Dec 8, 2020
4c52e92
[UPD] README.rst
OCA-git-bot Dec 8, 2020
c05803a
edi 13.0.1.12.0
OCA-git-bot Dec 8, 2020
ce14d56
[IMP] edi: Security
etobella Nov 30, 2020
3b15118
edi 13.0.1.13.0
OCA-git-bot Dec 8, 2020
15a07c7
[IMP] edi: Improve readme
etobella Dec 8, 2020
56050bf
[IMP] edi: Allow to manually generate EDI Exchange records
etobella Dec 8, 2020
9d0a37a
[FIX] edi: Rule not correctly created
etobella Dec 9, 2020
0ece06b
edi 13.0.1.13.1
OCA-git-bot Dec 9, 2020
bd9eb5b
[UPD] Update edi.pot
oca-travis Dec 10, 2020
7da2b35
[UPD] README.rst
OCA-git-bot Dec 10, 2020
96e7d7b
edi 13.0.1.14.0
OCA-git-bot Dec 10, 2020
ba96ffe
[IMP] edi: Add a has_exchange_record function to search for the speci…
etobella Dec 13, 2020
57d5a13
[IMP] edi: Keep old field values on the fields_view_get
etobella Dec 13, 2020
ebe8401
edi 13.0.1.14.1
OCA-git-bot Dec 14, 2020
5025315
edi: consumer mixin fix Serialized field usage
simahawk Dec 16, 2020
979b4e3
edi: component ease access to record
simahawk Dec 16, 2020
949634b
edi: refactor component lookup
simahawk Dec 16, 2020
2a1594d
edi 13.0.1.15.0
OCA-git-bot Mar 10, 2021
e7265cb
[CHG] edi: Use more permissive licence: AGPL-> LGPL
etobella Mar 10, 2021
edd38c9
edi.backend: rename generate to match others
simahawk Dec 8, 2020
2ec02e5
edi: cron call exchange action w/ jobs
simahawk Mar 11, 2021
24f5e0d
edi: add jobs configuration
simahawk Dec 8, 2020
ba4b3aa
edi: enable cron for input records
simahawk Mar 11, 2021
8797a9f
edi: add TODO for cron methods
simahawk Mar 15, 2021
708200b
edi: _get_component fallback to backend model
simahawk Mar 15, 2021
2f5a439
[UPD] README.rst
OCA-git-bot Mar 15, 2021
f58fceb
edi 13.0.1.15.1
OCA-git-bot Mar 15, 2021
1eb9c03
[UPD] Update edi.pot
oca-travis Mar 16, 2021
609820a
edi 13.0.1.16.0
OCA-git-bot Mar 16, 2021
bf3e05e
[FIX] edi: fix record property when there is no model to return the r…
acsonefho Mar 17, 2021
f83b015
[FIX] edi: Fix security & filtering
etobella Apr 7, 2021
41844a8
[FIX] edi_storage: sort key was not working properly
etobella Apr 7, 2021
f481cc2
[IMP] edi: Change security function
etobella Apr 8, 2021
5cccb08
edi 13.0.1.17.0
OCA-git-bot Apr 9, 2021
773c8f8
[IMP] edi_oca: black, isort, prettier
etobella May 4, 2021
d0d87c7
[MIG] edi_oca: Migration to 14.0
etobella May 4, 2021
86089f0
[UPD] Update edi_oca.pot
oca-travis May 9, 2021
246851f
[UPD] README.rst
OCA-git-bot May 9, 2021
629bb5b
[FIX] edi_oca: Missing changes of name
etobella May 10, 2021
a59d7b6
edi_oca 14.0.1.0.1
OCA-git-bot May 10, 2021
a2a8292
[IMP] update dotfiles
sbidoul May 14, 2021
5f6ec3b
Added translation using Weblate (French)
Yvesldff Jun 17, 2021
39683b6
Translated using Weblate (French)
Yvesldff Jun 17, 2021
75b4a86
[FIX] edi_oca: show the exchange file name while there is no file yet.
LoisRForgeFlow Jun 22, 2021
f5fdc94
[FIX] edi_oca: show the exchange file name while there is no file yet.
LoisRForgeFlow Jun 22, 2021
f93a69d
edi: add _find_existing_exchange_records to backend
simahawk Jun 23, 2021
d305373
[UPD] Update edi_oca.pot
oca-travis Jul 6, 2021
6a1134d
edi_oca 14.0.1.1.0
OCA-git-bot Jul 6, 2021
7d1f5a8
Update translation files
oca-transbot Jul 6, 2021
155ff4c
[FIX] edi: allow the use of listeners.
LoisRForgeFlow Jul 5, 2021
d5dd94d
edi_oca 14.0.1.2.0
OCA-git-bot Jul 14, 2021
822682f
edi_backend: update docstring
simahawk Sep 14, 2021
2957f23
edi_backend: fix var name
simahawk Sep 15, 2021
2c5ff44
edi: exc record get file content as b64 optionally
simahawk Sep 16, 2021
9b240da
edi: improve exchange record UI
simahawk Sep 17, 2021
3185461
edi: improve backend view extension
simahawk Sep 17, 2021
4759c77
edi: allow job channel conf by type
simahawk Sep 19, 2021
bddbac6
edi: specific method to get type settings
simahawk Sep 19, 2021
18916c6
edi_backend: exclude class name from error txt
simahawk Sep 24, 2021
cf835f2
edi: exclude exception class from error msg
simahawk Sep 24, 2021
53c7e64
edi: improve exchange type and record UI
simahawk Sep 24, 2021
fa15032
edi: add 'retry' action to exchange record
simahawk Sep 24, 2021
b59c8b0
[UPD] Update edi_oca.pot
oca-travis Oct 13, 2021
9e55f45
edi_oca 14.0.1.3.0
OCA-git-bot Oct 13, 2021
511ef28
Update translation files
oca-transbot Oct 13, 2021
4b11d37
[IMP] edi: Allow to ignore some jobs
etobella Oct 20, 2021
441e13c
[UPD] Update edi_oca.pot
oca-travis Oct 22, 2021
9bb3cdd
edi_oca 14.0.1.4.0
OCA-git-bot Oct 22, 2021
40e7e7e
Update translation files
oca-transbot Oct 22, 2021
96d2742
edi: fix wrong status bar display new exc record
simahawk Oct 29, 2021
fd04190
edi: load main vars at init
simahawk Sep 22, 2021
9d6aa1f
edi: fix consumer mixin
simahawk Oct 30, 2021
38420fc
edi_oca 14.0.1.5.0
OCA-git-bot Nov 2, 2021
e8527eb
edi_oca 14.0.1.5.1
OCA-git-bot Nov 2, 2021
d121ce9
[IMP] edi: ext identifier unique by type and backend
etobella Nov 2, 2021
f577371
[UPD] Update edi_oca.pot
oca-travis Nov 9, 2021
c6ec8e4
edi_oca 14.0.1.6.0
OCA-git-bot Nov 9, 2021
5fbee1d
Update translation files
oca-transbot Nov 9, 2021
46257b0
edi: backend._get_component inject custom ctx
simahawk Nov 4, 2021
fea158f
edi_oca 14.0.1.6.1
OCA-git-bot Nov 11, 2021
898a7d2
[IMP] edi_oca: Pass development status to Beta
etobella Nov 30, 2021
af354d4
[UPD] README.rst
OCA-git-bot Dec 4, 2021
ebb7c4e
edi_oca: remove filename from status msg
simahawk Nov 12, 2021
477a1dd
edi: chatter mgs tmpl fix link
simahawk Nov 12, 2021
d210947
edi: exchange record state use badge widget in tree view
simahawk Nov 12, 2021
a8b4851
[UPD] Update edi_oca.pot
Jan 12, 2022
5bca667
edi_oca 14.0.1.7.0
OCA-git-bot Jan 12, 2022
41fe3a0
Update translation files
oca-transbot Jan 12, 2022
f5062ed
[FIX] Fix access right issues when using actions
sebalix Jan 31, 2022
bd52710
edi_oca 14.0.1.7.1
OCA-git-bot Jan 31, 2022
fe63587
edi: fix exc record name compute
simahawk Mar 9, 2022
75a69f6
edi: improve exchanges views and menu
simahawk Mar 9, 2022
fb55a2f
edi: fix exc record missing _rec_name
simahawk Mar 10, 2022
576b53a
edi: exc record form name not needed
simahawk Mar 10, 2022
9dfc5df
edi: fix exc record sorting
simahawk Mar 10, 2022
ebeb315
edi: get rid of name, use identifier
simahawk Mar 10, 2022
c753867
edi: backend action to view exchanges
simahawk Mar 10, 2022
4fdcf29
edi: backend action to view exchange types
simahawk Mar 10, 2022
e240b6e
edi: update exc type adv settings help
simahawk Mar 11, 2022
44e0ac0
edi: move job func to exc record
simahawk Mar 11, 2022
fb06cff
edi: show exchanges first
simahawk Mar 19, 2022
47ea2e3
edi_oca: avoid warning on exception args
simahawk Mar 19, 2022
7f45a9e
[UPD] Update edi_oca.pot
Mar 19, 2022
535102b
edi_oca 14.0.1.8.0
OCA-git-bot Mar 19, 2022
b080415
Update translation files
oca-transbot Mar 19, 2022
e198346
[FIX] edi_oca: Restore removed functions
etobella Mar 23, 2022
6ba3cbb
edi_oca 14.0.1.8.1
OCA-git-bot Mar 23, 2022
c92d04e
[IMP] edi: add exchange_filename search
JordiMForgeFlow May 5, 2022
4b9ff99
edi_oca 14.0.1.8.2
OCA-git-bot May 13, 2022
86fdeab
edi_oca: fix exchange chatter link
simahawk Mar 19, 2022
c8dd42e
edi_oca 14.0.1.8.3
simahawk May 20, 2022
e82663f
[FIX] edi: remove span inside anchor
JordiMForgeFlow Feb 8, 2022
3eb6bd6
edi_oca 14.0.1.8.4
OCA-git-bot May 24, 2022
aa719c0
edi_oca: allow to override dt for exchange filename
jcoux May 10, 2022
f210ea3
[UPD] Update edi_oca.pot
Jun 1, 2022
25b51ac
edi_oca 14.0.1.9.0
OCA-git-bot Jun 1, 2022
3ef5a7b
Update translation files
oca-transbot Jun 1, 2022
daa6411
[FIX] edi_oca: Adapt tests
etobella Jun 13, 2022
12c1b02
edi_oca 14.0.1.9.1
OCA-git-bot Jun 13, 2022
0c41c71
edi_oca: add more generic mixin
simahawk Jul 28, 2022
4dad2e2
edi_oca: bump 14.0.1.9.2
simahawk Jul 28, 2022
9dd958a
edi_oca: add some TODOs
simahawk Aug 2, 2022
3ef8d34
edi_oca: improve auto btns
simahawk Aug 2, 2022
7af85a9
edi_oca: update ownership
simahawk Aug 2, 2022
6ab0c92
edi_oca: fix docstring on consumer mixin
simahawk Aug 10, 2022
dba1f10
[UPD] Update edi_oca.pot
Aug 14, 2022
0668ff5
[UPD] README.rst
OCA-git-bot Aug 14, 2022
d13a940
edi_oca 14.0.1.11.0
OCA-git-bot Aug 14, 2022
0d9a4e2
Update translation files
oca-transbot Aug 14, 2022
66a7a04
[IMP] edi: archive edi_backend
JaumeBforgeFlow Jul 8, 2022
2913149
[UPD] Update edi_oca.pot
Aug 17, 2022
fd8dfae
edi_oca 14.0.1.12.0
OCA-git-bot Aug 17, 2022
cfaa367
Update translation files
oca-transbot Aug 17, 2022
0175b97
edi: add meth _is_valid_edi_action
simahawk Aug 11, 2022
82ac43f
edi: improve consumer mixin helpers
simahawk Aug 11, 2022
0eeb914
edi: fix exc_rec.action_exchange_generate
simahawk Aug 11, 2022
292e513
edi: improve exc_rec._trigger_edi_event
simahawk Aug 11, 2022
7e63a4c
edi: fix process break on error ctx key
simahawk Aug 14, 2022
2d0fff6
edi: improve create record validation
simahawk Aug 14, 2022
e5dc24c
edi: ease creation of child records
simahawk Aug 17, 2022
fecd0c8
edi: add edi_id_mixin
simahawk Aug 17, 2022
58dbc64
edi: silent loggers in tests
simahawk Jul 15, 2022
00cb8fa
[UPD] Update edi_oca.pot
Aug 19, 2022
67ff4c9
edi_oca 14.0.1.13.0
OCA-git-bot Aug 19, 2022
f51c71c
Update translation files
oca-transbot Aug 19, 2022
35dac35
edi: fix consumer mixin test
simahawk Aug 19, 2022
f8ef334
edi: improve consumer mixin w/ origin
simahawk Aug 19, 2022
c6f0a6c
edi: add test for create child/ack
simahawk Aug 19, 2022
55ae3e6
edi: add 'ack for' on type
simahawk Aug 19, 2022
7c5d7d3
edi: improve exc type search
simahawk Aug 19, 2022
9336bfa
edi: fix ack record compute
simahawk Aug 22, 2022
1a25c3a
edi: fix exchange ordering
simahawk Aug 22, 2022
330ee79
edi: fix record and type copy on fields
simahawk Aug 25, 2022
8564d47
edi: fix error msg typo
simahawk Aug 27, 2022
eff7d36
edi: add exc.type.set_settings method
simahawk Aug 27, 2022
b576941
edi: improve chatter msg w/ type detail
simahawk Aug 27, 2022
617ca9b
edi: fix _cron_check_output_exchange_sync
simahawk Aug 28, 2022
a3c8baa
[UPD] Update edi_oca.pot
Aug 29, 2022
76e1dba
edi_oca 14.0.1.14.0
OCA-git-bot Aug 29, 2022
6f62b4d
Update translation files
oca-transbot Aug 29, 2022
3c67ea1
edi: fix backward compat usage of _has_exchange_record_domain
simahawk Sep 5, 2022
06da4ce
edi_oca 14.0.1.14.1
OCA-git-bot Sep 5, 2022
ab49ae8
edi: allow search consumers by exc type
simahawk Sep 2, 2022
6e5c15c
edi: fix action_view_edi_records
simahawk Sep 2, 2022
d42652a
edi: improve consumer record count perf
simahawk Sep 2, 2022
8202d15
edi: fix record missing indexes
simahawk Sep 2, 2022
c2116a6
edi: imp backend check input/output
simahawk Sep 2, 2022
d2d5d47
edi: improve cron names
simahawk Sep 2, 2022
52fc4d5
edi: exchange type add TODO
simahawk Sep 5, 2022
ce67875
[UPD] Update edi_oca.pot
Sep 6, 2022
2ad4bbd
edi_oca 14.0.1.15.0
OCA-git-bot Sep 6, 2022
70cdd52
Update translation files
oca-transbot Sep 6, 2022
7e10b2a
edi: add test for exc.record.action_retry
simahawk Sep 2, 2022
41b24db
edi: fix exc.record._compute_retryable
simahawk Sep 2, 2022
3f0867f
edi: add quick exec option by type
simahawk Sep 2, 2022
edef7c0
[UPD] Update edi_oca.pot
Sep 6, 2022
b0dd8c0
edi_oca 14.0.1.16.0
OCA-git-bot Sep 6, 2022
81b3df5
Update translation files
oca-transbot Sep 6, 2022
3bcac96
edi: drop ack record auto create
simahawk Sep 16, 2022
0362733
edi_oca 14.0.1.16.1
OCA-git-bot Oct 1, 2022
cc9a32e
edi: fix _get_component ctx propagation
simahawk Oct 5, 2022
5ee6539
edi_oca 14.0.1.16.2
OCA-git-bot Oct 5, 2022
8a6097d
[FIX] edi: output might be not UTF-8 encodable, like PDFs
etobella Jun 23, 2021
7d61922
edi_oca 14.0.1.16.3
OCA-git-bot Nov 30, 2022
bd79661
edi: add 'as_bytes' option to _get_file_content
simahawk Oct 3, 2022
023835d
edi_oca 14.0.1.17.0
OCA-git-bot May 16, 2023
fc8b052
edi_oca: avoid backend mismatch
florentx May 16, 2023
0671ad9
edi_oca: avoid ghost exchange records
florentx May 16, 2023
5bfcba3
edi_oca: log warning for deleted records
florentx May 17, 2023
bdbfa64
edi_oca: assertion was not executed
florentx May 17, 2023
b6c84bf
edi: unify action complete notification
simahawk May 17, 2023
60e078a
edi: trigger generic event on action complete
simahawk May 17, 2023
7f3f8ee
edi_oca 14.0.1.17.1
OCA-git-bot May 17, 2023
90d3b48
edi_oca 14.0.1.17.2
OCA-git-bot May 17, 2023
013c581
edi_oca 14.0.1.17.3
OCA-git-bot May 18, 2023
bc7b571
edi: trigger generic event on related record
simahawk May 18, 2023
c3a3905
edi: mark every session w/ 'edi_framework' ctx key
simahawk May 18, 2023
fd96123
edi: exc.record._set_related_record use sudo
simahawk May 19, 2023
d072df6
edi: speed up exchange record views
simahawk May 22, 2023
5e73a90
edi: add 'active' field to exchange type
simahawk May 24, 2023
9347ad8
edi: improve backend view filter inactive
simahawk May 24, 2023
5e5227c
[UPD] Update edi_oca.pot
May 25, 2023
58867a6
edi_oca 14.0.1.18.0
OCA-git-bot May 25, 2023
c810a4b
Update translation files
weblate May 25, 2023
c5f3a1e
edi: fix related record missing broken views
simahawk May 29, 2023
d927e72
[UPD] Update edi_oca.pot
May 30, 2023
c8c9bad
edi_oca 14.0.1.18.1
OCA-git-bot May 30, 2023
f30c2f2
Update translation files
weblate May 30, 2023
daacdca
edi: add disable flag to consumer
simahawk May 26, 2023
5ebc87d
edi: allow enable/disable exc type by partner
simahawk May 29, 2023
4ebf97c
[UPD] Update edi_oca.pot
Aug 11, 2023
2e5c13b
edi_oca 14.0.1.19.0
OCA-git-bot Aug 11, 2023
6a2307d
Update translation files
weblate Aug 11, 2023
a41f71b
edi: refactor model rules w/ specific model
simahawk Jul 4, 2023
c112b88
edi: unify menu item labels
simahawk Jul 4, 2023
d762693
edi: allow form btn actions customization
simahawk Jul 4, 2023
ba24fba
edi: refactor model rules backward compat
simahawk Aug 9, 2023
db52b0a
edi_oca: bump 14.0.1.20.0
simahawk Aug 12, 2023
86e6d77
[UPD] Update edi_oca.pot
Aug 21, 2023
c7b0ca0
[UPD] README.rst
OCA-git-bot Aug 21, 2023
b9de773
edi_oca: fix consumer mixin exchange record count
petrus-v Jun 23, 2023
3b49484
edi_oca 14.0.1.20.1
OCA-git-bot Aug 30, 2023
ac8af3e
[BPRT] edi: Backport from 14.0
etobella Mar 11, 2021
bd5a03b
[UPD] copier dotfiles
HviorForgeFlow Jul 26, 2023
9ac0f9e
fixup! [BPRT] edi: Backport from 14.0
HviorForgeFlow Sep 1, 2023
f41a641
fixup! [BPRT] edi: Backport from 14.0
HviorForgeFlow Sep 1, 2023
db8f2b6
fixup! [BPRT] edi: Backport from 14.0
HviorForgeFlow Sep 1, 2023
8ef9097
[FIX] edi_oca: avoid flooding error in the record chatter
MiquelRForgeFlow Oct 25, 2023
6e2c0d4
[IMP] edi_oca: Show traceback on exception errors
HviorForgeFlow Nov 6, 2023
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
21 changes: 21 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.14.2
_src_path: https://github.com/OCA/oca-addons-repo-template.git
ci: GitHub
generate_requirements_txt: true
github_check_license: false
github_ci_extra_env: {}
github_enable_codecov: true
github_enable_makepot: true
github_enable_stale_action: true
github_enforce_dev_status_compatibility: false
include_wkhtmltopdf: false
odoo_version: 12.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
rebel_module_groups: []
repo_description: Electronic Data Interchange modules
repo_name: Electronic Data Interchange modules
repo_slug: edi
repo_website: https://github.com/OCA/edi

4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[.eslintrc,*.{json,yml,yaml,rst,md}]
[*.{json,yml,yaml,rst,md}]
indent_size = 2

# Do not configure editor for libs and autogenerated content
[*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst]
[{*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst}]
charset = unset
end_of_line = unset
indent_size = unset
Expand Down
11 changes: 11 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
# E123,E133,E226,E241,E242 are ignored by default by pep8 and flake8
# F811 is legal in odoo 8 when we implement 2 interfaces for a method
# F601 pylint support this case with expected tests
# W503 changed by W504 and OCA prefers allow both
# E203: whitespace before ':' (black behaviour and not pep8 compliant)
ignore = E123,E133,E226,E241,E242,F811,F601,W503,W504,E203
max-line-length = 88
per-file-ignores=
__init__.py:F401

37 changes: 37 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: pre-commit

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

jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.6"
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
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
- 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@v4
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@v4
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:
- "12.0*"
push:
branches:
- "12.0"
- "12.0-ocabot-*"

jobs:
unreleased-deps:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v2
- 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-20.04
container: ${{ matrix.container }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.6-odoo12.0:latest
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb12.0:latest
name: test with OCB
services:
postgres:
image: postgres:9.6
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install addons and dependencies
run: oca_install_addons
- name: Check licenses
run: manifestoo -d . check-licenses
continue-on-error: true
- name: Check development status
run: manifestoo -d . check-dev-status --default-dev-status=Beta
continue-on-error: true
- name: Initialize test db
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- 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' }}
21 changes: 18 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
/.venv
/.pytest_cache

# C extensions
*.so
Expand All @@ -13,14 +15,14 @@ build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
*.eggs

# Installer logs
pip-log.txt
Expand All @@ -40,6 +42,19 @@ coverage.xml
# Pycharm
.idea

# Eclipse
.settings

# Visual Studio cache/options directory
.vs/
.vscode

# OSX Files
.DS_Store

# Django stuff:
*.log

# Mr Developer
.mr.developer.cfg
.project
Expand All @@ -55,5 +70,5 @@ docs/_build/
*~
*.swp

# OSX Files
*.DS_Store
# OCA rules
!static/lib/
59 changes: 59 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
exclude: |
(?x)
# NOT INSTALLABLE ADDONS
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
# We don't want to mess with tool-generated files
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
# Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$|
# Library files can have extraneous formatting (even minimized)
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
python: python3.6
repos:
- repo: https://github.com/oca/maintainer-tools
rev: ab1d7f6
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website
args: ["https://github.com/OCA/edi"]
- repo: https://github.com/acsone/setuptools-odoo
rev: 3.1.8
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
args:
- --output
- requirements.txt
- --header
- "# generated from manifests external_dependencies"
- repo: https://github.com/OCA/mirrors-flake8
rev: v3.4.1
hooks:
- id: flake8
name: flake8 excluding __init__.py
exclude: __init__\.py
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.5.3
hooks:
- id: pylint
name: pylint with optional checks
args:
- --rcfile=.pylintrc
- --exit-zero
verbose: true
additional_dependencies: &pylint_deps
- pylint-odoo==3.5.0
- id: pylint
name: pylint with mandatory checks
args:
- --rcfile=.pylintrc-mandatory
additional_dependencies: *pylint_deps

Loading
Loading