Daily updates from Odoo
Monday, January 15, 2024
1 change · master
Resolved issues and error corrections
This fix prevents VoIP testing from crashing when the optional OnSIP add-on is not installed. It ensures OnSIP-specific settings are only applied when that module is present, improving reliability for standard VoIP setups.
Original PR description
Follow-up of #53729. With only VoIP installed, without voip_onsip, running the test would result in a crash because onsip_auth_username doesn't exist on the mocked model. This commit fixes that by correctly adding onsip_auth_username only if voip_onsip is installed.