From: Ludovic CHEVALIER Date: Mon, 6 Mar 2017 11:09:11 +0000 (+0100) Subject: ~select usual contacts X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/%40%20%27entree_nom_pseudo_1%27%20=%3E%20%27%28Your%20name%20or%20alias%29%27%2C%20%27entree_nom_pseudo_2%27%20=%3E%20%27Name%20or%20alias%27%2C%20%27entree_nom_site%27%20=%3E%20%27Name%20of%20your%20site%27%2C-%27entree_nom_site_2%27%20=%3E%20%27Name%20of%20the%20author/%27s%20site%27%2C%20%27entree_nom_site_2%27%20=%3E%20%27Name%20of%20the%20author%C3%A2%C2%80%C2%99s%20site%27%2C%20%27entree_nouveau_passe%27%20=%3E%20%27New%20password%27%2C%20%27entree_passe_ldap%27%20=%3E%20%27Password%27%2C%20%27entree_port_annuaire%27%20=%3E%20%27Port%20number%20of%20the%20directory%27%2C%40%40%20-175%2C7%20%20175%2C7%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?a=commitdiff_plain;h=5d2b26d4aaf023cd9e24c3fb8b8d075a1e31d6fe;p=lhc%2Foe_alcatel_export.git ~select usual contacts --- diff --git a/alcatel_export.py b/alcatel_export.py index 01ea6d9..bff9c92 100644 --- a/alcatel_export.py +++ b/alcatel_export.py @@ -15,7 +15,7 @@ conn = psycopg2.connect("dbname=%s user=%s host=%s" % (db_name, db_user, db_host cur = conn.cursor() # import datas in dicos -query = "SELECT name, phone, mobile, is_company from res_partner where name != '/' and name is not null and (phone is not null or mobile is not null) and active = True and is_company = True" +query = "SELECT name, phone, mobile, is_company from res_partner where name != '/' and name is not null and (phone is not null or mobile is not null) and active = True and usual_contact = True" cur.execute(query) root = etree.Element('directory')