Skip to content

Conversation

@ypapouin
Copy link
Contributor

@ypapouin ypapouin force-pushed the 18.0-mig-maintenance_location branch from 6445f8d to 61c17c8 Compare October 21, 2025 11:42
@ypapouin ypapouin mentioned this pull request Oct 21, 2025
16 tasks
Jaime Arroyo and others added 22 commits November 27, 2025 08:53
Currently translated at 100.0% (32 of 32 strings)

Translation: maintenance-14.0/maintenance-14.0-maintenance_location
Translate-URL: https://translation.odoo-community.org/projects/maintenance-14-0/maintenance-14-0-maintenance_location/it/
Fix oca-checks-po:po-duplicate-model-definition
@ypapouin ypapouin force-pushed the 18.0-mig-maintenance_location branch from 61c17c8 to ae4e821 Compare November 27, 2025 07:54
@api.constrains("parent_id")
def _check_category_recursion(self):
if self._has_cycle():
raise ValidationError(_("Error ! You cannot create recursive Locations."))

Choose a reason for hiding this comment

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

should change from _ to self.env._
it belong to the migration guides of version 18.0
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-18.0

You can replace the call to translate a string () with self.env. for getting some performance improvement in some cases. See odoo/odoo#174844.

You should also remove the import _

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants