Affichage des factures
This commit is contained in:
parent
2940dae3b8
commit
16deec183d
3 changed files with 24 additions and 0 deletions
|
@ -70,6 +70,10 @@ def adherent(adherent, params):
|
|||
params=proprio(adherent, params)
|
||||
return template().get_template("adherent").render(params)
|
||||
|
||||
def facture(facture, params):
|
||||
params['o']=facture
|
||||
return template().get_template("facture").render(params)
|
||||
|
||||
def sprint(object, limit=5):
|
||||
params={'limit':limit}
|
||||
from lc_ldap import objets
|
||||
|
@ -79,6 +83,8 @@ def sprint(object, limit=5):
|
|||
return adherent(object, params)
|
||||
elif isinstance(object, objets.club):
|
||||
return club(object, params)
|
||||
elif isinstance(object, objets.facture):
|
||||
return facture(object, params)
|
||||
else:
|
||||
return str(object)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue