Daily updates from Odoo
Friday, May 2, 2025
3 changes · master
Resolved issues and error corrections
Salary offer configurations now correctly use the default choices for benefits when no starting value was entered. This ensures candidates and recruiters see accurate salary calculations as soon as an offer is opened or adjusted.
Original PR description
**Steps to Reproduce:** 1. Create a new contract template with some benefits using various display types (slider, dropdown, dropdown-group). 2. Go to the Recruitment app, create an application linked…
**Steps to Reproduce:** 1. Create a new contract template with some benefits using various display types (slider, dropdown, dropdown-group). 2. Go to the Recruitment app, create an application linked to the contract template, and generate an offer. **Cause:** 1. We were filling the state based only on the initial_values. If a field's initial value was not set or was 0, we set the state to 0. If the field type was a dropdown and no initial value was set, we also set it to 0. However, in a dropdown, the default selected value is always the first option. 2. Since the value was not set the salary configuration value was not updating on initial render. **Fix:** 1. To fix the issue, put condition where if the initial_values is not set -- In dropdown and dropdown-group: If initial_values is not set then we should select the first default selected value and do our computation. -- In slider(range): If the initial_values is not set then we should take the min slider value as a default value and do our computation. task-3856395
This update ensures stipend payroll calculations include the gross stipend amount when determining net salary. As a result, stipend payments should appear correctly in payroll reports and accounting outputs, improving accuracy for Indian payroll processing.
Original PR description
This PR includes the following updates: - Added the gross amount calculation to the net salary rule for the stipend salary structure. - Ensured that stipend amounts are included in reports and COA by updating the net salary rule logic. Task - 4668024
IoT Boxes are now identified by a stable device identifier instead of their network connection address. This prevents the same physical box from appearing twice when it switches between Ethernet and Wi-Fi, reducing confusion and cleanup for users.
Original PR description
IoT Boxes have both Ethernet and Wi-Fi interfaces, each with a unique MAC address. When connected via Ethernet, the database registers the Ethernet MAC. If the Ethernet cable is later unplugged and the device switches to Wi-Fi, the database treats it as a new device due to the different MAC address, resulting in duplicate records for the same physical device. This commit changes the identifier from the MAC address, to: - the motherboard uuid on windows, - the serial number on rpi. Community PR: [https://github.com/odoo/odoo/pull/207230](https://github.com/odoo/odoo/pull/207230) Task: 4592611