[18.0][MIG] cooperator - #182
Conversation
844a0bf to
df7e2d0
Compare
e4bacca to
622a995
Compare
huguesdk
left a comment
There was a problem hiding this comment.
thanks for your contribution.
first of all, please read this: https://github.com/OCA/.github/blob/master/AI_POLICY.md
i’m not going to read lengthy verbose ai-generated descriptions and commit messages that are probably only partly correct.
important: most modules in this repository had a different name in version 12.0 and earlier (for example, cooperator was called easy_my_coop). please see the full history in 16.0 to find out the previous names. it’s important to keep the full commit history. until now, we did that by providing multiple directories to git format-patch. but a better solution is to rename the directory in the commit history itself by using git filter-branch, as explained here (see “If the module is renamed…”).
also: if an ai agent replies to this, this pr will be closed.
|
Ok @huguesdk let me see what i can do here. Sorry for the history coopiteasy lost. |
Signed-off-by: Carmen Bianca Bakker <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca Bakker <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca Bakker <carmen@coopiteasy.be>
update share fields values of the internal subscription request of a transfer operation to a non-member when these values are changed in the form. this ensures that the values are correct even if the subscription request is created before the values are set.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: cooperative-16.0/cooperative-16.0-cooperator Translate-URL: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-cooperator/
fix default value of subscription.request.country_id.
Currently translated at 100.0% (472 of 472 strings) Translation: cooperative-16.0/cooperative-16.0-cooperator Translate-URL: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-cooperator/it/
rename obsolete occurrences of the "blocked" subscription.request state still present as "block".
Currently translated at 100.0% (472 of 472 strings) Translation: cooperative-16.0/cooperative-16.0-cooperator Translate-URL: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-cooperator/it/
co-authored-by: hugues de keyzer <odoo@hugues.info>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: cooperative-16.0/cooperative-16.0-cooperator Translate-URL: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-cooperator/
Currently translated at 100.0% (474 of 474 strings) Translation: cooperative-16.0/cooperative-16.0-cooperator Translate-URL: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-cooperator/it/
attrs/states converted to expression syntax; account.chart.template hook ported to the AbstractModel API; mail templates moved to report_template_ids; account.invoice.report._select() composes SQL objects instead of concatenating strings. Fixes four bugs found while migrating: - block_subscription_request wrote state "block", the selection defines "blocked" - the confirmation mail email_to evaluated ", " + False when a company request had no company email, aborting the request - the partner-create-subscription wizard set cooperator=True on the representative, raising ValidationError - get_cooperator_from_crn() searched company_register_number on the membership model; the field is on res.partner Assisted-by: Claude Opus 5
622a995 to
729cb97
Compare
|
thank you for your (human) answer. another thing to pay attention to: although the commit history is there, it seems that the migration commit is based on an quite older version of the code, as it is missing all the changes from the 16.0 branch that happened in the last 2 years: #144, #140, #166, #169, #162, #170, #171, #173 (claiming that it fixed a bug, that was actually already fixed) and #176. please base the migration on the latest version of the 16.0 branch. |
Migration of
cooperatorto 18.0, with the full 16.0 commit history preserved (292 commits, original authorship kept) and a single migration commit on top.Migration highlights
attrs/statesconverted to expression syntax; Python field-levelstatesmoved to view-levelreadonlyexpressionsaccount.chart.templatehook ported to the AbstractModel API — cooperator accounting initialization works on new companiesaccount.accountcreated throughwith_company();res.companyported tochart_template/_existing_accounting()report_template_ids, attachment filenames preserved throughprint_report_nameaccount.invoice.report._select()composesSQLobjects (string concatenation raisedTypeError)Bugs found and fixed during the migration
block_subscription_requestwrote state"block"while the selection defines"blocked"— the Block button raisedValueErrorwhen clicked.email_toevaluated", " + Falsefor company requests without a company email, aborting the request creation (guarded; the data file isnoupdate).cooperator=True, which raisesValidationErrorsince the cooperative-membership refactor.cooperative.membership.get_cooperator_from_crn()searchedcompany_register_numberon the membership model itself; the field lives onres.partnerand the method crashed on every call.subscription.request.create()also batches properly now (40 records: 307 → 229 queries).Quality
pre-commitgreen with the 18.0 branch configuration