Skip to content
Snippets Groups Projects
Commit 658c0221 authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[FIX] get_name with empty name

parent 92331adf
Branches
No related tags found
No related merge requests found
......@@ -67,6 +67,6 @@ class FumocStockProductionLot(models.Model):
res = super().name_get()
if self.env.context.get("show_qty"):
res = self.browse([r[0] for r in res]).mapped(
lambda r: (r.id, r.name + " (en stock : %.0f)" % r.product_qty)
lambda r: (r.id, r.name and (r.name + " (en stock : %.0f)" % r.product_qty) or r.name)
)
return res
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment