Skip to content

Commit 0f9a0ee

Browse files
[IMP] shopfloor_reception_mobile: hide time from lot expiration date display
Updated the lot expiration display to show only the date component. Since the selection widget is restricted to dates, displaying the time was redundant.
1 parent 735d984 commit 0f9a0ee

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

shopfloor_reception_mobile/static/src/scenario/reception.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,17 @@ const Reception = {
323323
label: "Expiry date",
324324
klass: "loud",
325325
renderer: (rec, field) => {
326-
return this.utils.display.render_field_date(rec, field);
326+
return this.utils.display.format_date_display(
327+
_.result(rec, field.path),
328+
{
329+
// Overwrite defaults to only show date and not time
330+
format: {
331+
day: "numeric",
332+
month: "short",
333+
year: "numeric",
334+
},
335+
}
336+
);
327337
},
328338
},
329339
],

0 commit comments

Comments
 (0)