[19.0][OU-ADD] website_*: noupdate handling + complete analyses#5633
[19.0][OU-ADD] website_*: noupdate handling + complete analyses#5633dnplkndll wants to merge 1 commit into
Conversation
d5f0e0e to
7cde3bf
Compare
Adds upgrade_analysis_work.txt for the 4 hr_* submodules with
substantial 19.0 deltas: hr_attendance, hr_holidays_attendance,
hr_skills, hr_recruitment_skills.
These cluster into two logical refactors that are already covered by
apriori.renamed_models:
hr.attendance.overtime → hr.attendance.overtime.line
(hr_attendance, hr_holidays_attendance)
hr.candidate.skill → hr.applicant.skill
(hr_recruitment_skills)
For both clusters the apriori rename handles the data move. The
many2many table "now hr_applicant_hr_skill_rel ('False')" matches
Odoo's auto-naming for hr.applicant ↔ hr.skill (alphabetical
hr_applicant_hr_skill_rel) and hr.employee ↔ hr.skill, so no explicit
rename_tables is needed.
NEW models (overtime rule, overtime ruleset, skill history report,
certification report, hr.individual.skill.mixin, hr.job.skill) are
created by the 19.0 module load. NEW fields all carry hasdefault
(default or compute). NEW required+function fields are computed by
Odoo at registry init. DEL fields/views/access are preserved per the
maintainer's philosophy; database_cleanup handles residuals once 19.0
is in active use.
Companion to OCA#5634 ([19.0][MIG] hr_* for 13 simple submodules); same
review precedent as OCA#5633.
hr, hr_expense, hr_holidays, hr_work_entry are already done.
hr_recruitment (OCA#5612) is in flight by @hbrunn.
Adds upgrade_analysis_work.txt for the 4 hr_* submodules with
substantial 19.0 deltas: hr_attendance, hr_holidays_attendance,
hr_skills, hr_recruitment_skills.
These cluster into two logical refactors that are already covered by
apriori.renamed_models:
hr.attendance.overtime → hr.attendance.overtime.line
(hr_attendance, hr_holidays_attendance)
hr.candidate.skill → hr.applicant.skill
(hr_recruitment_skills)
For both clusters the apriori rename handles the data move. The
many2many table "now hr_applicant_hr_skill_rel ('False')" matches
Odoo's auto-naming for hr.applicant ↔ hr.skill (alphabetical
hr_applicant_hr_skill_rel) and hr.employee ↔ hr.skill, so no explicit
rename_tables is needed.
NEW models (overtime rule, overtime ruleset, skill history report,
certification report, hr.individual.skill.mixin, hr.job.skill) are
created by the 19.0 module load. NEW fields all carry hasdefault
(default or compute). NEW required+function fields are computed by
Odoo at registry init. DEL fields/views/access are preserved per the
maintainer's philosophy; database_cleanup handles residuals once 19.0
is in active use.
Companion to OCA#5634 ([19.0][MIG] hr_* for 13 simple submodules); same
review precedent as OCA#5633.
hr, hr_expense, hr_holidays, hr_work_entry are already done.
hr_recruitment (OCA#5612) is in flight by @hbrunn.
Adds upgrade_analysis_work.txt for the 4 hr_* submodules with
substantial 19.0 deltas: hr_attendance, hr_holidays_attendance,
hr_skills, hr_recruitment_skills.
These cluster into two logical refactors that are already covered by
apriori.renamed_models:
hr.attendance.overtime → hr.attendance.overtime.line
(hr_attendance, hr_holidays_attendance)
hr.candidate.skill → hr.applicant.skill
(hr_recruitment_skills)
For both clusters the apriori rename handles the data move. The
many2many table "now hr_applicant_hr_skill_rel ('False')" matches
Odoo's auto-naming for hr.applicant ↔ hr.skill (alphabetical
hr_applicant_hr_skill_rel) and hr.employee ↔ hr.skill, so no explicit
rename_tables is needed.
NEW models (overtime rule, overtime ruleset, skill history report,
certification report, hr.individual.skill.mixin, hr.job.skill) are
created by the 19.0 module load. NEW fields all carry hasdefault
(default or compute). NEW required+function fields are computed by
Odoo at registry init. DEL fields/views/access are preserved per the
maintainer's philosophy; database_cleanup handles residuals once 19.0
is in active use.
Companion to OCA#5634 ([19.0][MIG] hr_* for 13 simple submodules); same
review precedent as OCA#5633.
hr, hr_expense, hr_holidays, hr_work_entry are already done.
hr_recruitment (OCA#5612) is in flight by @hbrunn.
Adds upgrade_analysis_work.txt for the 4 hr_* submodules with
substantial 19.0 deltas: hr_attendance, hr_holidays_attendance,
hr_skills, hr_recruitment_skills.
These cluster into two logical refactors that are already covered by
apriori.renamed_models:
hr.attendance.overtime → hr.attendance.overtime.line
(hr_attendance, hr_holidays_attendance)
hr.candidate.skill → hr.applicant.skill
(hr_recruitment_skills)
For both clusters the apriori rename handles the data move. The
many2many table "now hr_applicant_hr_skill_rel ('False')" matches
Odoo's auto-naming for hr.applicant ↔ hr.skill (alphabetical
hr_applicant_hr_skill_rel) and hr.employee ↔ hr.skill, so no explicit
rename_tables is needed.
NEW models (overtime rule, overtime ruleset, skill history report,
certification report, hr.individual.skill.mixin, hr.job.skill) are
created by the 19.0 module load. NEW fields all carry hasdefault
(default or compute). NEW required+function fields are computed by
Odoo at registry init. DEL fields/views/access are preserved per the
maintainer's philosophy; database_cleanup handles residuals once 19.0
is in active use.
Companion to OCA#5634 ([19.0][MIG] hr_* for 13 simple submodules); same
review precedent as OCA#5633.
hr, hr_expense, hr_holidays, hr_work_entry are already done.
hr_recruitment (OCA#5612) is in flight by @hbrunn.
Adds upgrade_analysis_work.txt for the 4 hr_* submodules with
substantial 19.0 deltas: hr_attendance, hr_holidays_attendance,
hr_skills, hr_recruitment_skills.
These cluster into two logical refactors that are already covered by
apriori.renamed_models:
hr.attendance.overtime → hr.attendance.overtime.line
(hr_attendance, hr_holidays_attendance)
hr.candidate.skill → hr.applicant.skill
(hr_recruitment_skills)
For both clusters the apriori rename handles the data move. The
many2many table "now hr_applicant_hr_skill_rel ('False')" matches
Odoo's auto-naming for hr.applicant ↔ hr.skill (alphabetical
hr_applicant_hr_skill_rel) and hr.employee ↔ hr.skill, so no explicit
rename_tables is needed.
NEW models (overtime rule, overtime ruleset, skill history report,
certification report, hr.individual.skill.mixin, hr.job.skill) are
created by the 19.0 module load. NEW fields all carry hasdefault
(default or compute). NEW required+function fields are computed by
Odoo at registry init. DEL fields/views/access are preserved per the
maintainer's philosophy; database_cleanup handles residuals once 19.0
is in active use.
Companion to OCA#5634 ([19.0][MIG] hr_* for 13 simple submodules); same
review precedent as OCA#5633.
hr, hr_expense, hr_holidays, hr_work_entry are already done.
hr_recruitment (OCA#5612) is in flight by @hbrunn.
Adds upgrade_analysis_work.txt for the 4 hr_* submodules with
substantial 19.0 deltas: hr_attendance, hr_holidays_attendance,
hr_skills, hr_recruitment_skills.
These cluster into two logical refactors that are already covered by
apriori.renamed_models:
hr.attendance.overtime → hr.attendance.overtime.line
(hr_attendance, hr_holidays_attendance)
hr.candidate.skill → hr.applicant.skill
(hr_recruitment_skills)
For both clusters the apriori rename handles the data move. The
many2many table "now hr_applicant_hr_skill_rel ('False')" matches
Odoo's auto-naming for hr.applicant ↔ hr.skill (alphabetical
hr_applicant_hr_skill_rel) and hr.employee ↔ hr.skill, so no explicit
rename_tables is needed.
NEW models (overtime rule, overtime ruleset, skill history report,
certification report, hr.individual.skill.mixin, hr.job.skill) are
created by the 19.0 module load. NEW fields all carry hasdefault
(default or compute). NEW required+function fields are computed by
Odoo at registry init. DEL fields/views/access are preserved per the
maintainer's philosophy; database_cleanup handles residuals once 19.0
is in active use.
Companion to OCA#5634 ([19.0][MIG] hr_* for 13 simple submodules); same
review precedent as OCA#5633.
hr, hr_expense, hr_holidays, hr_work_entry are already done.
hr_recruitment (OCA#5612) is in flight by @hbrunn.
669d568 to
80fdb7c
Compare
remi-filament
left a comment
There was a problem hiding this comment.
Thanks @dnplkndll for your PR
- commit should be [OU-ADD]
- you need to take care of noupdate XML :
- delete removed ones
- check and load changes (files noupdate_changes.xml)
You probably better split this PR.
You could keep one for all nothing to do modules, and then have one per module where scripts are needed
| DEL ir.model.access: website_membership.access_membership_membership_line_public | ||
| DEL ir.model.access: website_membership.access_membership_product_product_public | ||
| DEL ir.rule: website_membership.membership_membership_line_public (noupdate) | ||
| DEL ir.rule: website_membership.membership_product_product_public (noupdate) |
There was a problem hiding this comment.
Both rules being noupdate need to be forced removed
There was a problem hiding this comment.
Done in a5ccbad — pre-migration deletes both website_membership noupdate ir.rule records via direct SQL on ir_rule/ir_model_data.
| NEW ir.model.access: website_event.access_event_event_slot_employee | ||
| NEW ir.model.access: website_event.access_event_event_slot_portal | ||
| NEW ir.model.access: website_event.access_event_event_slot_public | ||
| NEW ir.rule: website_event.ir_rule_event_slot_public (noupdate) |
There was a problem hiding this comment.
Same here noupdate record should be handled in openupgrade scripts
There was a problem hiding this comment.
The noupdate_changes.xml (2 ir.rule domain_force updates aligning with new event_ids m2m schema) is left active — these are security migration updates that need to apply. The work doc marks the changed sections accordingly. The NEW noupdate ir.rule (ir_rule_event_slot_public) is created on standard module update.
| ---Models in module 'website_event_sale'--- | ||
| ---Fields in module 'website_event_sale'--- | ||
| ---XML records in module 'website_event_sale'--- | ||
| DEL ir.rule: website_event_sale.event_product_template_public (noupdate) |
There was a problem hiding this comment.
Here Aldo, should be handled
There was a problem hiding this comment.
Done in a5ccbad — pre-migration deletes the event_product_template_public noupdate ir.rule via direct SQL. Work doc updated with per-group markers.
| DEL ir.model.access: website_livechat.access_im_livechat_channel_public_employee | ||
| DEL ir.model.access: website_livechat.access_im_livechat_channel_public_portal | ||
| DEL ir.model.access: website_livechat.access_im_livechat_channel_public_public | ||
| DEL ir.rule: website_livechat.im_livechat_channel_rule_public (noupdate) |
There was a problem hiding this comment.
Same here, should be handled
There was a problem hiding this comment.
Done in a5ccbad — pre-migration deletes the im_livechat_channel_rule_public noupdate ir.rule via direct SQL. Work doc updated with per-group markers.
| DEL ir.ui.view: website_slides.courses_all | ||
| DEL ir.ui.view: website_slides.slide_searchbar_input_snippet_options | ||
| DEL ir.ui.view: website_slides.snippet_options | ||
| DEL mail.activity.type: website_slides.mail_activity_data_access_request (noupdate) |
There was a problem hiding this comment.
Same here, should be handled
There was a problem hiding this comment.
Done in a5ccbad — pre-migration deletes the mail_activity_data_access_request noupdate mail.activity.type via direct SQL. Also: the noupdate_changes.xml mail template body was removed from the file rather than commented out — the template's body_html contains nested <!-- ... --> structural markers, so an outer comment wrapper produces invalid XML.
|
And you should make one PR per module, for easing the review and not blocking the whole PR if something is found in the review. |
|
You also need to update https://github.com/OCA/OpenUpgrade/blob/19.0/docsource/modules180-190.rst |
|
@remi-filament thank you for the detailed feedback. first time contributor, but have often made use of this tool. just starting to look over here. |
80fdb7c to
a5ccbad
Compare
|
@remi-filament — addressed all five threads + body comments in a5ccbad:
Fork CI green on both seeds. Title + body refreshed. Ready for re-review. |
|
Splitting per maintainer convention into:
The split better matches the Closing this aggregator PR; full audit trail preserved under |
Analysis-annotation coverage for 31
website_*submodules plus pre-migration scripts for 4 modules that needed explicit noupdate handling.Pre-migration scripts (noupdate record deletion via direct SQL):
website_crm_partner_assign— deletes 2website_membershipnoupdate ir.rules.website_event_sale— deletesevent_product_template_publicnoupdate ir.rule.website_livechat— deletesim_livechat_channel_rule_publicnoupdate ir.rule.website_slides— deletesmail_activity_data_access_requestnoupdate mail.activity.type.noupdate_changes.xml decisions:
website_event— 2ir.ruledomain_forceupdates left active (security framework migration).website_slides—mail_notification_channel_invitetemplate removed from the file (preserves operator-customized template body; in-file<!-- ... -->wrapping would have produced invalid XML due to nested HTML comments).docsource: the 5 actively-handled modules (
website_crm_partner_assign,website_event,website_event_sale,website_livechat,website_slides) markedDoneto opt into CI migration tests.Commit retagged
[OU-ADD](was[MIG]) per maintainer convention now that pre-migration scripts ship.