Merge branch 'update_odoo_18_pip'
- claude update command - poetry update
This commit is contained in:
commit
8f3e078a31
6 changed files with 788 additions and 567 deletions
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
## Changement de version Odoo
|
||||
```bash
|
||||
make switch_odoo_18 # Passer à Odoo 18
|
||||
make switch_odoo_18 # Passer à Odoo 18 (défaut)
|
||||
make switch_odoo_17 # Passer à Odoo 17
|
||||
make switch_odoo_16 # Passer à Odoo 16 (défaut)
|
||||
make switch_odoo_16 # Passer à Odoo 16
|
||||
make switch_odoo_15 # Passer à Odoo 15
|
||||
make switch_odoo_14 # Passer à Odoo 14
|
||||
make switch_odoo_13 # Passer à Odoo 13
|
||||
|
|
@ -30,12 +30,38 @@ make db_clone_test_to_test2 # Cloner test -> test2
|
|||
```
|
||||
|
||||
## Tests
|
||||
### Suite complète
|
||||
```bash
|
||||
make test # Tests de base + format
|
||||
make test_full_fast # Tests complets en parallèle
|
||||
make test_full_fast_coverage # Avec couverture de code
|
||||
make open_test_coverage # Ouvrir le rapport HTML de couverture
|
||||
```
|
||||
|
||||
### Tester un module spécifique
|
||||
```bash
|
||||
# 1. Supprimer la DB de test et lancer les tests du module
|
||||
./odoo_bin.sh db --drop --database test_mon_module
|
||||
./test.sh -d test_mon_module --db-filter test_mon_module -i mon_module
|
||||
|
||||
# 2. Lancer un fichier de test précis
|
||||
./odoo_bin.sh db --drop --database test_mon_module
|
||||
./script/addons/install_addons_dev.sh test_mon_module mon_module
|
||||
./test.sh -d test_mon_module --db-filter test_mon_module -i mon_module \
|
||||
--test-file=addons/MON_REPO/mon_module/tests/test_mon_fichier.py
|
||||
|
||||
# 3. Avec couverture de code
|
||||
./.venv.erplibre/bin/coverage erase
|
||||
./odoo_bin.sh db --drop --database test_mon_module
|
||||
./test.sh -d test_mon_module --db-filter test_mon_module -i mon_module
|
||||
./.venv.erplibre/bin/coverage combine -a
|
||||
./.venv.erplibre/bin/coverage report -m
|
||||
./.venv.erplibre/bin/coverage html
|
||||
```
|
||||
|
||||
> `test.sh` est un alias de `run.sh` avec `ODOO_MODE_TEST=true --workers 0`.
|
||||
|
||||
|
||||
## Formatage du code
|
||||
```bash
|
||||
make format # Fichiers à commiter uniquement
|
||||
|
|
@ -61,3 +87,10 @@ make repo_do_stash # Stash tous les dépôts
|
|||
make install_os # Dépendances système
|
||||
make install_odoo_18 # Installer Odoo 18 complet
|
||||
```
|
||||
|
||||
# Tester un seul module Odoo
|
||||
|
||||
./run.sh -d test --log-level=test --test-enable --stop-after-init -i nom_module
|
||||
|
||||
# Tester un fichier de test spécifique
|
||||
./run.sh -d test --log-level=test --test-enable --stop-after-init --test-file chemin/vers/test.py
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
# CLAUDE.md - ERPLibre Multi-Version Odoo Platform
|
||||
# CLAUDE.md
|
||||
|
||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||
|
||||
## ERPLibre Multi-Version Odoo Platform
|
||||
|
||||
## Projet
|
||||
|
||||
|
|
|
|||
|
|
@ -19,3 +19,7 @@ pymssql
|
|||
|
||||
# Conflict with pdfminer.six
|
||||
pdfminer
|
||||
|
||||
# TODO support rename
|
||||
mpl_toolkits
|
||||
# mpl_toolkits rename to matplotlib
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -33,8 +33,8 @@ beautifulsoup4 = "4.13.5"
|
|||
bokeh = "3.6.3"
|
||||
boto3 = "1.42.42"
|
||||
botocore = "1.42.42"
|
||||
cachetools = "^7.0.3"
|
||||
cairosvg = "^2.8.2"
|
||||
cachetools = "^7.0.5"
|
||||
cairosvg = "^2.9.0"
|
||||
caldav = "1.3.9"
|
||||
cbor2 = "5.6.2"
|
||||
cerberus = "^1.3.8"
|
||||
|
|
@ -57,11 +57,12 @@ extendable-pydantic = ">=1.2.0"
|
|||
extract-msg = "^0.55.0"
|
||||
extruct = "^0.18.0"
|
||||
ezdxf = "^1.4.3"
|
||||
factur-x = "^3.15"
|
||||
factur-x = "^3.16"
|
||||
fastapi = ">=0.110.0"
|
||||
filetype = "^1.2.0"
|
||||
flake8 = "^7.3.0"
|
||||
formio-data = "^2.1.6"
|
||||
flanker = "^0.9.11"
|
||||
formio-data = "^2.1.7"
|
||||
freezegun = "1.2.1"
|
||||
geocoder = "^1.38.1"
|
||||
geoip2 = "2.9.0"
|
||||
|
|
@ -101,10 +102,11 @@ oauthlib = "^3.3.1"
|
|||
odoorpc = "^0.10.1"
|
||||
ofxparse = "0.21"
|
||||
ollama = "^0.6.1"
|
||||
openai = "^2.26.0"
|
||||
openai = "^2.28.0"
|
||||
openpyxl = "3.1.2"
|
||||
openupgradelib = "^3.12.0"
|
||||
openwebui-client = ">=0.3.0"
|
||||
orjson = "^3.11.7"
|
||||
ovh = "^1.2.0"
|
||||
pandas = "2.3.3"
|
||||
paramiko = "<4.0.0"
|
||||
|
|
@ -114,7 +116,7 @@ pathspec = "^1.0.4"
|
|||
pdf2image = "^1.17.0"
|
||||
pdfminer-six = "20260107"
|
||||
pexpect = "^4.9.0"
|
||||
phonenumbers = "^9.0.25"
|
||||
phonenumbers = "^9.0.26"
|
||||
pillow = "12.1.1"
|
||||
plaid-python = "^38.4.0"
|
||||
plotly = "^6.6.0"
|
||||
|
|
@ -134,12 +136,12 @@ pydevd-odoo = "^1.2.2"
|
|||
pyftpdlib = "^2.2.0"
|
||||
pygithub = "^2.8.1"
|
||||
pyjsparser = "^2.7.1"
|
||||
pyjwt = "^2.11.0"
|
||||
pyjwt = "^2.12.1"
|
||||
pylint = "^4.0.5"
|
||||
pylint-odoo = "^10.0.1"
|
||||
pymupdf = "^1.27.1"
|
||||
pylint-odoo = "^10.0.2"
|
||||
pymupdf = "^1.27.2"
|
||||
pyncclient = "^0.7"
|
||||
pyopenssl = "25.3.0"
|
||||
pyopenssl = "26.0.0"
|
||||
pypdf = ">=3.1.0"
|
||||
pypdf2 = "2.12.1"
|
||||
pyproj = "^3.7.2"
|
||||
|
|
@ -158,7 +160,7 @@ python-pptx = "^1.0.2"
|
|||
python-resize-image = "^1.1.20"
|
||||
python-slugify = "^8.0.4"
|
||||
python-stdnum = "1.19"
|
||||
python-telegram-bot = "^22.6"
|
||||
python-telegram-bot = "^22.7"
|
||||
pytz = "^2026.1.post1"
|
||||
pyusb = "1.2.1"
|
||||
pyyaml = "^6.0.3"
|
||||
|
|
@ -185,9 +187,9 @@ sqlalchemy = "^2.0.48"
|
|||
statsd = "^4.0.1"
|
||||
tldextract = "^5.3.1"
|
||||
tweepy = "^4.16.0"
|
||||
twilio = "^9.10.2"
|
||||
twilio = "^9.10.3"
|
||||
typing-extensions = "^4.15.0"
|
||||
ujson = "^5.11.0"
|
||||
ujson = "^5.12.0"
|
||||
unidecode = "^1.4.0"
|
||||
urllib3 = "2.0.7"
|
||||
uvloop = "^0.22.1"
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@ pdfminer.six==20260107
|
|||
# Optional PyDev
|
||||
pydevd-odoo
|
||||
|
||||
# Mail check
|
||||
flanker
|
||||
|
||||
# For optimal json
|
||||
orjson
|
||||
|
||||
# For fixing module ocr_data_retrieval check file ocr_data_retrieval/models/ocr_data_template.py
|
||||
#spacy==3.8.2
|
||||
|
||||
|
|
@ -62,7 +68,7 @@ isort==7.0.0
|
|||
|
||||
# Fix some OS
|
||||
cryptography==46.0.5
|
||||
pyopenssl==25.3.0
|
||||
pyopenssl==26.0.0
|
||||
# This will ignore pyopenssl from pysaml2==7.5.4
|
||||
git+https://github.com/prauscher/pysaml2.git@replace-pyopenssl
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue