Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
629 commits
Select commit Hold shift + click to select a range
e0e38cc
[IMP] update dotfiles
OCA-git-bot May 1, 2024
d64d9af
Added translation using Weblate (Italian)
mymage May 3, 2024
cd000f5
Added translation using Weblate (Italian)
mymage May 3, 2024
59c0272
Added translation using Weblate (Italian)
mymage May 3, 2024
dac8435
Added translation using Weblate (Italian)
mymage May 3, 2024
1542c71
Translated using Weblate (Italian)
francesco-ooops May 28, 2024
2555417
Add purchase_cancel_remaining_delivery
TDu May 30, 2024
ce982f5
Translated using Weblate (French)
ahmedtrigui Jun 11, 2024
5c4572f
Translated using Weblate (French)
ahmedtrigui Jun 11, 2024
6dc407e
Translated using Weblate (French)
Jun 11, 2024
8167817
Translated using Weblate (French)
Jun 11, 2024
14f8dd0
Translated using Weblate (Italian)
sergiocorato Jun 13, 2024
a4590ae
Translated using Weblate (French)
ahmedtrigui Jun 14, 2024
e6ee1fd
[FIX] purchase_order_type: preserve order type when matches company
dalonsod Jun 14, 2024
a938863
Translated using Weblate (French)
ahmedtrigui Jun 14, 2024
afdcd08
Added translation using Weblate (French)
ahmedtrigui Jun 14, 2024
83e95d8
Translated using Weblate (French)
Jun 14, 2024
69b9478
Translated using Weblate (French)
ahmedtrigui Jun 14, 2024
1c24ab0
Translated using Weblate (French)
ahmedtrigui Jun 14, 2024
39744d4
Translated using Weblate (French)
Jun 14, 2024
9f22fc4
Merge PR #2285 into 14.0
OCA-git-bot Jun 17, 2024
ab051de
[UPD] Update purchase_cancel_remaining_delivery.pot
Jun 17, 2024
bc84a21
[BOT] post-merge updates
OCA-git-bot Jun 17, 2024
b19a159
Merge PR #2310 into 14.0
OCA-git-bot Jun 21, 2024
0ee53df
[BOT] post-merge updates
OCA-git-bot Jun 21, 2024
c6f00bc
[ADD] purchase_line_service_qty_received
raumschmiede-joshuaL Aug 1, 2024
e7ebf31
Merge PR #2377 into 14.0
OCA-git-bot Aug 8, 2024
9b1e810
[UPD] Update purchase_line_service_qty_received.pot
Aug 8, 2024
60d4d1a
[BOT] post-merge updates
OCA-git-bot Aug 8, 2024
5ce684c
Translated using Weblate (Italian)
mymage Aug 20, 2024
9c019ee
Translated using Weblate (Italian)
mymage Aug 22, 2024
c68fde8
Translated using Weblate (Italian)
mymage Aug 23, 2024
7f3680f
Added translation using Weblate (Italian)
francesco-ooops Sep 12, 2024
4233544
Translated using Weblate (Italian)
francesco-ooops Sep 12, 2024
658f8da
[REF] purchase_split_by_date: Support new PO line on a confirmed PO
jbaudoux Aug 17, 2021
4fb9014
purchase_split_by_date: Force propagate date on PO line and date is c…
jbaudoux Aug 20, 2021
d267c51
Fix not split picking on scheduled date set in the past
TDu Sep 7, 2021
b30945b
[MIG] purchase_delivery_split_date: migrate refactoring to 14.0
sebalix Jan 11, 2022
5e6cb0d
Merge PR #1326 into 14.0
OCA-git-bot Nov 12, 2024
b4149fb
[UPD] Update purchase_delivery_split_date.pot
Nov 12, 2024
407ba1a
[BOT] post-merge updates
OCA-git-bot Nov 12, 2024
cc68836
Update translation files
weblate Nov 12, 2024
2f4cf0e
Added translation using Weblate (French)
ahmedtrigui Nov 18, 2024
d0a33c1
Translated using Weblate (French)
ahmedtrigui Nov 18, 2024
3ef4cc0
Added translation using Weblate (Italian)
mymage Dec 20, 2024
dcadc08
Added translation using Weblate (Italian)
mymage Dec 20, 2024
c859508
Added translation using Weblate (Italian)
mymage Dec 20, 2024
86a0be3
Added translation using Weblate (Italian)
mymage Dec 20, 2024
cdc4b51
Added translation using Weblate (Italian)
mymage Dec 20, 2024
b9bae8d
Added translation using Weblate (Italian)
mymage Dec 20, 2024
5f8e827
Added translation using Weblate (Italian)
mymage Dec 20, 2024
394ef9e
Added translation using Weblate (Italian)
mymage Dec 20, 2024
8d2da0a
Added translation using Weblate (Italian)
mymage Dec 20, 2024
a4e9296
Added translation using Weblate (Italian)
mymage Dec 20, 2024
1a81714
Added translation using Weblate (Italian)
mymage Dec 20, 2024
720b47a
Added translation using Weblate (Italian)
mymage Dec 20, 2024
19c9291
Added translation using Weblate (Italian)
mymage Dec 20, 2024
188046c
Added translation using Weblate (Italian)
mymage Dec 20, 2024
fc219c9
Added translation using Weblate (Italian)
mymage Dec 20, 2024
8e48550
Added translation using Weblate (Italian)
mymage Dec 20, 2024
7ccde23
Added translation using Weblate (Italian)
mymage Dec 20, 2024
7c40a80
Added translation using Weblate (Italian)
mymage Dec 20, 2024
c9ed770
Added translation using Weblate (Italian)
mymage Dec 20, 2024
95a467e
Added translation using Weblate (Italian)
mymage Dec 20, 2024
815ab96
Added translation using Weblate (Italian)
mymage Dec 20, 2024
54a307f
Added translation using Weblate (Italian)
mymage Dec 20, 2024
74bffb3
Added translation using Weblate (Italian)
mymage Dec 20, 2024
471f8b5
Added translation using Weblate (Italian)
mymage Dec 20, 2024
88a76f6
Added translation using Weblate (Italian)
mymage Dec 23, 2024
73f1d6e
Added translation using Weblate (Italian)
mymage Dec 23, 2024
3e0dc5d
Added translation using Weblate (Italian)
mymage Dec 23, 2024
41d3e00
Added translation using Weblate (Italian)
mymage Dec 23, 2024
b74edf4
Added translation using Weblate (Italian)
mymage Dec 23, 2024
9881aab
Added translation using Weblate (Italian)
mymage Dec 23, 2024
fa747b8
Added translation using Weblate (Italian)
mymage Dec 23, 2024
d8edd53
Added translation using Weblate (Italian)
mymage Dec 23, 2024
7a09613
Added translation using Weblate (Italian)
mymage Dec 23, 2024
bf0e278
Added translation using Weblate (Italian)
mymage Dec 23, 2024
4976cd2
Added translation using Weblate (Italian)
mymage Dec 23, 2024
6f2eff7
Added translation using Weblate (Italian)
mymage Dec 23, 2024
e13ba3c
Added translation using Weblate (Italian)
mymage Dec 23, 2024
5468d8d
Added translation using Weblate (Italian)
mymage Dec 23, 2024
a0d2130
Added translation using Weblate (Italian)
mymage Dec 24, 2024
4b2f306
Added translation using Weblate (Italian)
mymage Dec 24, 2024
4db4e93
Added translation using Weblate (Italian)
mymage Dec 28, 2024
5d6b37c
Added translation using Weblate (Italian)
mymage Dec 28, 2024
2cc57b1
Added translation using Weblate (Italian)
mymage Dec 28, 2024
2412a78
Added translation using Weblate (Italian)
mymage Dec 28, 2024
2d2cd0f
Added translation using Weblate (Italian)
mymage Dec 28, 2024
bddea26
Added translation using Weblate (Italian)
mymage Dec 29, 2024
623cfd4
[IMP] update dotfiles
OCA-git-bot Feb 2, 2025
fdc507e
[FIX] purchase_advance_payment: fix payment_state
WesleyOliveira98 Feb 17, 2025
e771489
Added translation using Weblate (Portuguese)
WesleyOliveira98 Feb 25, 2025
37dfc4a
Added translation using Weblate (Portuguese (Brazil))
WesleyOliveira98 Feb 25, 2025
a2e4a2c
Translated using Weblate (Portuguese (Brazil))
WesleyOliveira98 Feb 25, 2025
a26099f
Translated using Weblate (Italian)
francesco-ooops Mar 13, 2025
f319db9
Translated using Weblate (Italian)
mymage Mar 14, 2025
f18ac60
Translated using Weblate (Italian)
mymage Mar 14, 2025
01f8ed9
Translated using Weblate (Italian)
mymage Mar 14, 2025
6bbe6ce
Translated using Weblate (Italian)
mymage Mar 14, 2025
910ccf0
Translated using Weblate (Italian)
mymage Mar 14, 2025
2676c3b
Translated using Weblate (Italian)
mymage Mar 14, 2025
c2a7f71
Translated using Weblate (Italian)
mymage Mar 14, 2025
3daa584
Translated using Weblate (Italian)
mymage Mar 14, 2025
1798d81
Translated using Weblate (Italian)
mymage Mar 14, 2025
c3283c8
Translated using Weblate (Italian)
mymage Mar 14, 2025
837d5df
Translated using Weblate (Italian)
mymage Mar 14, 2025
f829d2d
Translated using Weblate (Italian)
mymage Mar 14, 2025
ce48955
Translated using Weblate (Italian)
mymage Mar 14, 2025
4250bbc
Translated using Weblate (Italian)
mymage Mar 14, 2025
53c4e27
Merge PR #2572 into 14.0
OCA-git-bot Mar 30, 2025
b1c4330
[BOT] post-merge updates
OCA-git-bot Mar 30, 2025
d50400c
[IMP] purchase_advance_payment: add unit test advance_payment_status …
WesleyOliveira98 Apr 1, 2025
febae36
Merge PR #2631 into 14.0
OCA-git-bot Apr 1, 2025
921eba8
[BOT] post-merge updates
OCA-git-bot Apr 1, 2025
77e734b
Translated using Weblate (Italian)
mymage Apr 14, 2025
66b9e6d
[IMP] purchase_advance_payment: use is_zero method instead of raw com…
WesleyOliveira98 Apr 17, 2025
30b279d
Merge PR #2651 into 14.0
OCA-git-bot Apr 23, 2025
0890671
[BOT] post-merge updates
OCA-git-bot Apr 23, 2025
6166616
[12.0][ADD] Add purchase_requisition_line_description module
ajaniszewska-dev Apr 14, 2021
b8d91c7
[IMP] purchase_requisition_line_description: black, isort, prettier
grindtildeath Jun 7, 2024
e2eab5c
[MIG] purchase_requisition_line_description: Migration to 14.0
matiasperalta1 Jan 13, 2022
d9e53b9
purchase_req_line_desc: Fix view replacement
grindtildeath Jun 12, 2024
a643f55
Merge PR #2301 into 14.0
OCA-git-bot May 15, 2025
f192cb9
[UPD] Update purchase_requisition_line_description.pot
May 15, 2025
001e136
[BOT] post-merge updates
OCA-git-bot May 15, 2025
2770d1b
Translated using Weblate (Italian)
mymage May 20, 2025
9510ca7
Translated using Weblate (Italian)
mymage May 20, 2025
0c7d673
Translated using Weblate (Italian)
mymage May 20, 2025
40d0c67
Translated using Weblate (Italian)
mymage May 20, 2025
b5bb174
Translated using Weblate (Italian)
mymage May 20, 2025
2181d52
Translated using Weblate (Italian)
mymage May 20, 2025
3cd7bb9
Translated using Weblate (Italian)
mymage May 20, 2025
50f8d2d
Translated using Weblate (Italian)
mymage May 20, 2025
c36fbec
Translated using Weblate (Italian)
mymage May 20, 2025
663863d
Translated using Weblate (Italian)
mymage May 20, 2025
6314def
Translated using Weblate (Italian)
mymage May 20, 2025
39b1676
Translated using Weblate (Italian)
mymage May 20, 2025
21fec8c
Translated using Weblate (Italian)
mymage May 20, 2025
c0b58a9
Translated using Weblate (Italian)
mymage May 20, 2025
e598ecd
Translated using Weblate (Italian)
mymage May 20, 2025
dcf3837
Translated using Weblate (Italian)
mymage May 20, 2025
3afadbe
Translated using Weblate (Italian)
mymage May 21, 2025
c796a29
Translated using Weblate (Italian)
mymage May 21, 2025
5a8f82f
Translated using Weblate (Italian)
mymage May 21, 2025
2a4b48a
Translated using Weblate (Italian)
mymage May 21, 2025
7eb8b72
Translated using Weblate (Italian)
mymage May 21, 2025
6037149
Translated using Weblate (Italian)
mymage May 21, 2025
937540c
Translated using Weblate (Italian)
mymage May 21, 2025
133b110
Translated using Weblate (Italian)
mymage May 21, 2025
299db66
Translated using Weblate (Italian)
mymage May 21, 2025
659ede2
Translated using Weblate (Italian)
mymage May 21, 2025
165c3c1
Translated using Weblate (Italian)
mymage May 21, 2025
c0e50e7
Translated using Weblate (Italian)
mymage May 21, 2025
6728d1f
Translated using Weblate (Italian)
mymage May 21, 2025
a91b319
Translated using Weblate (Italian)
mymage May 21, 2025
55ac536
Translated using Weblate (Italian)
mymage May 21, 2025
be2e6c9
Translated using Weblate (Italian)
mymage May 21, 2025
1fa7b21
Translated using Weblate (Italian)
mymage May 21, 2025
67b009c
Translated using Weblate (Italian)
mymage May 21, 2025
db28461
Translated using Weblate (Italian)
mymage May 21, 2025
bea2240
Translated using Weblate (Italian)
mymage May 21, 2025
dbdcf0b
Translated using Weblate (Italian)
mymage May 21, 2025
ecfb4ce
Translated using Weblate (Italian)
mymage May 21, 2025
c98b734
Translated using Weblate (Italian)
mymage May 21, 2025
8ce5a6a
Translated using Weblate (Italian)
mymage May 21, 2025
2331d67
Translated using Weblate (Italian)
mymage May 21, 2025
c8d0c33
Translated using Weblate (Italian)
mymage May 21, 2025
acdd89d
Translated using Weblate (Italian)
mymage May 21, 2025
5e12cd6
[FIX] purchase_quick: price_unit when qty_to_process is less than sel…
Oct 30, 2023
80f1849
Merge PR #2688 into 14.0
OCA-git-bot May 23, 2025
0046a07
[UPD] Update purchase_quick.pot
May 23, 2025
d04f66a
[BOT] post-merge updates
OCA-git-bot May 23, 2025
495e266
Update translation files
weblate May 23, 2025
ef72e49
Translated using Weblate (Italian)
mymage May 27, 2025
744e839
Translated using Weblate (Italian)
mymage May 27, 2025
c7eae06
Translated using Weblate (Italian)
mymage May 27, 2025
9cf7be5
Translated using Weblate (Italian)
mymage May 27, 2025
4048da9
Translated using Weblate (Italian)
mymage May 27, 2025
8ce7854
Translated using Weblate (Italian)
mymage May 27, 2025
447f4e8
Translated using Weblate (Italian)
mymage May 27, 2025
85808d7
Translated using Weblate (Italian)
mymage May 27, 2025
004f04b
Translated using Weblate (Italian)
mymage May 27, 2025
e56b8a5
Translated using Weblate (Italian)
mymage May 27, 2025
25cae0e
Translated using Weblate (Italian)
mymage May 27, 2025
810491d
Translated using Weblate (Italian)
mymage May 27, 2025
8929b44
Translated using Weblate (Italian)
mymage May 27, 2025
3accfe8
Translated using Weblate (Italian)
mymage May 27, 2025
f3b83ff
[UPD] addons table in README.md
OCA-git-bot Jun 4, 2025
98cd430
Translated using Weblate (Italian)
mymage Jun 4, 2025
c46025e
Translated using Weblate (Turkish)
bo-eska Jun 13, 2025
cbc649f
[FIX] purchase_order_line_sequence: fix test warning
dreispt Jun 14, 2025
3ec5aad
Translated using Weblate (Italian)
francesco-ooops Jul 22, 2025
21d5fa4
Translated using Weblate (Italian)
mymage Jul 23, 2025
945209f
Translated using Weblate (Italian)
francesco-ooops Jul 30, 2025
484a933
Translated using Weblate (Italian)
francesco-ooops Aug 4, 2025
522027d
Translated using Weblate (Italian)
mymage Aug 20, 2025
6604cea
[11.0] Add purchase_line_procurement_group
grindtildeath May 18, 2018
0026906
Switch orderpoints creation
grindtildeath May 22, 2018
01313f9
Use bigger orderpoints
grindtildeath May 22, 2018
8f2c778
Revert "Use bigger orderpoints"
grindtildeath May 23, 2018
3ec49ed
Revert "Switch orderpoints creation"
grindtildeath May 23, 2018
dbdbebb
Force parent computation on stock.location to fix the tests
grindtildeath May 23, 2018
5d986be
[Fix] Use PO line procurement group on generated stock moves
grindtildeath Jul 18, 2018
41b22ab
[Fix] Do not merge destination moves with different procurement groups
grindtildeath Jul 18, 2018
0d3eea4
Fix missing return
grindtildeath Jul 18, 2018
aa32a39
Add test, bump version, update readme
grindtildeath Jul 18, 2018
2818361
[UPD] Update purchase_line_procurement_group.pot
oca-travis Jul 23, 2018
965c886
[ADD] icon.png
OCA-git-bot Apr 3, 2019
8eab499
[12.0][MIG] purchase_line_procurement_group
kittiu Apr 9, 2019
6cef7a2
[UPD] Update purchase_line_procurement_group.pot
oca-travis May 28, 2019
164f136
[UPD] README.rst
OCA-git-bot Jul 29, 2019
69d0651
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
b987bfc
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 2, 2019
6b99ae0
fixes an error that prevented confirming a PO when a product
JordiBForgeFlow Nov 25, 2019
68c0b43
purchase_line_procurement_group 12.0.1.0.1
OCA-git-bot Nov 26, 2019
f14da7d
Added translation using Weblate (French)
ypapouin Oct 4, 2020
6b54cff
Translated using Weblate (French)
ypapouin Oct 4, 2020
089f46b
[IMP] purchase_line_procurement_group: black, isort, prettier
phuctranfxvn Nov 4, 2020
4a25f64
[MIG] purchase_line_procurement_group: Migration to 13.0
phuctranfxvn Nov 11, 2020
2f3944d
[UPD] Update purchase_line_procurement_group.pot
oca-travis Feb 16, 2021
4ffd36e
[FIX] purchase_line_procurement_group: Fix tests
victoralmau Sep 7, 2021
e406d00
[MIG] purchase_line_procurement_group: Migration to 14.0
ypapouin Dec 19, 2022
25ed271
[FIX] purchase_line_procurement_group: Refactoring after odoo/odoo#41…
ypapouin Mar 8, 2023
b2a5269
[FIX] purchase_line_procurement_group: Revert invalid test changes
ypapouin Mar 8, 2023
bdf4871
[IMP] purchase_line_procurement_group: Rename purchase line file
ypapouin Mar 9, 2023
7a43ed3
[FIX] purchase_line_procurement_group: Also apply filtering with unse…
ypapouin Mar 9, 2023
011c057
Merge PR #1798 into 14.0
OCA-git-bot Aug 25, 2025
37d1194
[UPD] Update purchase_line_procurement_group.pot
Aug 25, 2025
48b51ae
[BOT] post-merge updates
OCA-git-bot Aug 25, 2025
8b4be98
Merge PR #2719 into 14.0
OCA-git-bot Aug 25, 2025
c1f45c3
[BOT] post-merge updates
OCA-git-bot Aug 25, 2025
dec5d16
Translated using Weblate (Portuguese (Brazil))
douglascstd Sep 3, 2025
075f99e
Translated using Weblate (Italian)
mymage Sep 17, 2025
c5ca240
[FIX]purchase request find procurement group method
AaronHForgeFlow Jan 29, 2020
50cbfd1
Merge PR #2828 into 14.0
OCA-git-bot Sep 29, 2025
bb361d0
[BOT] post-merge updates
OCA-git-bot Sep 29, 2025
1e17279
[FIX] purchase_propagate_qty: typo in authorship
MiquelRForgeFlow Oct 14, 2025
061ac9f
Merge PR #2847 into 14.0
OCA-git-bot Oct 15, 2025
6cd6f2a
[BOT] post-merge updates
OCA-git-bot Oct 15, 2025
cb1ad15
Translated using Weblate (Italian)
francesco-ooops Nov 28, 2025
adc99e1
[14.0][ADD] purchase_manual_add_supplierinfo
chafique-delli Oct 5, 2023
78abc2d
purchase_manual_add_supplierinfo: hack to be able to do an action wit…
sebastienbeau Nov 27, 2023
b66deed
refactoring and improvements
chafique-delli Dec 7, 2023
691e8bb
purchase_manual_add_supplierinfo_group: add module
sebastienbeau Mar 28, 2024
74685d4
purchase_manual_add_supplierinfo: improve test and fix skiping from l…
sebastienbeau Mar 28, 2024
bc11d79
purchase_manual_add_supplierinfo: fix issue when creating supplier on…
sebastienbeau Mar 29, 2024
49837b8
purchase_manual_add_supplierinfo: fix issue with note
sebastienbeau Apr 17, 2024
ab822f2
[ADD] default value for the default_code on wizard
mathieudelva Nov 24, 2025
bf3da70
Merge branch '14.0-ADD-purchase_manual_add_supplierinfo' into 14.0-im…
mathieudelva Dec 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 7 additions & 5 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.14.2
_commit: v1.29
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
dependency_installation_mode: PIP
convert_readme_fragments_to_markdown: false
enable_checklog_odoo: false
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
Expand All @@ -11,18 +12,19 @@ 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:
- purchase_cancel_reason
- purchase_cancel_confirm
- purchase_order_type
- purchase_order_type,purchase_order_type_dashboard
- purchase_quick
repo_description: 'TODO: add repo description.'
repo_name: purchase-workflow
repo_slug: purchase-workflow
repo_website: https://github.com/OCA/purchase-workflow
travis_apt_packages: []
travis_apt_sources: []
use_pyproject_toml: false
use_ruff: false

1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ globals:
odoo: readonly
openerp: 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
17 changes: 14 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,29 @@ jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- 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@v1
- 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)"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Stale PRs and issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# General settings.
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ascending: true
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
for reqfile in requirements.txt test-requirements.txt ; do
if [ -f ${reqfile} ] ; then
Expand All @@ -37,39 +37,39 @@ jobs:
include:
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
include: "purchase_cancel_reason"
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
include: "purchase_cancel_reason"
name: test with OCB
makepot: "true"
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
include: "purchase_cancel_confirm"
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
include: "purchase_cancel_confirm"
name: test with OCB
makepot: "true"
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
include: "purchase_order_type,purchase_order_type_dashboard"
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
include: "purchase_order_type,purchase_order_type_dashboard"
name: test with OCB
makepot: "true"
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
include: "purchase_quick"
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
include: "purchase_quick"
name: test with OCB
makepot: "true"
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
exclude: "purchase_cancel_reason,purchase_cancel_confirm,purchase_order_type,purchase_order_type_dashboard,purchase_quick"
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
exclude: "purchase_cancel_reason,purchase_cancel_confirm,purchase_order_type,purchase_order_type_dashboard,purchase_quick"
name: test with OCB
makepot: "true"
services:
postgres:
image: postgres:9.6
Expand All @@ -83,7 +83,7 @@ jobs:
INCLUDE: "${{ matrix.include }}"
EXCLUDE: "${{ matrix.exclude }}"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install addons and dependencies
Expand All @@ -96,7 +96,9 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- 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' }}
14 changes: 14 additions & 0 deletions .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 @@ -24,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
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
55 changes: 43 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ exclude: |
# 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/|
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
# 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$|
# Don't bother non-technical authors with formatting issues in docs
readme/.*\.(rst|md)$|
# Ignore build and dist directories in addons
/build/|/dist/|
# Ignore test files in addons
/tests/samples/.*|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
Expand All @@ -33,14 +39,29 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
rev: ab1d7f6
rev: d5fab7ee87fceee858a3d01048c78a548974d935
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/purchase-workflow"]
- id: oca-gen-addon-readme
args:
- --addons-dir=.
- --branch=14.0
- --org-name=OCA
- --repo-name=purchase-workflow
- --if-source-changed
- --keep-source-digest
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.25
hooks:
- id: oca-checks-odoo-module
- id: oca-checks-po
args:
- --disable=po-pretty-format
- repo: https://github.com/myint/autoflake
rev: v1.4
rev: v1.5.3
hooks:
- id: autoflake
args:
Expand All @@ -54,25 +75,35 @@ repos:
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.1.2
- repo: local
hooks:
- id: prettier
name: prettier (with plugin-xml)
entry: prettier
args:
- --write
- --list-different
- --ignore-unknown
types: [text]
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
language: node
additional_dependencies:
- "prettier@2.1.2"
- "@prettier/plugin-xml@0.12.0"
args:
- --plugin=@prettier/plugin-xml
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.8.1
- repo: local
hooks:
- id: eslint
verbose: true
name: eslint
entry: eslint
args:
- --color
- --fix
verbose: true
types: [javascript]
language: node
additional_dependencies:
- "eslint@7.8.1"
- "eslint-plugin-jsdoc@"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
Expand Down Expand Up @@ -119,7 +150,7 @@ repos:
- --header
- "# generated from manifests external_dependencies"
- repo: https://github.com/PyCQA/flake8
rev: 3.8.3
rev: 5.0.0
hooks:
- id: flake8
name: flake8
Expand Down
Loading
Loading