Hi;
Recently , I had perceive that in dunning email , the data that should be displayed under the column "reference"
is missing otherwise i have put it.
about the attribute "reference"
i filled it by going to (Finance)>(invoices)>(Customer invoices)
Here i was filled out the attribute “reference” —>after saving that, i had go to the wizard
create dunningand choose the
Linethat i had recently create it (with
reference`).As it is shown in the picture, the attribute reference is filled out :
this is the line code of the reference: :
<td headers="reference">
${dunning.line.origin.rec_name if dunning.line and dunning.line.origin else ''}
</td>
But the column of reference is empty in the email :
So i want just to verify is the attribute “reference”(displayed in the email) is supposed to take the data of the attribute “reference” that i had create in the menu (invoices)>(Customer invoices)(the steps that i have described above) or there was another field i should filled it out ?
Ps : I was given a try and change the code line of the attribute reference
like that:
${dunning.line.reference if dunning.line else ''}
But it keeping give me this error:
File "/tmp/trytond_drozwkqz.html", line 36, in <Expression "dunning.line.reference if dunning.line else ''">
${dunning.line.reference if dunning.line else ''}
File "/site-packages/genshi/template/eval.py", line 326, in lookup_attr
val = cls.undefined(key, owner=obj)
File "/site-packages/genshi/template/eval.py", line 414, in undefined
raise UndefinedError(key, owner=owner)
genshi.template.eval.UndefinedError: Pool().get('account.move.line')(559) has no member named "reference" File "/tmp/trytond_drozwkqz.html", line 36, in <Expression "dunning.line.reference if dunning.line else ''">
${dunning.line.reference if dunning.line else ''}
File "/site-packages/genshi/template/eval.py", line 326, in lookup_attr
val = cls.undefined(key, owner=obj)
File "/site-packages/genshi/template/eval.py", line 414, in undefined
raise UndefinedError(key, owner=owner)
genshi.template.eval.UndefinedError: Pool().get('account.move.line')(559) has no member named "reference"