Issue 10849

Title
Attachment size does not always return an integer
Priority
bug
Status
resolved
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
backport, review

Created on 2021-10-12.12:51:19 by ced, last changed yesterday by roundup-bot.

Messages

New changeset f5ba8b673c8d by Cédric Krier in branch 'default':
Set the target field name in the context to get the size
https://hg.tryton.org/tryton-env/rev/f5ba8b673c8d
New changeset 7166741cf718 by Cédric Krier in branch 'default':
Set the target field name in the context to get the size
https://hg.tryton.org/trytond/rev/7166741cf718
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-10-12.12:51:19

The get_size method set a context to format the data field with size but indeed it set the wrong name (data_size) in the context. It works in the views if the data field is also displayed because the client set the correct context but it crashes if the data is not read also.

History
Date User Action Args
2021-10-19 00:22:42roundup-botsetmessages: + msg71105
2021-10-19 00:22:32roundup-botsetmessages: + msg71104
nosy: + roundup-bot
status: testing -> resolved
2021-10-12 12:59:05reviewbotsetmessages: + msg70957
nosy: + reviewbot
2021-10-12 12:53:44cedsetkeyword: + backport
2021-10-12 12:53:39cedsetkeyword: + review
reviews: 383301002
status: in-progress -> testing
2021-10-12 12:51:19cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)