Skip to content

Conversation

@PaulaMForgeFlow
Copy link

Standard migration

OCA-git-bot and others added 21 commits November 19, 2025 15:03
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)
…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/
@JordiBForgeFlow
Copy link
Member

@pedrobaeza could you approve the workflows?

@MiquelRForgeFlow MiquelRForgeFlow force-pushed the 19.0-mig-base_revision branch 6 times, most recently from c119cfd to d35fa06 Compare December 12, 2025 17:26
@CRogos
Copy link
Contributor

CRogos commented Feb 6, 2026

@PaulaMForgeFlow could you review and add the change of #1237

Copy link
Contributor

@CRogos CRogos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 82 to 83
"name": f"{self.unrevisioned_name}-{new_rev_number:02d}",
"old_revision_ids": [(4, self.id, False)],
Copy link
Contributor

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)
Copy link
Contributor

@CRogos CRogos Feb 6, 2026

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

# 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
Copy link
Contributor

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.

Suggested change
msg = self.env._("New revision created: %s") % copied_rec.name
msg = self.env._("New revision created: %s", copied_rec.name)

@PaulaMForgeFlow PaulaMForgeFlow force-pushed the 19.0-mig-base_revision branch 2 times, most recently from 13bac8e to da9da5f Compare February 9, 2026 12:51
@CRogos
Copy link
Contributor

CRogos commented Feb 9, 2026

@PaulaMForgeFlow could you review + add the changes of this PR: #1237

Copy link
Contributor

@CRogos CRogos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants