OCA / data-protection

Data Protection
https://github.com/OCA/data-protection/wiki
GNU Affero General Public License v3.0
31 stars 68 forks source link

[12.0][FIX] privacy: Change _default_controller_id() to partner_id. #58

Closed victoralmau closed 3 years ago

victoralmau commented 3 years ago

Change _default_controller_id() to partner_id. This needs to apply to v13 as well.

Please @Yajo and @pedrobaeza can you review it?

@Tecnativa TT31809

pedrobaeza commented 3 years ago

I think it shouldn't be renamed to company_id, but keep controller_id, and simply change default to self.env.user.partner_id.

pedrobaeza commented 3 years ago

Now @Yajo should confirm the original intention of the field.

yajo commented 3 years ago

/ocabot merge patch

OCA-git-bot commented 3 years ago

What a great day to merge this nice PR. Let's do it! Prepared branch 12.0-ocabot-merge-pr-58-by-Yajo-bump-patch, awaiting test results.

OCA-git-bot commented 3 years ago

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