entreprises #247

Merged
viennet merged 6 commits from arthur.zhu/ScoDoc:entreprises into entreprises 2021-12-29 11:34:14 +01:00
Showing only changes of commit 45a8b31cf1 - Show all commits

View File

@ -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)