I've created a wizard for adding companies to simplify the process for users. The user has all the correct permissions and can create a company from the company form view.
But when I use the wizard it creates the company, creates the partner and fills it with the data for the custom fields but not the original fields (for address). The record in res_partner has the create_uid from the user that created it. But the user just can't change any data, because it just throws the Access Denied (Document type: Partner, Operation: write) error! I can even put the company to the users companies when the user has multi company enabled, but it doesn't fix the error.
Am I missing something? Can someone help?
Tried everything that I found on this forum and on stack overflow and nothing fixed this problem. I even tried to give all rights to access groups that are for res_partner model, but nothing helps.