Commit Graph

615 Commits

Author SHA1 Message Date
Benjamin Dauvergne 5b5e138831 reformat with black
black --target-version py35 --skip-string-normalization --line-length 110 .
2020-06-29 16:01:35 +02:00
Benjamin Dauvergne 498488c27c misc: keep newlines in notes section of invoices (#42835) 2020-06-29 15:04:10 +02:00
Frédéric Péters e89953589d translation update 2020-06-28 10:40:53 +02:00
Frédéric Péters 3e114f20b8 trivial: remove gettext call on French strings 2020-06-28 10:39:54 +02:00
Frédéric Péters 0c1ca5a8d5 references: use client logo instead of contract logo (#38696) 2020-06-26 15:03:42 +02:00
Frédéric Péters 57c9d4050d update references model document to data model (#38696) 2020-06-26 14:27:01 +02:00
Frédéric Péters 79bf0b5d95 auto-exclude contracts without required details from references (#38696) 2020-06-26 14:16:34 +02:00
Frédéric Péters 809e9715ad misc: read content.xml as text (#38696) 2020-06-26 14:01:22 +02:00
Christophe Siraut fca95d051f update translations 2020-06-26 12:14:05 +02:00
Christophe Siraut 934f6a6145 eo_facture: add action export-as-odt (#38696) 2020-06-26 12:13:42 +02:00
Benjamin Dauvergne bed17b3973 eo_facture: mettre à jour l'échéance quand on met à jour la date d'émission (#43467) 2020-06-26 11:53:14 +02:00
Frédéric Péters 236b6dbb4e misc: add an active flag to clients (#44308) 2020-06-24 10:43:11 +02:00
Frédéric Péters b61a297bed misc: add URL field to contract model (#44312) 2020-06-23 13:28:20 +02:00
Benjamin Dauvergne 0fdf874e39 chorus: on JSON decode error, log resume of response (#43270) 2020-05-26 10:56:33 +02:00
Benjamin Dauvergne 24526c2943 misc: change email in invoices (#43248) 2020-05-25 11:01:25 +02:00
Benjamin Dauvergne 4af4c0e00b eo_facture: ré-initialiser emission quand une facture n'est plus proforma (#42442)
Empêche aussi de défaire le statut proforma ou de changer emission quand
une facture n'est plus proforma.
2020-05-04 15:01:25 +02:00
Benjamin Dauvergne 7e0b768087 facturx: target FacturX level "basicwl" (#41781) 2020-04-16 15:46:48 +02:00
Frédéric Péters 55a71332c8 update capital and rib on invoice model (#41778) 2020-04-16 11:50:47 +02:00
Frédéric Péters c8aeb85c7e limit factur-x version
(broken build at https://jenkins.entrouvert.org/job/barbacompta/481/console)
2020-04-16 11:45:56 +02:00
Benjamin Dauvergne b449c33e94 copy contract's tva field to invoice's tva field (#41727) 2020-04-15 12:35:34 +02:00
Benjamin Dauvergne b440390420 tox.ini: make env to run manage (#41727) 2020-04-15 12:35:10 +02:00
Benjamin Dauvergne 9ff84f8036 misc: add help_text to migration 2020-03-24 11:14:23 +01:00
Benjamin Dauvergne 0fc2e95f28 misc: aggregate can return None (#40841) 2020-03-22 11:46:41 +01:00
Benjamin Dauvergne 3fd74e6be2 eo_facture: add private_notes to Facture (#40014) 2020-03-22 11:45:37 +01:00
Benjamin Dauvergne b6178fcd4f misc: merge cosmetic changes with existing migrations (#40014) 2020-03-22 11:45:28 +01:00
Benjamin Dauvergne ce366ce860 chorus: n'ajouter le retour aux logs qu'en cas de réussite
En cas d'erreur Chorus nous renvoie notre requête, ce qui n'est pas très
intéressant.
2020-02-17 18:57:59 +01:00
Benjamin Dauvergne b8088550ce eo_facture: order prestation by id (#39763) 2020-02-12 17:03:03 +01:00
Benjamin Dauvergne c837ac6a7a chorus: améliore la gestion des retours d'envoi 2020-02-11 15:38:36 +01:00
Benjamin Dauvergne dcf3699abe eo_facture: fix check on proforma in facturx_pdf() 2020-02-04 11:59:00 +01:00
Benjamin Dauvergne b245c63898 eo_facture: do not transform all invoices to Factur-X
PDF/A make heavy files (always more than 1Mb) as they contain all font
files.
2020-02-04 10:48:48 +01:00
Benjamin Dauvergne e23ae257e7 chorus: add missing migration 2020-02-04 10:08:57 +01:00
Benjamin Dauvergne c781ff2aad debian: restore use of Django 1.11 2020-02-04 10:01:53 +01:00
Benjamin Dauvergne c2943c399c debian: add dependency on factur-x 2020-02-04 07:33:46 +01:00
Benjamin Dauvergne 5b308c49b5 add ChorusPro support (#20562)
* ChorusPro directory is imported
* client can be linked to ChorusPro structures
* when a client is linked to a ChorusPro structure, a button is shown to
  send the invoice to Chorus

Settings:

  CHORUS_PLATFORM = 'qualif' / 'prod'
  CHORUS_PISTE_CLIENT_ID = ''
  CHORUS_PISTE_CLIENT_SECRET = ''
  CHORUS_TECH_USER_LOGIN = ''
  CHORUS_TECH_USER_PASSWORD = ''
2020-02-03 21:30:18 +01:00
Benjamin Dauvergne 4cbf6bdb13 add factur-x support (#20562)
The following configuration must be added to settings :

  VENDOR_NAME = 'Entr\'ouvert'
  VENDOR_SIRET = '44317013900036'
  VENDOR_TVAI = 'FR09491081899'
2020-02-03 19:01:56 +01:00
Benjamin Dauvergne 3985523fae settings: fix logging config (#20562) 2020-02-03 19:01:56 +01:00
Benjamin Dauvergne 06119817ab tox.ini: add runserver target (#20562) 2020-02-03 19:01:56 +01:00
Benjamin Dauvergne ef922d091f target Django >=2,<2.3 (#20562)
We need it for support of autocompletion in admin pages.
* rename django.core.urlresolvers to django.urls
* update migrations
* fix warning about PercentagePerYearField.from_db_value() context arg
* fix warning about deprecated {% load staticfiles %}

This commit also remove support for py2.
* tox.ini: only run with py3
* remove all u'' strings
* remove imports from __future__
2020-02-03 19:01:56 +01:00
Benjamin Dauvergne c59aca65ba facture: invalidate impayes() tag cache (#38970) 2020-01-31 11:38:33 +01:00
Frédéric Péters 4d55701189 commands: adapt load-csv-banquepop to python 3 encoding handling (#38922) 2020-01-31 11:38:16 +01:00
Benjamin Dauvergne 91ca4db3c0 ajout d'un export ODS des factures (#37054) 2020-01-30 18:04:14 +01:00
Benjamin Dauvergne 02f38494af définit le montant des contrats sans prestations (#36320) 2020-01-27 10:28:01 +01:00
Thomas NOËL d30bf2ecd3 fields: fix percentage_per_year validator (python3: range is an iterator) (#38835) 2020-01-08 14:08:19 +01:00
Benjamin Dauvergne 57da89db4e models: fix misuse of contrat.montant (#38785) 2020-01-06 14:23:28 +01:00
Benjamin Dauvergne cf4cbe5959 add on_delete=models.CASCADE (#38507) 2019-12-29 18:36:17 +01:00
Benjamin Dauvergne 3e0264842b Jenkinsfile: run pylint separately (#38507) 2019-12-26 12:36:11 +01:00
Benjamin Dauvergne 4cdbac85a0 use uwsgi mule to update cache in background (#38507) 2019-12-26 12:36:11 +01:00
Benjamin Dauvergne dc1832f9dc add cache decorator to speed homepage statistics (#38507) 2019-12-26 12:36:11 +01:00
Benjamin Dauvergne 5d1aaaa357 debian: use uwsgi (#38507) 2019-12-26 12:36:11 +01:00
Benjamin Dauvergne e49e51a9e5 migrate to python3 (#38507)
* add basic tests and big anonymized fixture
* add missing copyright notices
2019-12-26 12:35:55 +01:00