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:
parent
5b9c6e3211
commit
fe137dc265
224 changed files with 18376 additions and 0 deletions
9
purchase_triple_discount/readme/CONTRIBUTORS.md
Normal file
9
purchase_triple_discount/readme/CONTRIBUTORS.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
- [Tecnativa](https://www.tecnativa.com):
|
||||
|
||||
> - David Vidal
|
||||
> - Pedro M. Baeza
|
||||
|
||||
- Sylvain LE GAL (<https://twitter.com/legalsylvain>)
|
||||
|
||||
- [ForgeFlow S.L.](https://www.forgeflow.com):
|
||||
- Christopher Ormaza \<<chris.ormaza@forgeflow.com>\>
|
||||
2
purchase_triple_discount/readme/DESCRIPTION.md
Normal file
2
purchase_triple_discount/readme/DESCRIPTION.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
This module allows to have three successive discounts on every purchase
|
||||
order line.
|
||||
24
purchase_triple_discount/readme/USAGE.md
Normal file
24
purchase_triple_discount/readme/USAGE.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
Create a new purchase order 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
|
||||
|
||||
- When the purchase order is validated, the discounts will be added to
|
||||
the corresponding vendor pricelist.
|
||||
- Vendor pricelists can be edited as well with their corresponding new
|
||||
second and third discounts.
|
||||
- A default second or third discount can be set in every vendor *Sale &
|
||||
Purchases* tab.
|
||||
Loading…
Add table
Add a link
Reference in a new issue