OpenUpgrade icon indicating copy to clipboard operation
OpenUpgrade copied to clipboard

chefk if project_task field user_id exists

Open agent-z28 opened this issue 2 months ago • 4 comments

agent-z28 avatar Sep 20 '25 15:09 agent-z28

Can you explain why it shouldn't exist?

pedrobaeza avatar Sep 20 '25 15:09 pedrobaeza

@pedrobaeza I just happend that me and @PCatinean had the Problem in completely diffrent databases and systems. When he told me that he had the same problem, i just thought it would be nice to share the fix.

Also i'm aware that the field is there in: https://github.com/odoo/odoo/blob/14.0/addons/project/models/project.py#L603

Maybe it happens when the OpenUpgrade get's started a second time for the same version.

agent-z28 avatar Oct 02 '25 03:10 agent-z28

Well, it we don't know the reason/root, it's hard to determine if this is the proper solution. For now, this is only omitting a renaming of a column, but maybe it's because the existing column coming from other module that is adding it, and contains incorrect data, and then the problem is at another level. Do you understand my point?

pedrobaeza avatar Oct 02 '25 06:10 pedrobaeza

@pedrobaeza Yes, I understand. The idea was simply to check if the column exists first, and then proceed with the rename — this ensures the operation runs correctly every time.

@PCatinean did you find anthing more ?

agent-z28 avatar Oct 02 '25 06:10 agent-z28