Stéphan Sainléger
fb7ff241f5
[FIX] hr_expense_report_merge_attachment: handle HEIC images uploaded as JPEG
...
Some iPhone users upload HEIC files with a ``.jpg`` extension. Odoo stores
the file as-is, but the mimetype is detected as ``image/...``, so the code
enters the image processing branch. ``reportlab``'s ``ImageReader`` relies
on ``PIL.Image.open()`` which cannot identify HEIC files without an explicit
plugin, causing a ``PIL.UnidentifiedImageError`` and a 500 error on report
download.
Fix by:
- Registering the ``pillow-heif`` opener at module load time (optional
dependency, silently ignored if not installed) so that Pillow can decode
HEIC/HEIF images.
- Converting any image to JPEG in memory via Pillow before passing it to
``ImageReader``, bypassing ``reportlab``'s own format detection entirely.
- Wrapping the image block in a ``try/except`` to gracefully skip
attachments that cannot be decoded, consistent with the existing PDF
error handling.
2026-05-15 13:36:43 +02:00
87dd45a49f
[MIG]allow_negative_leave_and_allocation:v14
2025-01-07 17:06:52 +01:00
clementthomas
141ad6bfcd
[IMP] hr_expense_specific_journal: set default journal
2023-10-17 12:29:02 +02:00
clementthomas
d59b2df993
[NEW] hr_expense_specific_journal
2023-10-11 09:30:35 +02:00
clementthomas
cf29d356fe
[IMP] hr_expense_report_merge_attachment: rename module
2023-07-10 16:37:45 +02:00
clementthomas
b282d2f726
[IMP] hr_expense_analytic_account_preselect_with_project: String and required project field
2023-06-23 11:04:10 +02:00
clementthomas
0e80defb81
[NEW] hr_expense_analytic_account_preselect_with_project: new module
2023-06-22 14:28:18 +02:00
clementthomas
81010e0145
[ADD] hr_expense_report_merge_attachment: Merge expense attachments in report
2023-05-16 09:56:53 +02:00
clementthomas
7694bd5c06
[IMP] hr_luncheon_voucher: add voucher balance field
2023-04-28 14:55:46 +02:00
clementthomas
0538e04997
[IMP] hr_luncheon_voucher: search of Luncheon Voucher
...
add search by employee and distrib_campaign_name, whatever the company
2023-04-17 15:13:00 +02:00
clementthomas
c7f2d0683b
[FIX] hr_effective_attendance_period: DST
...
daylight saving time (DST) fix when compute UTC time
2023-04-13 08:36:10 +02:00
Stéphan Sainléger
070bdaca52
[FIX] hr_effective_attendance_period: fix timezone consideration
2023-02-27 16:05:46 +01:00
Stéphan Sainléger
b08119cf4e
[FIX] hr_luncheon_voucher: only consider employee's meetings
2023-02-06 23:36:39 +01:00
Stéphan Sainléger
dbfa5624a3
[I18N] hr_effective_attendance_period: add french translation
2023-02-01 23:35:55 +01:00
Stéphan Sainléger
06e0793a6c
[FIX] hr_luncheon_voucher: fix french translation issues
...
french translations weren not loaded
2023-02-01 23:34:16 +01:00
Stéphan Sainléger
cc901c2e62
[REF] hr_luncheon_voucher: remove useless code
2023-02-01 23:25:51 +01:00
Stéphan Sainléger
8579e22474
[REF] hr-luncheon-voucher: rename add-on in hr_luncheon_voucher
...
to respect OCA guidelines
2023-02-01 23:25:51 +01:00
Stéphan Sainléger
68788e3950
[IMP] hr-luncheon-voucher: move resource code to dedicated addon
...
Moves code in add-on hr_effective_attendance_period
2023-01-24 22:24:57 +01:00
Stéphan Sainléger
c7e1c8de0b
[IMP] hr_effective_attendance_period: add resource.calendar code
...
adds several usability functions in resource.calendar model.
2023-01-24 22:23:28 +01:00
Stéphan Sainléger
4dc8241a5e
[I18N] hr-luncheon-voucher: add french translations
2023-01-19 14:52:52 +01:00
Stéphan Sainléger
250b9022cf
[IMP] hr-luncheon-voucher: improve allocation form creation process
2023-01-19 10:14:47 +01:00
Stéphan Sainléger
eab094677a
[IMP] hr-luncheon-voucher: add effective attendance as criteria
...
The calculation of eligible attendances now also depends on the
effective attendance period field.
2023-01-18 15:16:05 +01:00
Stéphan Sainléger
2a6fb40a15
[NEW] hr_effective_attendance_period: create add-on
2023-01-18 14:38:51 +01:00
Stéphan Sainléger
4a5f926b1d
[NEW] hr-luncheon-vouchers: create addons
2022-09-01 17:38:25 +02:00
Stéphan Sainléger
2a4f509178
Initial commit
2022-06-22 14:13:39 +02:00