OCA / project

Odoo Project Management and Services Company Addons
https://odoo-community.org/psc-teams/project-service-28
GNU Affero General Public License v3.0
275 stars 775 forks source link

[17.0][FIX] project_timesheet_time_control: Avoid access error with ir.model #1331

Closed victoralmau closed 2 weeks ago

victoralmau commented 2 weeks ago

FWP from 16.0: https://github.com/OCA/project/pull/1330

Avoid access error with ir.model

Only "advanced" users have read access to ir.model, for this reason, we need to apply .sudo()

Please @pedrobaeza can you review it?

@Tecnativa

OCA-git-bot commented 2 weeks ago

Hi @ernestotejeda, some modules you are maintaining are being modified, check this out!

OCA-git-bot commented 2 weeks ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 17.0-ocabot-merge-pr-1331-by-pedrobaeza-bump-patch, awaiting test results.

OCA-git-bot commented 2 weeks ago

Congratulations, your PR was merged at a78ea3db2fab8ce83014ac8b510bef4d87b8b389. Thanks a lot for contributing to OCA. ❤️