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
61
account_invoice_triple_discount/report/invoice.xml
Normal file
61
account_invoice_triple_discount/report/invoice.xml
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template
|
||||
id="report_invoice_document"
|
||||
inherit_id="account.report_invoice_document"
|
||||
priority="100"
|
||||
>
|
||||
<xpath expr="//t[@t-set='display_discount']" position="attributes">
|
||||
<attribute name="t-value">False</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//t[@t-set='display_discount']" position="after">
|
||||
<t
|
||||
t-set="discount_class"
|
||||
t-value="'text-end %s' % ('d-none d-md-table-cell' if report_type == 'html' else '')"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_discount']" position="attributes">
|
||||
<attribute name="style">visibility: hidden;</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//th[@name='th_discount']" position="after">
|
||||
<th
|
||||
name="th_discount1"
|
||||
t-if="display_discount"
|
||||
t-att-class="discount_class"
|
||||
>
|
||||
<span>Disc.1 %</span>
|
||||
</th>
|
||||
<th
|
||||
name="th_discount2"
|
||||
t-if="display_discount"
|
||||
t-att-class="discount_class"
|
||||
>
|
||||
<span>Disc.2 %</span>
|
||||
</th>
|
||||
<th
|
||||
name="th_discount3"
|
||||
t-if="display_discount"
|
||||
t-att-class="discount_class"
|
||||
>
|
||||
<span>Disc.3 %</span>
|
||||
</th>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//td[span[@t-field='line.discount']]"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="style">visibility: hidden;</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//td[span[@t-field='line.discount']]" position="after">
|
||||
<td t-if="display_discount" t-att-class="discount_class">
|
||||
<span class="text-nowrap" t-field="line.discount1" />
|
||||
</td>
|
||||
<td t-if="display_discount" t-att-class="discount_class">
|
||||
<span class="text-nowrap" t-field="line.discount2" />
|
||||
</td>
|
||||
<td t-if="display_discount" t-att-class="discount_class">
|
||||
<span class="text-nowrap" t-field="line.discount3" />
|
||||
</td>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue