Skip to content

Commit cc04e89

Browse files
[FIX] product_catalog_tree: remove invalid compute method call in inverse
1 parent 093f762 commit cc04e89

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

product_catalog_tree/models/product_product.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,8 @@ def _inverse_catalog_values(self, product_catalog_qty):
5656

5757
order = self.env[res_model].browse(order_id)
5858
for rec in self:
59-
# Actualizar la información de la línea de orden
6059
order.with_company(order.company_id)._update_order_line_info(rec.id, product_catalog_qty)
6160

62-
# Si la cantidad es mayor a 0, recalcular precios y descuentos
63-
if product_catalog_qty > 0:
64-
order_lines = order.order_line.filtered(lambda line: line.product_id.id == rec.id)
65-
if order_lines:
66-
# Tomamos la última línea en caso de que haya varias
67-
order_line = order_lines[-1]
68-
# Ejecutar el método que recalcula linea
69-
order_line._compute_price_unit_and_date_planned_and_name()
70-
7161
def increase_quantity(self):
7262
for rec in self:
7363
rec._inverse_catalog_values(rec.product_catalog_qty + 1)

0 commit comments

Comments
 (0)