Skip to content

Commit 394e885

Browse files
author
Jaco
committed
FEAT #1063: 1l0n_ve_stock
Problema: -Al intentar validar un stock picking, el botón no realiza ninguna acción. Solución: -Se agregan return para los casos necesarios. Tarea (Link): Tarea de proyecto [x] Ticket de soporte []
1 parent e1e8873 commit 394e885

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
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.1",
10+
"version": "1.2",
1111
"depends": [
1212
"stock",
1313
"product",

l10n_ve_stock/models/stock_picking.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,12 @@ def action_assign(self):
244244
def button_validate(self):
245245
if self.env.company.not_allow_negative_stock_movement:
246246
res = super(StockPicking, self).button_validate()
247-
248247
if isinstance(res, dict) and res.get('res_model') == 'stock.backorder.confirmation':
249-
250248
return res
251-
252249
else:
253-
254250
self._check_stock_availability_for_pickings()
255-
251+
return super().button_validate()
252+
256253
def _check_stock_availability_for_pickings(self):
257254
if self.picking_type_id.code in ['internal', 'outgoing']:
258255
group_product_location_lot = {}

0 commit comments

Comments
 (0)