Daily updates from Odoo
Monday, January 6, 2025
1 change · 18.0
Code cleanup and technical improvements
This change centralizes how country-specific POS setups ensure essential customer records are available when a session opens. It helps avoid POS disruptions caused by partner loading limits while keeping the behavior easier to maintain across affected localizations.
Original PR description
For some localizations, some partners are required at all times for the POS to work properly. Since we restrict the number of loaded partners, we need to explicitly add those required partners to the set of partners loaded at the opening of the pos session. Previous fixes implemented this logic in pos_onfig. However it seems like it would make more sense to handle this from res.partner directly. This PR proposes such a change, where the required partners are being loaded from a newly dedicated function.