build: configurar herramientas de verificación OCA

- Instalar pre-commit con 25 hooks configurados
- Configurar black 26.1.0 para formateo de código Python
- Configurar isort 7.0.0 para ordenación de imports
- Configurar flake8 7.3.0 con flake8-bugbear
- Configurar pylint 3.1.1 con pylint-odoo 9.1.2
- Añadir autoflake y pyupgrade para mejoras automáticas
- Configurar prettier para formateo de XML/JSON/YAML
- Crear .editorconfig para consistencia de editor
- Crear Makefile con comandos útiles
- Crear check_addon.sh para verificación rápida de addons
- Actualizar configuración de VS Code con extensiones recomendadas
- Añadir documentación completa de uso
- Aplicar formateo automático a archivos existentes
- Deshabilitar setuptools-odoo (no soporta Odoo 18.0 aún)
- Deshabilitar fix-encoding-pragma (obsoleto, usar pyupgrade)
This commit is contained in:
snt 2026-02-11 16:09:41 +01:00
parent 5b9c6e3211
commit fe137dc265
224 changed files with 18376 additions and 0 deletions

View file

@ -0,0 +1,7 @@
- David Vidal \<<david.vidal@tecnativa.com>\>
- Pedro M. Baeza \<<pedro.baeza@tecnativa.com>\>
- Nikul Chaudhary \<<nikulchaudhary2112@gmail.com>\>
- [Aion Tech](https://aiontech.company/):
- Simone Rubino \<<simone.rubino@aion-tech.it>\>
- Laurent Mignon \<<laurent.mignon@acsone.eu>\>
- Akim Juillerat \<<akim.juillerat@camptocamp.com>\>

View file

@ -0,0 +1,2 @@
This module allows to have three successive discounts on each invoice
line.

View file

@ -0,0 +1,17 @@
Create a new invoice and add discounts in any of the three discount
fields given. They go in order of precedence so discount 2 will be
calculated over discount 1 and discount 3 over the result of discount 2.
For example, let's divide by two on every discount:
Unit price: 600.00 -\>
> - Disc. 1 = 50% -\> Amount = 300.00
> - Disc. 2 = 50% -\> Amount = 150.00
> - Disc. 3 = 50% -\> Amount = 75.00
You can also use negative values to charge instead of discount:
Unit price: 600.00 -\>
> - Disc. 1 = 50% -\> Amount = 300.00
> - Disc. 2 = -5% -\> Amount = 315.00