[FIX] mrp: use float_time for mrp_time_counter aggregate

To display an aggregate in a list view, the field format method is used.

But since mrp_time_counter that extend float_time has no format method,
you would see eg. 2.07 as aggregate and 2:04 on the line which is a
little confusing.

opw-2514634

closes odoo/odoo#69795

X-original-commit: 020958f55d384e546eb61c98763d45b5db1ed206
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
Nicolas Lempereur
2021-04-23 17:53:10 +00:00
parent c89e6587a9
commit 8418f15104
+2
View File
@@ -262,5 +262,7 @@ field_registry
.add('mrp_time_counter', TimeCounter)
.add('embed_viewer', FieldEmbedURLViewer);
fieldUtils.format.mrp_time_counter = fieldUtils.format.float_time;
return FieldEmbedURLViewer;
});