Replace getattr by hasattr in general journal report
Closes #14929 (grafted from 7e1c7cb2a0f2d3013bb83388b0212fa32a0f6c25) --HG-- branch : 8.0
This commit is contained in:
@@ -521,8 +521,8 @@
|
||||
<text:p text:style-name="Table_20_Heading">Date:<text:line-break/> <text:placeholder text:placeholder-type="text"><format_date(move.date, user.language)></text:placeholder></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table4.C1" office:value-type="string">
|
||||
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text"><if test="move.origin"></text:placeholder></text:p>
|
||||
<text:p text:style-name="Table_20_Heading">Origin:<text:line-break/><text:placeholder text:placeholder-type="text"><getattr(move.origin, 'rec_name', '')></text:placeholder></text:p>
|
||||
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text"><if test="move.origin and hasattr(move.origin, 'rec_name')"></text:placeholder></text:p>
|
||||
<text:p text:style-name="Table_20_Heading">Origin:<text:line-break/><text:placeholder text:placeholder-type="text"><move.origin.rec_name></text:placeholder></text:p>
|
||||
<text:p text:style-name="Table_20_Heading"><text:placeholder text:placeholder-type="text"></if></text:placeholder></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table4.D1" table:number-columns-spanned="2" office:value-type="string">
|
||||
|
||||
Reference in New Issue
Block a user