Fix partner_statement: NULL Error in report
parent
3f023e098b
commit
5a935c5f88
|
@ -58,11 +58,11 @@ class OutstandingStatementXslx(models.AbstractModel):
|
||||||
if not line.get("ref", ""):
|
if not line.get("ref", ""):
|
||||||
name_to_show = line.get("name", "")
|
name_to_show = line.get("name", "")
|
||||||
else:
|
else:
|
||||||
if (line.get("name", "") in line.get("ref", "")) or (
|
if (line.get("ref", "") in line.get("name", "")) or (
|
||||||
line.get("name", "") == line.get("ref", "")
|
line.get("name", "") == line.get("ref", "")
|
||||||
):
|
):
|
||||||
name_to_show = line.get("name", "")
|
name_to_show = line.get("name", "")
|
||||||
elif line.get("ref", "") not in line.get("name", ""):
|
else:
|
||||||
name_to_show = line.get("ref", "")
|
name_to_show = line.get("ref", "")
|
||||||
sheet.write(
|
sheet.write(
|
||||||
row_pos, 0, line.get("move_id", ""), FORMATS["format_tcell_left"]
|
row_pos, 0, line.get("move_id", ""), FORMATS["format_tcell_left"]
|
||||||
|
|
Loading…
Reference in New Issue