Daily updates from Odoo
Friday, May 10, 2019
3 changes
Resolved issues and error corrections
This fix prevents large binary files, such as images or attachments, from being included directly in list data responses. Records with these fields now load more efficiently by fetching the actual file content separately only when needed, reducing unnecessary data transfer and improving responsiveness.
Original PR description
The `read` done by `_fetchRecord` in `basic_model.js` expicitely set a `bin_size: true` in the context. That context option tells the backend to send the size of the binary payload instead of the payload itself thus slim the response size. Frontend widgets are then responsible to fetch the actual payload in a separed http req. The `search_read` done by `_searchReadUngroupedList` didn't set the context option thus all the binary fields were sent b64 encoded along with the `search_read` response. opw-1963842
This change updates the Base module to identify the main administrator using the configured system constant instead of assuming it is always user ID 1. This helps avoid access issues in databases where the administrator has a different internal ID.
Original PR description
**Description of the issue/feature this PR addresses:** If you check for 1 instead for SUPERUSER_ID you may face problems if the SUPERUSER_ID has a different number. **Current behavior before PR:** To check for user root is checking for 1. **Desired behavior after PR is merged:** To check for user root is checking for SUPERUSER_ID. **Versions affected**: All. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adds a missing required component for the payroll dashboard. It helps ensure the payroll dashboard loads and works reliably for users.
Original PR description
The dependency was forgotten when introducing the payroll dashboard.