diff options
| author | Swapnesh Shah <swapneshshah111@gmail.com> | 2020-12-27 16:13:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-27 16:13:48 +0000 |
| commit | deaa4d7dd2690ce389be6709e1b387ae990b514f (patch) | |
| tree | 3ba2158fab222830f17d2376611aad8aff75f4e8 /addons | |
| parent | 0e046c03517c7fb7efd671d63f6fbe1c27a46472 (diff) | |
[FIX] stock: correct date format in forecast report
Before this fix, Default date format `medium` was used in Forecast report,
Which doesn't respect Date/Time format from Language.
Now, we are not passing any dt_format which will use Date/Time format
from Language.
closes odoo/odoo#63805
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/stock/report/report_stock_forecasted.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock/report/report_stock_forecasted.py b/addons/stock/report/report_stock_forecasted.py index 07a6128b673..c47b42e1d7e 100644 --- a/addons/stock/report/report_stock_forecasted.py +++ b/addons/stock/report/report_stock_forecasted.py @@ -122,8 +122,8 @@ class ReplenishmentReport(models.AbstractModel): }, 'replenishment_filled': replenishment_filled, 'uom_id': product.uom_id, - 'receipt_date': format_datetime(self.env, move_in.date, timezone, 'medium') if move_in else False, - 'delivery_date': format_datetime(self.env, move_out.date, timezone, 'medium') if move_out else False, + 'receipt_date': format_datetime(self.env, move_in.date, timezone, dt_format=False) if move_in else False, + 'delivery_date': format_datetime(self.env, move_out.date, timezone, dt_format=False) if move_out else False, 'is_late': is_late, 'quantity': quantity, 'move_out': move_out, |
