Skip to content

[13.0] [14.0] company_id should be preserved when a delayed method is executed #363

@lmignon

Description

@lmignon

When a job is cretated, the current company is stored into the job info. Nevertheless, when a job is performed, it seems that the company is not restored into the running context...
Do I miss something or should we modify the func method to call the with_company method on the recordset before the call o the dlayed method?

    def func(self):
        recordset = self.recordset.with_context(job_uuid=self.uuid).with_company(self.company_id)
        return getattr(recordset, self.method_name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions