Skip to content

Commit 3f07911

Browse files
cav-adhocvib-adhoc
authored andcommitted
[FIX] prodct_catalog_tree: clear all context before update order
1 parent f12fe06 commit 3f07911

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

product_catalog_tree/models/product_product.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ def _inverse_catalog_values(self, product_catalog_qty):
6060
for rec in self:
6161
# Actualizar la información de la línea de orden
6262
# Call the order method with a cleared context to avoid errors on creating move line
63-
order.with_company(order.company_id).with_context(clear_context=True)._update_order_line_info(
64-
rec.id, product_catalog_qty
65-
)
63+
order.with_company(order.company_id).with_context(**{})._update_order_line_info(rec.id, product_catalog_qty)
6664

6765
def increase_quantity(self):
6866
for rec in self:

0 commit comments

Comments
 (0)