diff --git a/objets.py b/objets.py index be26b70..6f8b422 100644 --- a/objets.py +++ b/objets.py @@ -207,7 +207,7 @@ class CransLdapObject(object): nvals = [nldif[attr][vals.index(v)] for v in vals] raise EnvironmentError("λv. str(Attr(v)) n'est peut-être pas une projection (ie non idempotente):", attr, nvals, vals) - def _id(self): + def oid(self): """Retourne l'id de l'objet courant""" if isinstance(self, adherent): return self['aid'] diff --git a/printing/templates/facture b/printing/templates/facture index 7aa46db..cd9040c 100644 --- a/printing/templates/facture +++ b/printing/templates/facture @@ -1,4 +1,4 @@ -{{["fid=",o._id().0]|join|coul('bleu')}} {{"À : "|coul('gras')}}{{o.proprio().prenom|join(' ')}} {{o.proprio().nom|join(' ')}} ({{o.proprio()._id().0}}) +{{["fid=",o.oid().0]|join|coul('bleu')}} {{"À : "|coul('gras')}}{{o.proprio().prenom|join(' ')}} {{o.proprio().nom|join(' ')}} ({{o.proprio().oid().0}}) {% if o.article %} {{"Article : "|coul('gras')}} Prix N° Total Commentaire {% set total = [] %}{% for a in o.article %}