Revertir cambio: eliminar cálculo duplicado de impuestos

El método _get_price() del addon OCA ya maneja correctamente los impuestos
según la configuración de Odoo. El cálculo adicional con compute_all() estaba
duplicando los impuestos cuando price_include estaba activado.

Cambios:
- Eliminado método _compute_price_with_taxes()
- Revertido eskaera_shop() para usar directamente _get_price()
- Revertido add_to_eskaera_cart() para usar directamente _get_price()

El precio mostrado ahora respeta la configuración de impuestos de Odoo
sin duplicación.
This commit is contained in:
snt 2026-02-11 19:53:30 +01:00
parent 3cb0af6a7b
commit 4d23e98f7b
30 changed files with 3611 additions and 1004 deletions

View file

@ -1,20 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="paperformat_barcode" model="report.paperformat">
<field name="name">Barcodes stickers format</field>
<field name="default" eval="True" />
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">10</field>
<field name="margin_bottom">5</field>
<field name="margin_left">8</field>
<field name="margin_right">8</field>
<field name="header_line" eval="False" />
<field name="header_spacing">0</field>
<field name="dpi">75</field>
</record>
</odoo>

View file

@ -9,25 +9,26 @@
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">
<field name="standard_price" position="attributes">
<attribute
name="readonly"
>last_purchase_price_compute_type != 'manual_update'</attribute>
<attribute name="readonly">
last_purchase_price_compute_type != 'manual_update'
</attribute>
</field>
<xpath expr="//group[@name='group_standard_price']" position="after">
<group string="Automatic Price Update">
<group>
<field name="last_purchase_price_compute_type" />
<field
name="last_purchase_price_received"
widget="monetary"
options="{'currency_field': 'currency_id', 'field_digits': True}"
readonly="1"
/>
</group>
<group>
<field name="list_price_theoritical" readonly="1" />
name="last_purchase_price_received"
widget="monetary"
options="{'currency_field': 'currency_id', 'field_digits': True}"
readonly="1"
/>
<field
name="list_price_theoritical"
widget="monetary"
options="{'currency_field': 'currency_id', 'field_digits': True}"
readonly="1"
/>
<field name="last_purchase_price_updated" readonly="1" />
</group>
</group>
</xpath>
</field>