Daily updates from Odoo
Thursday, July 7, 2022
2 changes
Enhancements to existing features
Appointment availability slots can now be configured to end exactly at midnight, instead of requiring a workaround ending at 23:59. This makes scheduling clearer and more accurate for businesses offering late-day or full-day availability.
Original PR description
Previously, midnight couldn't be set as end of a slot, 23:59 was used instead. With this change, 00:00 can be used as 00:00 of the next day. Technical note: - method AppointmentSlot._end_hour_24_get has been added to facilitate checks and computation. We haven't converted it as a computed field because it is merely used in compute and checks which would have required to add not straightforward dependencies to those methods (end_hour_24). Task-2810493
Approval request product lines now automatically use the selected product's description and unit of measure. This makes integrations and automated request creation easier, especially when units of measure are not actively managed in the database.
Original PR description
Convert the onchange on `product_id` to compute fields This allows to create a `approval.product.line` record without the need to specify the description or uom during the creation nor calling the onchange method. The description and uom defaults from the product. This way, if the database is not configured to use multi uom, the users do not have the specify the UOM to use. For instance during an XMLRPC call to create an approval request with a product line.