[FIX] product_sale_price_from_pricelist: Actualizar tests para Odoo 18

- Cambiar parámetro qty= a quantity= en llamadas a _compute_price_rule
- Eliminar type/detailed_type de product.product creates
- Añadir campo name a purchase.order.line
- Agregar método _compute_theoritical_price en template
- Crear helpers para leer precios teóricos desde variante
- Corregir variables no usadas y nombres indefinidos
This commit is contained in:
snt 2026-02-12 19:23:29 +01:00
parent fd83d31188
commit 55811d54b1
28 changed files with 1569 additions and 327 deletions

30
.prettierrc.yml Normal file
View file

@ -0,0 +1,30 @@
# Prettier configuration for Odoo addons
# Note: XML formatting disabled for QWeb templates due to prettier limitations
# with mixed content (text + tags). Use manual formatting for .xml files.
printWidth: 100
tabWidth: 4
useTabs: false
# XML/HTML specific - disabled, causes readability issues with QWeb
# xmlWhitespaceSensitivity: "strict"
# xmlSelfClosingSpace: true
# Keep tags more compact - don't break every attribute
overrides:
# Disable prettier for XML files - manual formatting preferred
# - files: "*.xml"
# options:
# printWidth: 120
# xmlWhitespaceSensitivity: "strict"
# singleAttributePerLine: false
# bracketSameLine: true
- files: "*.py"
options:
printWidth: 88
- files: ["*.json", "*.json5"]
options:
printWidth: 120
tabWidth: 2