Skip to content

Commit

Permalink
Merge pull request #542 from OCA/14.0-ocabot-update-dotfiles
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/l10n-switzerland (14.0-ocabot-update-dotfiles)
  • Loading branch information
bt-admin authored Feb 3, 2025
2 parents 5e79f16 + 9650bdf commit 3d49713
Show file tree
Hide file tree
Showing 196 changed files with 15,666 additions and 174 deletions.
22 changes: 14 additions & 8 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.17.2
_commit: v1.29
_src_path: gh:oca/oca-addons-repo-template
ci: Travis
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
include_wkhtmltopdf: false
github_enforce_dev_status_compatibility: true
include_wkhtmltopdf: true
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_name: l10n-switzerland
repo_description: Swiss Localization Modules
repo_name: Swiss Localization
repo_slug: l10n-switzerland
repo_website: https://github.com/OCA/l10n-switzerland
travis_apt_packages: []
travis_apt_sources: []
use_pyproject_toml: false
use_ruff: false

6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- 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') }}
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
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' }}
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
39 changes: 32 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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)
Expand All @@ -14,6 +14,10 @@ exclude: |
^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 @@ -35,7 +39,7 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
rev: 969238e47c07d0c40573acff81d170f63245d738
rev: d5fab7ee87fceee858a3d01048c78a548974d935
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
Expand All @@ -48,13 +52,16 @@ repos:
- --org-name=OCA
- --repo-name=l10n-switzerland
- --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 @@ -68,27 +75,45 @@ 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:
- "[email protected]"
- "@prettier/[email protected]"
<<<<<<< before updating
args:
- --plugin=@prettier/plugin-xml
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
# For ebill_paynet don't format the message template files
exclude: /messages/.*\.xml$|/components/wsdl/.*\.xml$|/tests/examples/.*\.xml$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.8.1
=======
- repo: local
>>>>>>> after updating
hooks:
- id: eslint
verbose: true
name: eslint
entry: eslint
args:
- --color
- --fix
verbose: true
types: [javascript]
language: node
additional_dependencies:
- "[email protected]"
- "eslint-plugin-jsdoc@"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
Expand Down Expand Up @@ -135,7 +160,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
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/l10n-switzerland&target_branch=14.0)
[![Build Status](https://travis-ci.com/OCA/l10n-switzerland.svg?branch=14.0)](https://travis-ci.com/OCA/l10n-switzerland)
[![Pre-commit Status](https://github.com/OCA/l10n-switzerland/actions/workflows/pre-commit.yml/badge.svg?branch=14.0)](https://github.com/OCA/l10n-switzerland/actions/workflows/pre-commit.yml?query=branch%3A14.0)
[![Build Status](https://github.com/OCA/l10n-switzerland/actions/workflows/test.yml/badge.svg?branch=14.0)](https://github.com/OCA/l10n-switzerland/actions/workflows/test.yml?query=branch%3A14.0)
[![codecov](https://codecov.io/gh/OCA/l10n-switzerland/branch/14.0/graph/badge.svg)](https://codecov.io/gh/OCA/l10n-switzerland)
[![Translation Status](https://translation.odoo-community.org/widgets/l10n-switzerland-14-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/l10n-switzerland-14-0/?utm_source=widget)

<!-- /!\ do not modify above this line -->

# l10n-switzerland
# Swiss Localization

TODO: add repo description.
Swiss Localization Modules

<!-- /!\ do not modify below this line -->

Expand All @@ -20,15 +21,23 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[ebill_paynet](ebill_paynet/) | 14.0.1.1.3 | [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Paynet platform bridge implementation
[ebill_paynet](ebill_paynet/) | 14.0.1.1.4 | [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Paynet platform bridge implementation
[ebill_paynet_customer_free_ref](ebill_paynet_customer_free_ref/) | 14.0.1.0.2 | | Glue module: ebill_paynet and sale_order_customer_free_ref
[ebill_postfinance](ebill_postfinance/) | 14.0.1.1.0 | [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Postfinance eBill integration
[ebill_postfinance_customer_free_ref](ebill_postfinance_customer_free_ref/) | 14.0.1.0.0 | | Glue module: ebill_postfinance and sale_order_customer_free_ref
[ebill_postfinance_financial_discount](ebill_postfinance_financial_discount/) | 14.0.1.0.0 | | Integrate the discount from account_financial_discount into ebill_postfinance
[ebill_postfinance_server_env](ebill_postfinance_server_env/) | 14.0.1.0.0 | | Server environment for eBill Postfinance
[ebill_postfinance_stock](ebill_postfinance_stock/) | 14.0.1.0.0 | [![TDu](https://github.com/TDu.png?size=30px)](https://github.com/TDu) | Add stock integration to Postfinance eBill
[l10n_ch_account_tags](l10n_ch_account_tags/) | 14.0.1.0.0 | | Switzerland Account Tags
[l10n_ch_base_bank](l10n_ch_base_bank/) | 14.0.1.0.2 | | Types and number validation for swiss electronic pmnt. DTA, ESR
[l10n_ch_adr_report](l10n_ch_adr_report/) | 14.0.1.0.0 | | Print Delivery report to ADR swiss configuration
[l10n_ch_base_bank](l10n_ch_base_bank/) | 14.0.1.0.3 | | Types and number validation for swiss electronic pmnt. DTA, ESR
[l10n_ch_delivery_carrier_label_quickpac](l10n_ch_delivery_carrier_label_quickpac/) | 14.0.1.0.1 | | Print quickpac shipping labels
[l10n_ch_invoice_reports](l10n_ch_invoice_reports/) | 14.0.1.3.0 | | Extend invoice to add ISR/QR payment slip
[l10n_ch_invoice_reports](l10n_ch_invoice_reports/) | 14.0.1.5.0 | | Extend invoice to add ISR/QR payment slip
[l10n_ch_isr_payment_grouping](l10n_ch_isr_payment_grouping/) | 14.0.1.0.1 | | Extend account to ungroup ISR
[l10n_ch_isrb](l10n_ch_isrb/) | 14.0.1.0.0 | | Switzerland - ISR with Bank
[l10n_ch_mis_reports](l10n_ch_mis_reports/) | 14.0.1.0.0 | | Specific MIS reports for switzerland localization
[l10n_ch_pain_base](l10n_ch_pain_base/) | 14.0.1.0.0 | | ISO 20022 base module for Switzerland
[l10n_ch_pain_credit_transfer](l10n_ch_pain_credit_transfer/) | 14.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Generate ISO 20022 credit transfert (SEPA and not SEPA)
[l10n_ch_states](l10n_ch_states/) | 14.0.1.0.0 | | Switzerland Country States
[server_env_ebill_paynet](server_env_ebill_paynet/) | 14.0.1.0.0 | | Server environment for Ebill Paynet

Expand Down
4 changes: 2 additions & 2 deletions ebill_paynet/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ eBill Paynet
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:56efb9de013471a46b67705bd889f508f4e1e141198cdd2cd205c4fcd81ad03f
!! source digest: sha256:9516352e71978fdcf893379a5e0b652ca2b6a7d95094c90990093bed8851f260
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -112,7 +112,7 @@ Credits
Authors
~~~~~~~

* Camptocamp SA
* Camptocamp

Contributors
~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions ebill_paynet/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"name": "eBill Paynet",
"summary": """
Paynet platform bridge implementation""",
"version": "14.0.1.1.3",
"version": "14.0.1.1.4",
"license": "AGPL-3",
"author": "Camptocamp SA,Odoo Community Association (OCA)",
"author": "Camptocamp,Odoo Community Association (OCA)",
"maintainers": ["TDu"],
"website": "https://github.com/OCA/l10n-switzerland",
"depends": [
Expand Down
Loading

0 comments on commit 3d49713

Please sign in to comment.