-
-
Notifications
You must be signed in to change notification settings - Fork 195
[18.0][MIG] maintenance_location: Migration to 18.0 #523
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: 18.0
Are you sure you want to change the base?
Conversation
6445f8d to
61c17c8
Compare
…t_selection dependency
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
61c17c8 to
ae4e821
Compare
| @api.constrains("parent_id") | ||
| def _check_category_recursion(self): | ||
| if self._has_cycle(): | ||
| raise ValidationError(_("Error ! You cannot create recursive Locations.")) |
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.
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 _
Depends on: