-
-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[15.0][MIG] base_comment_template: Migration to 15.0 #646
[15.0][MIG] base_comment_template: Migration to 15.0 #646
Conversation
/ocabot migrationbase_comment_template |
Hi @pedrobaeza. Your command failed:
Ocabot commands
More information
|
/ocabot migration base_comment_template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a commit on top of the previous one with your changes instead of blending them with the existing.
</p> | ||
<label for="body" string="Base Comment content" /> | ||
<hr /> | ||
<!-- SMS Template Preview --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has no sense
string="Template Preview Engine", | ||
default="jinja", | ||
default="inline_template", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A migration script is needed to convert existing values to this new one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional test ok. Thanks for the work.
@victoralmau Can you please update your PR as Pedro suggested. Thank you! :) |
Port modules base_comment_template and invoice_comment_template to V10
OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex OCA Transbot updated translations from Transifex
Currently translated at 100.0% (15 of 15 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/gl/ [ADD] icon.png
Currently translated at 100.0% (15 of 15 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/ja/
Currently translated at 100.0% (15 of 15 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/pt/
Currently translated at 100.0% (15 of 15 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/pt_BR/
[IMP] Move comment_template_id from account_invoice_comment_template and make it company_dependant [IMP] base_comment_template: Add test
…d to the Invoicing tab [IMP] account_invoice_comment_template: rename partner field name from comment_template_id to invoice_comment_template_id [IMP] account_invoice_comment_template: Make partner field company_dependant and move domain definition of invoice fields from the view to the model [MOV] account_invoice_comment_template: comment_template_id to base_comment_template [IMP] account_invoice_comment_template: Translate templates when partner changes
[UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/
Currently translated at 100.0% (21 of 21 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/pt_BR/
Currently translated at 100.0% (21 of 21 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/pt/
Currently translated at 95.2% (20 of 21 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/hr/
Previous field declaration was incorrect due to a typo, leading to non applying the company dependent features. Now everything is correct and the migration scripts care of moving data properly.
Previous field declaration was incorrect due to a typo, leading to non applying the company dependent features. Now everything is correct and the migration scripts care of moving data properly.
Currently translated at 100.0% (21 of 21 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/de/
Currently translated at 100.0% (21 of 21 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/pt_PT/
Currently translated at 100.0% (21 of 21 strings) Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/sk/ Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-invoice-reporting-12.0/account-invoice-reporting-12.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/account-invoice-reporting-12-0/account-invoice-reporting-12-0-base_comment_template/
As the field was not properly converted to property at 2.0.0, the script fails to do its job when migrating from v11, so we need to adapt the scripts to this situation.
…oid FK constraint - The name of the columns were swapped, so better to fix it for avoiding mistakes due to this. - Migration script for detecting the condition and swap column names. - On v12 > v13 migration, include JOINs for avoiding FK constraint, which `ON CONFLICT` clause doesn't protect.
[UPD] Update base_comment_template.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-14.0/reporting-engine-14.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-base_comment_template/
1. Safe eval domain before checking if it is defined. This makes [] be "False" on the first check, and provides the proper use case for when the domain is empty 2. Use filtered_domain in record instead of a search in self. When on a compute, we are on a NewId context, so the search would always fail TT29309
base_comment_template 14.0.2.0.1
Currently translated at 100.0% (36 of 36 strings) Translation: reporting-engine-14.0/reporting-engine-14.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-base_comment_template/pt/
Currently translated at 100.0% (36 of 36 strings) Translation: reporting-engine-14.0/reporting-engine-14.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-base_comment_template/it/
[UPD] Update base_comment_template.pot [UPD] README.rst base_comment_template 14.0.3.0.0 Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: reporting-engine-14.0/reporting-engine-14.0-base_comment_template Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-base_comment_template/
base_comment_template 14.0.3.0.1
6600caa
to
13b6017
Compare
The commits are already separated and I have added the migration script to convert the text of templates. |
@pedrobaeza Can you review again please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed jinja
to inline_template
value mapping
Sorry, I don't understand exactly what you mean. The engine change from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, seen
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
This PR has the |
Congratulations, your PR was merged at a3dbd50. Thanks a lot for contributing to OCA. ❤️ |
Superseed: #619
Migration to 15.0
Please @pedrobaeza and @CarlosRoca13 can you review it?
@Tecnativa TT35696