Skip to content

Conversation

@baimont
Copy link
Contributor

@baimont baimont commented Oct 18, 2022

em230418 and others added 2 commits October 18, 2022 10:49
Use the current company to trigger the job (+ add related tests)

[14.0][FIX] queu_job: allowed_company_ids => use with_company(...)
Fill allowed_company_ids from context with the job's company instead of every allowed companies of the user.
Because most of the time, a job is related to only one company. And adding every allowed companies of the user into the context may load some unexpected records (during search for example). Because standards ir.rule use ['|',('company_id','=',False),('company_id', 'in', company_ids)] and this 'company_ids' is filled with every allowed companies from the context.
@OCA-git-bot
Copy link
Contributor

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

@sbidoul
Copy link
Member

sbidoul commented Oct 18, 2022

We don't want #387. See #387 (comment).

@sbidoul sbidoul closed this Oct 18, 2022
@sbidoul sbidoul deleted the oca-port-pr-387-from-14.0-to-16.0 branch October 18, 2022 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants