Skip to content

Commit a0fb49e

Browse files
author
Jaco
committed
FEAT #59671: l10n_ve_stock
Problema: -Al intentar actualizar cantidades de un producto en inventario a través de la interfaz de actualizar cantidades, muestra error ya que _apply_inventory está esperando un parámetro. Solución: -Se agrega date=None en los argumentos del método _apply_inventory, este en V19 es requerido para la ejecución de la función correctamente. Tarea (Link): https://binaural.odoo.com/web#id=59671&cids=2&model=project.task&view_type=form Tarea de proyecto [x] Ticket de soporte []
1 parent 394e885 commit a0fb49e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

l10n_ve_stock/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"author": "binaural-dev",
88
"website": "https://www.binauraldev.com",
99
"category": "Stock",
10-
"version": "1.2",
10+
"version": "1.3",
1111
"depends": [
1212
"stock",
1313
"product",

l10n_ve_stock/models/stock_quant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _update_reserved_quantity(
137137
break
138138
return reserved_quants
139139

140-
def _apply_inventory(self):
140+
def _apply_inventory(self, date=None):
141141
"""Base Odoo function that is inherited only to add a return of the stock_moves resulting from the inventory adjustment to another
142142
function.
143143
:return: The stock moves resulting from the inventory adjustment
@@ -151,6 +151,6 @@ def _apply_inventory(self):
151151
raise ValidationError(
152152
_("You cannot set the physical quantity of '%s' to a negative value.") % line.product_id.display_name
153153
)
154-
moves = super()._apply_inventory()
154+
moves = super()._apply_inventory(date=date)
155155

156156
return moves

0 commit comments

Comments
 (0)