ajouts astats pourcentage devis + modif permission devis gest

This commit is contained in:
cthienan
2021-08-02 15:05:28 +02:00
parent 63105f5c67
commit 0e77614b89
12 changed files with 185 additions and 26 deletions

View File

@@ -127,6 +127,7 @@ def dossier_view(request):
bg_color = "bg-%s" % societe
status = get_status_by_id(request, '')
motifs = get_motifs(request)
if 'form.close' in request.params:
status = request.params["status"]
@@ -159,6 +160,7 @@ def dossier_view(request):
'bg_color': bg_color,
'access': access,
'status': status,
'motifs': motifs,
}
@view_config(route_name='dossier_selected', permission='view')
@@ -1442,8 +1444,8 @@ def resize_photos(image_file):
# set the resizing factor so the aspect ratio can be retained
# factor > 1.0 increases size
# factor < 1.0 decreases size
factor = 0.50
width = int(width_org * factor)
width = 1366
factor = (width/float(width_org))
height = int(height_org * factor)
# best down-sizing filter
img_anti = img_org.resize((width, height), Image.ANTIALIAS)