-
-
Notifications
You must be signed in to change notification settings - Fork 641
[19.0] [mig] base_revision #1193
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
base: 19.0
Are you sure you want to change the base?
Conversation
Currently translated at 92.3% (12 of 13 strings) Translation: server-ux-14.0/server-ux-14.0-base_revision Translate-URL: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-base_revision/es/ Added translation using Weblate (Spanish)
…ttributes base_revision 14.0.1.0.1
…ld if it exists in the model. [UPD] Update base_revision.pot base_revision 14.0.1.1.0
[UPD] Update base_revision.pot [UPD] README.rst
[UPD] Update base_revision.pot [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-ux-16.0/server-ux-16.0-base_revision Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_revision/
base_revision 16.0.1.0.1 [fix] unit test in sale_order_revision fails base_revision 16.0.1.0.2 [UPD] README.rst
Translated using Weblate (Italian) Currently translated at 100.0% (11 of 11 strings) Translation: server-ux-16.0/server-ux-16.0-base_revision Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_revision/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-ux-18.0/server-ux-18.0-base_revision Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_revision/
Currently translated at 100.0% (11 of 11 strings) Translation: server-ux-18.0/server-ux-18.0-base_revision Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_revision/pt/
Currently translated at 100.0% (11 of 11 strings) Translation: server-ux-18.0/server-ux-18.0-base_revision Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_revision/it/
Currently translated at 100.0% (11 of 11 strings) Translation: server-ux-18.0/server-ux-18.0-base_revision Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_revision/tr/
|
@pedrobaeza could you approve the workflows? |
d96c9e7 to
22e7842
Compare
c119cfd to
d35fa06
Compare
|
@PaulaMForgeFlow could you review and add the change of #1237 |
CRogos
left a comment
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.
Nice work.
Some of the commits could be squashed.
https://github.com/OCA/maintainer-tools/wiki/Merge-commits-in-pull-requests#mergesquash-the-commits-generated-by-bots-or-weblate
see minor improvements below.
| "name": f"{self.unrevisioned_name}-{new_rev_number:02d}", | ||
| "old_revision_ids": [(4, self.id, False)], |
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.
How about switching to:
"old_revision_ids": [Command.link(self.id)],
| copied_rec = rec.copy_revision_with_context() | ||
| if hasattr(self, "message_post"): | ||
| msg = _("New revision created: %s") % copied_rec.name | ||
| msg = self.env._("New revision created: %(name)s", name=copied_rec.name) |
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.
On new code I would agree using %(name)s but here it requires a new translation therefore we should stay with %s
see also my Changes in #1237
d35fa06 to
9a1fa36
Compare
| # Calling Copy method | ||
| copied_rec = rec.copy_revision_with_context() | ||
| if hasattr(self, "message_post"): | ||
| msg = self.env._("New revision created: %s") % copied_rec.name |
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.
I think we had a missunderstanding here. I think this is the best solution.
| msg = self.env._("New revision created: %s") % copied_rec.name | |
| msg = self.env._("New revision created: %s", copied_rec.name) |
13bac8e to
da9da5f
Compare
|
@PaulaMForgeFlow could you review + add the changes of this PR: #1237 |
da9da5f to
cf000b9
Compare
cf000b9 to
c020168
Compare
CRogos
left a comment
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.
LGTM
|
This PR has the |
Standard migration