Skip to content

Commit

Permalink
[FIX] l10n_ar_stock: Solve issue when generate cot with some stock li…
Browse files Browse the repository at this point in the history
…ne cancelled.

For the generation of the cot, the quantity zero is forbidden, with this change we ensure that any quantity must be different than zero.
  • Loading branch information
nicomacr committed Mar 11, 2022
1 parent da24100 commit 613300e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ar_stock/models/stock_picking.py
Expand Up @@ -317,7 +317,7 @@ def get_arba_file_data(
str(int(round(importe * 100.0)))[-14:],
])

for line in rec.mapped('move_lines'):
for line in rec.mapped('move_lines').filtered(lambda x: x.product_uom_qty):

# buscamos si hay unidad de medida de la cateogria que tenga
# codigo de arba y usamos esa, ademas convertimos la cantidad
Expand Down

0 comments on commit 613300e

Please sign in to comment.