Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][FW] base_technical_user: port from 14.0 #3094

Open
wants to merge 3 commits into
base: 17.0
Choose a base branch
from

Commits on Oct 11, 2024

  1. [14.0] base_technical_user: Allow multi company context

    First, the company should be taken through self.env.company as user.company_id
    is now the default company for the user (and not the current one).
    
    Secondly, the actual code does not allow to do recordset.with_company(B).sudo_tech()....
    as allowed_company_ids in context can be filled in with current company
    (and not the one of the tech user - which is unique)
    rousseldenis authored and Kimkhoi3010 committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    7746981 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f48acb0 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. [FIX] base_technical_user - Error message when no technical user.

    When we use use_tech(raise_if_missing=True) and the technical user (user_tech_id) is not defined on the current company, the error message who said that field is empty should be related to the active company and not related to the default user's company.
    acsonefho authored and Kimkhoi3010 committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    ede0f39 View commit details
    Browse the repository at this point in the history