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