I would like to create an entry (In this case for a test) but I want to use it with a specific XMLID which is used in another module. Is it possible to change the xml ID after the creation of the entry within the code. The second party module can or can not be installed.
The background is that I want to test it with and without other modules installed. As env.ref("XXXX") is used I need it to have a specific name.
So solutions with entries in the data folder or exporting with a random name are not applicable.