Daily updates from Odoo
Thursday, August 22, 2024
2 changes · master
Enhancements to existing features
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
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