Thursday, December 3, 2020
2 changes · master
Resolved issues and error corrections
This fixes an inconsistency where company information could be returned with elevated access in some situations but not others. The change makes access behavior predictable and reduces the risk of operations unintentionally using higher privileges.
Original PR description
Before this commit, the company recordset returned by env.company/env.companies was sometimes in sudo and sometimes not. * If 'allowed_company_ids' was specified in the context, the returned recordset wasn't sudoed. * If no company was specified through the context, company/companies was using env.user.company_id(s) as fallback, which is always sudoed since env.user is always sudoed. With this commit, the behavior is now consistent, the returned recordset is only sudoed if the environment is sudoed. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes a display issue where list views on desktop screens showed the first column too close to the edge. Restoring the left padding makes tables easier to scan and gives the interface a more polished appearance.
Original PR description
PURPOSE The listview first column does not have left padding, list view missing left padding on first column. SPEC listview should have left padding on first column. TASK 2393718