8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-09-12 01:03:09 +00:00
Commit graph

2350 commits

Author SHA1 Message Date
Maxime Bombar
f1c9d8d066 [Printer] Fix _compute_price 2018-12-06 17:57:57 +01:00
Maxime Bombar
8620581e5c [Printer] remove useless import 2018-12-06 17:57:57 +01:00
Maxime Bombar
51df34b7ce [Printer] Translate status in index_jobs 2018-12-06 17:57:57 +01:00
detraz
3eb5edefd2 Fix login required pour historique 2018-12-06 17:57:57 +01:00
Maxime Bombar
94f8e21a81 [Printer] Update docstrings in models 2018-12-06 17:57:57 +01:00
Gabriel Detraz
3fe8dfe201 Colonnes dynamique pour classer les objets 2018-12-06 17:57:57 +01:00
Gabriel Detraz
1d6b5952f6 Nouveau réglage code_duration + context processor mise en cache settings 2018-12-06 17:57:57 +01:00
Gabriel Detraz
2c849c7064 Fix chargement du réglage printer 2018-12-06 17:57:57 +01:00
detraz
c6adb87e4b Pagination, fix intelligence dans les models plutot que views 2018-12-06 17:57:57 +01:00
Maxime Bombar
68eb0d813d [Printer] fix PrintAgain 2018-12-06 17:57:57 +01:00
Maxime Bombar
acef2ee5a5 [Printer] translate preferences 2018-12-06 17:57:57 +01:00
Maxime Bombar
cef89570f1 [Printer] Can create digicode, and display list of available digicodes. Maybe create a specific app 2018-12-06 17:57:57 +01:00
Maxime Bombar
490b26006b [Printer] add admin.py 2018-12-06 17:57:57 +01:00
Maxime Bombar
c347feb3a6 [Printer] Translate out of order message 2018-12-06 17:57:57 +01:00
Maxime Bombar
aa6590e5b1 [Printer] Allow to disable printer in 'Preferences' 2018-12-06 17:57:57 +01:00
Gabriel Detraz
278d752b65 [Printer] Re2o_paginator va dans base.py 2018-12-06 17:57:57 +01:00
Maxime Bombar
14868f4264 [Printer] Handles pdf with fancy encoding in metadata 2018-12-06 17:57:57 +01:00
Maxime Bombar
f15da4a658 [Printer] Typo in email_printer template 2018-12-06 17:57:57 +01:00
Maxime Bombar
832db0c7a9 [Printer] user.can_view(printer) = user.is_active 2018-12-06 17:57:57 +01:00
Maxime Bombar
73ba578c74 [Printer] Translate 'Printer' buttons on host page 2018-12-06 17:57:57 +01:00
Maxime Bombar
6fd8111a3b [Printer] Don't display 'Printer' button if not logged in 2018-12-06 17:57:57 +01:00
detraz
7184aa7016 [Printer] Pagination sur le template 2018-12-06 17:57:57 +01:00
detraz
aa2b79bd87 [Printer] Fix prinas None crash 2018-12-06 17:57:57 +01:00
Gabriel Detraz
10f24f4591 Cree l'objet pref printer si il n'existe pas 2018-12-06 17:57:57 +01:00
detraz
bb52a108d1 [Printer] Print again function 2018-12-06 17:57:57 +01:00
detraz
63c9a23ced [Printer] Dashboard des taches en cours 2018-12-06 17:57:57 +01:00
Gabriel Detraz
7c3788f019 ["Printer] fix print_as keyerror 2018-12-06 17:57:57 +01:00
detraz
91becb9bdb [Printer] Migration squashée 2018-12-06 17:57:57 +01:00
Maxime Bombar
58d63ffa6d [Printer] Translation 2018-12-06 17:57:57 +01:00
Maxime Bombar
b55781364a [Printer] Delete unused templates 2018-12-06 17:57:57 +01:00
Maxime Bombar
094be7e59e [Printer] refactor templates 2018-12-06 17:57:57 +01:00
Maxime Bombar
6c903b371c [Printer/Api] Serialize abstract printoperation model 2018-12-06 17:57:57 +01:00
detraz
4b530750f4 [Printer] Abstract print instance + acl mixin for printer app 2018-12-06 17:57:57 +01:00
detraz
bab1ca8f66 [Printer] Refactor form et url 2018-12-06 17:57:57 +01:00
detraz
0a1ee79414 [Printer] Refactor views avec model_form_set 2018-12-06 17:57:57 +01:00
Maxime Bombar
385e73e02f [Printer] remove migrations merge conflict 2018-12-06 17:57:57 +01:00
Maxime Bombar
4b315c3ecf [Printer] Digicode are stored in bdd 2018-12-06 17:57:57 +01:00
Maxime Bombar
6b3fa3b15a [Printer] Move user_printing_path from utils to models (avoid circular import) 2018-12-06 17:57:57 +01:00
Maxime Bombar
5d85fd1b74 [Printer] Handles submission of empty files 2018-12-06 17:57:57 +01:00
Maxime Bombar
663ade9765 [Printer] Fix major bug. See below for more explanations :
Before, I used request.session to store some information about the current jobs to be printed.
This was because in the very beginning, I had an issue with disappearing files in my model.

I was able to fix this issue in a previous commit, but I still needed the jids.
However, because of this storage system, if someone tried to print a file, then oppened a second tab,
and tried to print anoter file, he/she would pay twice for the second file ....

I decided to add a hidden field to store the job id and deal with it, and it is readonly to avoid
changing it.
2018-12-06 17:57:57 +01:00
Maxime Bombar
bca63818ac [Printer] History jobs in API 2018-12-06 17:57:57 +01:00
Maxime Bombar
42f1052b7e [api] Serializer for printer job. Beginning, it's late 2018-12-06 17:57:57 +01:00
Maxime Bombar
56ca2c47a4 Move printing_path from models to utils 2018-12-06 17:57:57 +01:00
Maxime Bombar
471165194b [Printer] Move printer urlpatterns into optional urls 2018-12-06 17:57:57 +01:00
Maxime Bombar
af589f3185 Printer is an optional app 2018-12-06 17:57:57 +01:00
Maxime Bombar
9912e0cfe7 [Printer] Minor Fixes 2018-12-06 17:57:57 +01:00
Maxime Bombar
4aa7b09db9 Printer App a beginning. 2018-12-06 17:57:57 +01:00
Maxime Bombar
6773575dc5 [Printer] Consistency : Invoices are in French 2018-12-06 17:57:57 +01:00
Maxime Bombar
b1a8f697f5 [Printer] Cancel jobs that couldn't be paid 2018-12-06 17:57:57 +01:00
Maxime Bombar
505c5e13e4 [Printer] Fix bug in updating job object 2018-12-06 17:57:57 +01:00