Daily updates from Odoo
Thursday, August 22, 2024
6 changes · master
Enhancements to existing features
The barcode testing tools were modernized to make automated checks clearer and easier to maintain. Test failures now stop immediately, reducing noisy follow-up errors and helping teams identify issues faster.
Original PR description
- switch to individual exports, named functions, and namespaced import - make `fail` fail immediately, otherwise the tour continues running until the python kills everything, which generates a bunch of additional and unhelpful errors[^1] - fix up a few jsdocs [^1]: https://runbot.odoo.com/runbot/build/67090511
Manufacturing shop floor completion now records consumed materials and by-products at the right moment, helping quantities and costs stay aligned with what was actually produced. Barcode manufacturing forms also avoid unnecessary lot or serial number change warnings caused by an incorrect comparison.
Original PR description
That's a splited version of this PR -> https://github.com/odoo/enterprise/pull/60954 ## mrp_workorder: adapt shop floor to match WO behavior Marking components and byproducts as consumed inside the button_finish method, instead of before calling it, will allow updating the value for each product proportionally to qty_producing when the WO is completed. Also add a test to ensure that shop floor "consumed in operation" behavior stays correct. ## stock_barcode_mrp: correctly do lot/SN change check in form view Before this commit, the condition inside saveFormView for checking if the lot name changes was always returning True, because it was compared 2 different types. task: 3810344
URLs used in WhatsApp-related flows and supporting website/studio test scenarios were updated to a cleaner, more human-readable format. This improves clarity for users and aligns automated checks with the newer link style without changing core business behavior.
Original PR description
*= test_web_studio, test_website_sale_full, whatsapp This commit modifies existing URLs to the new format so that the URL's become more human readable. Task-3820230
Time off types created by country-specific payroll localizations are now linked to the correct country. This helps employees see only relevant leave options for their location, reducing confusion when requesting time off.
Original PR description
Currently, when you try to take a time off, you'll have the list of all time off types, cause there is no field "country" on the leave type. So, if you have "sick leave" in belgium, "sickness" in US and "sick holiday" in India, you'll see the three of them. For every L10N that creates a time off type, this commit assigns the right country to the time off type task-3978260
This update prepares manufacturing planning to distinguish products that share the same variant but have different non-variant options, such as pizza toppings or supplements. It supports more accurate stock, purchase, and manufacturing flows, though the user-facing display of these options will be handled separately.
Original PR description
As for now, it was not possible to differentiate products variants with different attributes that did not create a variant. Let's take a pizza as an example. The product template is a pizza, with an…
As for now, it was not possible to differentiate products variants with different attributes that did not create a variant. Let's take a pizza as an example. The product template is a pizza, with an attribute "type" with "margherita, veggie, bbq" which create variants. We also have another attribute "supplements" with values "extra cheese" and "extra peperoni" that do not create variants. As for now, it was not possible to differentiate stock moves with the same pizza variant but with different values for the 'no_variants' attributes (i.e. no difference between two pizza of same type with different supplements). The same applies to purchases, but also to manufacturing orders. The community pr addresses the technical part and thus the never attribute values are not displayed on the different views, and this pr only updates some function signatures. Another commit/PR will take care of making it accessible for the user task-id: 4017183 community: https://github.com/odoo/odoo/pull/171727
When a field service project is moved to another company, its worksheet template now updates automatically to the appropriate template for that company. This helps keep project paperwork aligned with the correct company settings and reduces manual adjustments.
Original PR description
- Update worksheet template based on company change on project form: if moving to Company another company, switch to the template with the lowest sequence with that company. task-3689394