Hi Luis,
I really appreciate, and take note of the previous mail.
Now it works.
Regards.
Yusuf
________________________________
From: Health-dev <[email protected]> on
behalf of Luis Falcon <[email protected]>
Sent: Wednesday, April 13, 2022 12:40 PM
To: [email protected] <[email protected]>
Subject: Re: [Health-dev] PUID on Invoice in GNUHealth
I see where the issue comes..
> Traceback (most recent call last):
> File "/site-packages/genshi/template/eval.py", line 318, in lookup_attr
> val = getattr(obj, key)
> File "/trytond/model/modelstorage.py", line 1293, in __getattr__
> raise AttributeError('"%s" has no attribute "%s"' % (self, name))
> AttributeError: "party.party,12" has no attribute "puid"
>
The field is actually "ref" on party.
So invoice.party.ref
Bests
Luis