Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] base: fix file extension when using default name
The file extension detection previously used to determine whether a filename required an extension was not very smart and in fact only checked for a dot in the filename. `mimetypes.guess_type` is now used on the filename to better determine whether the filename still needs a file extension or not. This commit is a follow-up to: odoo#90614 Which aimed to fix the same issue. TaskId-2826061 closes odoo#91205 X-original-commit: 1a75900 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com> Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
- Loading branch information