web icon indicating copy to clipboard operation
web copied to clipboard

[17.0] [MIG] web_ir_actions_act_multi

Open augusto-weiss opened this issue 2 years ago • 6 comments

augusto-weiss avatar Dec 27 '23 14:12 augusto-weiss

/ocabot migration web_ir_actions_act_multi

pedrobaeza avatar Jan 03 '24 13:01 pedrobaeza

@augusto-weiss are you close to merge this pr ?

lbisiach avatar Jun 19 '24 19:06 lbisiach

Hi @lbisiach, sorry i lost the notification... this pr must have review

augusto-weiss avatar Sep 30 '24 15:09 augusto-weiss

@chienandalu i update the table name, so now it's posible to uninstall the module without have a crashed db

augusto-weiss avatar Sep 30 '24 19:09 augusto-weiss

@chienandalu IMO make the model Abstract is a better option... i am not sure about a case where users want to declare data

augusto-weiss avatar Oct 03 '24 18:10 augusto-weiss

IMO make the model Abstract is a better option... i am not sure about a case where users want to declare data

I think so, but in any case, I think a migration script should be made to avoid dropping the table when the ir.model gets unlinked. I think OU handles this with its non destructive policy but maybe in other contexts it isn't

chienandalu avatar Oct 04 '24 06:10 chienandalu

Hello everyone @chienandalu @gaikaz @lbisiach @pedrobaeza I'm working on migration script for the issue . I pushed a new PR with a commit which fix it. If you think its ok, i can include it here. https://github.com/OCA/web/pull/2997/commits/a01cfad69a25fc55115c0f013c12d0c785023e25 Let me know your opinions

augusto-weiss avatar Nov 21 '24 14:11 augusto-weiss

Hi @carlos-lopez-tecnativa i'm waiting for some feedback. Last changes could be: https://github.com/OCA/web/commit/a01cfad69a25fc55115c0f013c12d0c785023e25

augusto-weiss avatar Jan 30 '25 19:01 augusto-weiss

Hi @augusto-weiss sorry I had to grok the issue again 😅

Your option of using another table is safe enough, although at the cost of an extra table that won't be used. Not big deal anyway :)

Another option would be just using the model as abstract to avoid the uninstall problems, as that would ignore dropping the table: https://github.com/odoo/odoo/blob/88d0d1e15b7f3efeab39017512585248fd8c1d94/odoo/addons/base/models/ir_model.py#L297

And the third one to create an uninstall hook, which would probably kinda complex as we'd need to avoid dropping the table somehow...

So add your changes for the final review :)

ping @augusto-weiss

carlos-lopez-tecnativa avatar Feb 20 '25 11:02 carlos-lopez-tecnativa

Sorry @chienandalu i lost the notification! Thank @carlos-lopez-tecnativa for ping me

augusto-weiss avatar Feb 26 '25 11:02 augusto-weiss

@augusto-weiss please include https://github.com/OCA/web/pull/3119 and squash any additional administrative commits.

carlos-lopez-tecnativa avatar Mar 11 '25 16:03 carlos-lopez-tecnativa

@augusto-weiss please include #3119 and squash any additional administrative commits.

ping @augusto-weiss

carlos-lopez-tecnativa avatar Mar 19 '25 18:03 carlos-lopez-tecnativa

@augusto-weiss please include #3119 and squash any additional administrative commits.

ping @augusto-weiss

carlos-lopez-tecnativa avatar Mar 25 '25 17:03 carlos-lopez-tecnativa

Hi @carlos-lopez-tecnativa thanks about that. I included it. cc @chienandalu @gaikaz

augusto-weiss avatar Mar 26 '25 12:03 augusto-weiss

/ocabot merge nobump

pedrobaeza avatar Mar 26 '25 14:03 pedrobaeza

This PR looks fantastic, let's merge it! Prepared branch 17.0-ocabot-merge-pr-2704-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot avatar Mar 26 '25 14:03 OCA-git-bot

Congratulations, your PR was merged at 0e5e4bf58918e610f0e4e52e55ed17ec93fa14ef. Thanks a lot for contributing to OCA. ❤️

OCA-git-bot avatar Mar 26 '25 14:03 OCA-git-bot