Tuesday, June 18, 2024
6 changes · master
Enhancements to existing features
Brazilian electronic invoice PDFs generated by Odoo now show a watermark clarifying they are not the official legal invoices. Portal users are also informed that the official documents should be downloaded through the Avatax download option, reducing confusion and compliance risk.
Original PR description
The official invoice will be retrieved via Avatax. Adding the official PDF in the portal is a bit complicated, so we instead simply add a watermark to the standard Odoo one. task-3719527
Custom and anytime appointments can now include more than one staff member, making scheduling more flexible for teams. The update also keeps appointment slots aligned when staff or resources change and restores full form validation during booking.
Original PR description
Remove the constraint preventing to set more than one user on a 'custom' / 'anytime' appointment_type. While creating it from the calendar is linked to the logged user. One could create a custom / anytime appointment in other ways and set multiple users, or add a user to one created from the calendar. Task link: https://www.odoo.com/web#model=project.task&id=3549573 Task-3549573
Adds a new deferred revenue and expense calculation option that books a full monthly amount as soon as a month has started, rather than splitting the first month by days. This gives accounting teams another way to align deferral schedules with business policies while keeping the final month adjusted to balance the total.
Original PR description
In this new computation method, when a month is started, we fully account a "equal per month" amount for it, instead of a prorata-ed amount. The last month will null to compensate for the full first month. E.g.: #### 12000 from 2024-06-05 to 2025-06-04 - 1000 for June 2024 -> Dec 2024, and Jan 2025 -> May 2025 - 0 for June 2025 #### 12000 from 2024-06-30 to 2025-06-29: - 1000 for June 2024 -> Dec 2024, and Jan 2025 -> May 2025 - 0 for June 2025 #### 12000 from 2024-07-01 -> 2025-06-30: - 1000 for July 2024 -> Dec 2024, and Jan 2025 -> June 2025 - 0 for July 2025 - same behaviour as "Equal per month" because the months are full task-id 3925925
Images uploaded to the Documents app are now kept at their original resolution instead of being automatically resized or compressed. This helps users preserve image quality when storing and sharing files through Documents, while other apps continue to use the existing optimization behavior.
Original PR description
To ensure users have access to the original high-resolution images in the Document app without quality loss, we disable the image resizing and compression post-process when uploading image in Document (feature introduced in odoo/odoo#78556). Note that this image post-process is still applied in other application unless also disabled explicitly. Task-3944609
The appointment form used from the planning timeline is easier to complete, with start and end dates shown separately and duration-related fields in a clearer order. When users change the appointment type, the meeting duration can automatically align with that appointment type, reducing manual adjustments and scheduling mistakes.
Original PR description
Improve the form view of calendar event opened on the gantt view of appointments. 1) Add onchange for duration when appointment type is changed: The duration will be aligned with the appointment one. In turn, the stop date will be updated accordingly. 2) Reorder fields to have fields related to the duration come before the duration field itself. 3) Select Date separately for start and stop instead of using the daterange widget. Task-3861242
The sign request wizard now uses clearer wording by labeling the confusing company field as a user field. It also automatically fills in the current user when available, reducing manual setup and helping users send signature requests more smoothly.
Original PR description
before this PR, user were encountering confusion regarding the company field leading to the necessity of manually setting this field, the current user wasn't automatically assigned to the company field. In this PR, the company field has been relabeled as user for clarity. Additionally, the default value for the user field is now automatically set when a user is set. task-3890179