Skip to content

Commit ea55c1b

Browse files
Copier update
1 parent 261a933 commit ea55c1b

File tree

24 files changed

+1104
-284
lines changed

24 files changed

+1104
-284
lines changed

.copier-answers.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.14.2
2+
_commit: v1.20
33
_src_path: https://github.com/OCA/oca-addons-repo-template.git
44
ci: GitHub
5-
dependency_installation_mode: PIP
5+
convert_readme_fragments_to_markdown: false
66
generate_requirements_txt: true
77
github_check_license: true
88
github_ci_extra_env: {}
@@ -11,6 +11,7 @@ github_enable_makepot: false
1111
github_enable_stale_action: false
1212
github_enforce_dev_status_compatibility: false
1313
include_wkhtmltopdf: false
14+
odoo_test_flavor: OCB
1415
odoo_version: 16.0
1516
org_name: Akretion
1617
org_slug: akretion
@@ -19,6 +20,6 @@ repo_description: Misc Odoo modules maturing before going to a specific repo
1920
repo_name: Akretion Odoo Module Incubator
2021
repo_slug: ak-odoo-incubator
2122
repo_website: https://github.com/akretion/ak-odoo-incubator
22-
travis_apt_packages: []
23-
travis_apt_sources: []
23+
use_pyproject_toml: false
24+
use_ruff: false
2425

.eslintrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ globals:
2222
odoo: readonly
2323
openerp: readonly
2424
owl: readonly
25+
luxon: readonly
2526

2627
# Styling is handled by Prettier, so we only need to enable AST rules;
2728
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890

.github/workflows/pre-commit.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-22.04
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.11"
1820
- name: Get python version
1921
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
2022
- uses: actions/cache@v1
@@ -25,6 +27,15 @@ jobs:
2527
run: pip install pre-commit
2628
- name: Run pre-commit
2729
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
2839
- name: Check that all files generated by pre-commit are in git
2940
run: |
3041
newfiles="$(git ls-files --others --exclude-from=.gitignore)"

.github/workflows/test.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
name: Detect unreleased dependencies
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818
- run: |
1919
for reqfile in requirements.txt test-requirements.txt ; do
2020
if [ -f ${reqfile} ] ; then
@@ -35,11 +35,9 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
include:
38-
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
39-
makepot: "false"
40-
name: test with Odoo
4138
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
4239
name: test with OCB
40+
makepot: "false"
4341
services:
4442
postgres:
4543
image: postgres:12.0
@@ -50,7 +48,7 @@ jobs:
5048
ports:
5149
- 5432:5432
5250
steps:
53-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v3
5452
with:
5553
persist-credentials: false
5654
- name: Install addons and dependencies

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__/
33
*.py[cod]
44
/.venv
55
/.pytest_cache
6+
/.ruff_cache
67

78
# C extensions
89
*.so

.pre-commit-config.yaml

+19-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ exclude: |
1212
/static/(src/)?lib/|
1313
# Repos using Sphinx to generate docs don't need prettying
1414
^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/|
1519
# You don't usually want a bot to modify your legal texts
1620
(LICENSE.*|COPYING.*)
1721
default_language_version:
@@ -33,12 +37,25 @@ repos:
3337
language: fail
3438
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
3539
- repo: https://github.com/oca/maintainer-tools
36-
rev: 4cd2b852214dead80822e93e6749b16f2785b2fe
40+
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
3741
hooks:
3842
# update the NOT INSTALLABLE ADDONS section above
3943
- id: oca-update-pre-commit-excluded-addons
4044
- id: oca-fix-manifest-website
4145
args: ["https://github.com/akretion/ak-odoo-incubator"]
46+
- id: oca-gen-addon-readme
47+
args:
48+
- --addons-dir=.
49+
- --branch=16.0
50+
- --org-name=akretion
51+
- --repo-name=ak-odoo-incubator
52+
- --if-source-changed
53+
- --keep-source-digest
54+
- repo: https://github.com/OCA/odoo-pre-commit-hooks
55+
rev: v0.0.25
56+
hooks:
57+
- id: oca-checks-odoo-module
58+
- id: oca-checks-po
4259
- repo: https://github.com/myint/autoflake
4360
rev: v1.6.1
4461
hooks:
@@ -125,7 +142,7 @@ repos:
125142
name: flake8
126143
additional_dependencies: ["flake8-bugbear==21.9.2"]
127144
- repo: https://github.com/OCA/pylint-odoo
128-
rev: 7.0.2
145+
rev: v8.0.19
129146
hooks:
130147
- id: pylint_odoo
131148
name: pylint with optional checks

.pylintrc

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ load-plugins=pylint_odoo
55
score=n
66

77
[ODOOLINT]
8-
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
9-
manifest_required_authors=Akretion
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=16.0
8+
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
9+
manifest-required-authors=Akretion
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=16.0
1414

1515
[MESSAGES CONTROL]
1616
disable=all

.pylintrc-mandatory

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ load-plugins=pylint_odoo
44
score=n
55

66
[ODOOLINT]
7-
readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
8-
manifest_required_authors=Akretion
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=16.0
7+
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
8+
manifest-required-authors=Akretion
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=16.0
1313

1414
[MESSAGES CONTROL]
1515
disable=all

account_move_dalenys_import/README.rst

+13-26
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,25 @@
22
Journal Entry Danelys import
33
============================
44

5-
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
67
!! This file is generated by oca-gen-addon-readme !!
78
!! changes will be overwritten. !!
89
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:c51de8a7e48679e6304737fa5c987223979f7dc57d5b53b4fd6ce6e0136ae2dd
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
912
1013
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1114
:target: https://odoo-community.org/page/development-status
1215
:alt: Beta
1316
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
1417
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1518
:alt: License: AGPL-3
16-
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fak--odoo--incubator-lightgray.png?logo=github
17-
:target: https://github.com/OCA/ak-odoo-incubator/tree/16.0/account_move_dalenys_import
18-
:alt: OCA/ak-odoo-incubator
19-
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/ak-odoo-incubator-16-0/ak-odoo-incubator-16-0-account_move_dalenys_import
21-
:alt: Translate me on Weblate
22-
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
23-
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/ak-odoo-incubator&target_branch=16.0
24-
:alt: Try me on Runboat
19+
.. |badge3| image:: https://img.shields.io/badge/github-akretion%2Fak--odoo--incubator-lightgray.png?logo=github
20+
:target: https://github.com/akretion/ak-odoo-incubator/tree/16.0/account_move_dalenys_import
21+
:alt: akretion/ak-odoo-incubator
2522

26-
|badge1| |badge2| |badge3| |badge4| |badge5|
23+
|badge1| |badge2| |badge3|
2724

2825
This module extends the functionality of
2926
account_move_base_import, in order to handle the file format used for
@@ -37,10 +34,10 @@ Danelys (ex be2bill) card remitance
3734
Bug Tracker
3835
===========
3936

40-
Bugs are tracked on `GitHub Issues <https://github.com/OCA/ak-odoo-incubator/issues>`_.
37+
Bugs are tracked on `GitHub Issues <https://github.com/akretion/ak-odoo-incubator/issues>`_.
4138
In case of trouble, please check there if your issue has already been reported.
42-
If you spotted it first, help us smashing it by providing a detailed and welcomed
43-
`feedback <https://github.com/OCA/ak-odoo-incubator/issues/new?body=module:%20account_move_dalenys_import%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
39+
If you spotted it first, help us to smash it by providing a detailed and welcomed
40+
`feedback <https://github.com/akretion/ak-odoo-incubator/issues/new?body=module:%20account_move_dalenys_import%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4441

4542
Do not contact contributors directly about support or help with technical issues.
4643

@@ -55,16 +52,6 @@ Authors
5552
Maintainers
5653
~~~~~~~~~~~
5754

58-
This module is maintained by the OCA.
59-
60-
.. image:: https://odoo-community.org/logo.png
61-
:alt: Odoo Community Association
62-
:target: https://odoo-community.org
63-
64-
OCA, or the Odoo Community Association, is a nonprofit organization whose
65-
mission is to support the collaborative development of Odoo features and
66-
promote its widespread use.
67-
68-
This module is part of the `OCA/ak-odoo-incubator <https://github.com/OCA/ak-odoo-incubator/tree/16.0/account_move_dalenys_import>`_ project on GitHub.
55+
This module is part of the `akretion/ak-odoo-incubator <https://github.com/akretion/ak-odoo-incubator/tree/16.0/account_move_dalenys_import>`_ project on GitHub.
6956

70-
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
57+
You are welcome to contribute.

account_move_dalenys_import/static/description/index.html

+19-23
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
5+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
76
<title>Journal Entry Danelys import</title>
87
<style type="text/css">
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
11+
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
1615
17-
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
16+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1817
customize this style sheet.
1918
*/
2019

@@ -366,47 +365,44 @@ <h1 class="title">Journal Entry Danelys import</h1>
366365
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367366
!! This file is generated by oca-gen-addon-readme !!
368367
!! changes will be overwritten. !!
368+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369+
!! source digest: sha256:c51de8a7e48679e6304737fa5c987223979f7dc57d5b53b4fd6ce6e0136ae2dd
369370
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
370-
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/ak-odoo-incubator/tree/16.0/account_move_dalenys_import"><img alt="OCA/ak-odoo-incubator" src="https://img.shields.io/badge/github-OCA%2Fak--odoo--incubator-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/ak-odoo-incubator-16-0/ak-odoo-incubator-16-0-account_move_dalenys_import"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runboat.odoo-community.org/webui/builds.html?repo=OCA/ak-odoo-incubator&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
371+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/akretion/ak-odoo-incubator/tree/16.0/account_move_dalenys_import"><img alt="akretion/ak-odoo-incubator" src="https://img.shields.io/badge/github-akretion%2Fak--odoo--incubator-lightgray.png?logo=github" /></a></p>
371372
<p>This module extends the functionality of
372373
account_move_base_import, in order to handle the file format used for
373374
Danelys (ex be2bill) card remitance</p>
374375
<p><strong>Table of contents</strong></p>
375376
<div class="contents local topic" id="contents">
376377
<ul class="simple">
377-
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li>
378-
<li><a class="reference internal" href="#credits" id="id2">Credits</a><ul>
379-
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li>
380-
<li><a class="reference internal" href="#maintainers" id="id4">Maintainers</a></li>
378+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
379+
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
380+
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
381+
<li><a class="reference internal" href="#maintainers" id="toc-entry-4">Maintainers</a></li>
381382
</ul>
382383
</li>
383384
</ul>
384385
</div>
385386
<div class="section" id="bug-tracker">
386-
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1>
387-
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/ak-odoo-incubator/issues">GitHub Issues</a>.
387+
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
388+
<p>Bugs are tracked on <a class="reference external" href="https://github.com/akretion/ak-odoo-incubator/issues">GitHub Issues</a>.
388389
In case of trouble, please check there if your issue has already been reported.
389-
If you spotted it first, help us smashing it by providing a detailed and welcomed
390-
<a class="reference external" href="https://github.com/OCA/ak-odoo-incubator/issues/new?body=module:%20account_move_dalenys_import%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
390+
If you spotted it first, help us to smash it by providing a detailed and welcomed
391+
<a class="reference external" href="https://github.com/akretion/ak-odoo-incubator/issues/new?body=module:%20account_move_dalenys_import%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
391392
<p>Do not contact contributors directly about support or help with technical issues.</p>
392393
</div>
393394
<div class="section" id="credits">
394-
<h1><a class="toc-backref" href="#id2">Credits</a></h1>
395+
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
395396
<div class="section" id="authors">
396-
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
397+
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
397398
<ul class="simple">
398399
<li>Akretion</li>
399400
</ul>
400401
</div>
401402
<div class="section" id="maintainers">
402-
<h2><a class="toc-backref" href="#id4">Maintainers</a></h2>
403-
<p>This module is maintained by the OCA.</p>
404-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
405-
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
406-
mission is to support the collaborative development of Odoo features and
407-
promote its widespread use.</p>
408-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/ak-odoo-incubator/tree/16.0/account_move_dalenys_import">OCA/ak-odoo-incubator</a> project on GitHub.</p>
409-
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
403+
<h2><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h2>
404+
<p>This module is part of the <a class="reference external" href="https://github.com/akretion/ak-odoo-incubator/tree/16.0/account_move_dalenys_import">akretion/ak-odoo-incubator</a> project on GitHub.</p>
405+
<p>You are welcome to contribute.</p>
410406
</div>
411407
</div>
412408
</div>

0 commit comments

Comments
 (0)