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
