correction
This commit is contained in:
parent
8dee5842e1
commit
45a8b31cf1
@ -525,7 +525,7 @@ def export_entreprises():
|
||||
keys = ["siret", "nom", "adresse", "ville", "codepostal", "pays"]
|
||||
titles = keys[:]
|
||||
L = [
|
||||
[entreprise.to_dict_export().get(k, "") for k in keys]
|
||||
[entreprise.to_dict().get(k, "") for k in keys]
|
||||
for entreprise in entreprises
|
||||
]
|
||||
title = "entreprises"
|
||||
@ -543,7 +543,7 @@ def export_contacts():
|
||||
keys = ["nom", "prenom", "telephone", "mail", "poste", "service"]
|
||||
titles = keys[:]
|
||||
L = [
|
||||
[contact.to_dict_export().get(k, "") for k in keys] for contact in contacts
|
||||
[contact.to_dict().get(k, "") for k in keys] for contact in contacts
|
||||
]
|
||||
title = "contacts"
|
||||
xlsx = sco_excel.excel_simple_table(titles=titles, lines=L, sheet_name=title)
|
||||
|
Loading…
Reference in New Issue
Block a user