diff options
| author | Florent de Labarre <florent.mirieu@gmail.com> | 2019-05-03 16:41:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-03 16:41:01 +0000 |
| commit | 32eee7b6ec049fa4df05c50eed32887ab0e3ca7c (patch) | |
| tree | 860747b1fb6e5501e355df5e7c251128eac39889 /odoo/tools/misc.py | |
| parent | 46b0b33d06d3b8068a44d2f573362c445316d17f (diff) | |
[IMP] tools: add Tb
Tera byte is now common.
closes odoo/odoo#33151
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'odoo/tools/misc.py')
| -rw-r--r-- | odoo/tools/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/misc.py b/odoo/tools/misc.py index e1a16b574a3..671fd09e148 100644 --- a/odoo/tools/misc.py +++ b/odoo/tools/misc.py @@ -467,7 +467,7 @@ def human_size(sz): """ if not sz: return False - units = ('bytes', 'Kb', 'Mb', 'Gb') + units = ('bytes', 'Kb', 'Mb', 'Gb', 'Tb') if isinstance(sz, str): sz=len(sz) s, i = float(sz), 0 |
