-
- Downloads
[FIX] *: correct all or improve code translation lookup
This commit fixes all issues detected by the new pylint
gettext-variable test.
It converts some calls to the new syntax
_("Foo %s", bar)
to progressively migrate the code to the new syntax.
A few calls were not technically incorrect but still detected by the
linter.
_("Foo" +
"Bar")
has been converted to
_("Foo"
"Bar")
as it has the same effect and make sure the argument is of type
asteroid.Const instead of BinOp).
closes odoo/odoo#53683
Related: odoo/enterprise#11467
Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
Showing
- addons/account/models/account_move.py 8 additions, 5 deletionsaddons/account/models/account_move.py
- addons/base_import/models/base_import.py 1 addition, 1 deletionaddons/base_import/models/base_import.py
- addons/calendar/models/calendar_event.py 4 additions, 1 deletionaddons/calendar/models/calendar_event.py
- addons/coupon/models/coupon_reward.py 14 additions, 6 deletionsaddons/coupon/models/coupon_reward.py
- addons/event/models/event_mail.py 19 additions, 13 deletionsaddons/event/models/event_mail.py
- addons/event/models/event_tag.py 1 addition, 1 deletionaddons/event/models/event_tag.py
- addons/hr_holidays/models/hr_leave.py 6 additions, 2 deletionsaddons/hr_holidays/models/hr_leave.py
- addons/hr_timesheet/models/project.py 1 addition, 1 deletionaddons/hr_timesheet/models/project.py
- addons/l10n_ar/models/account_chart_template.py 1 addition, 1 deletionaddons/l10n_ar/models/account_chart_template.py
- addons/l10n_ch/models/res_bank.py 1 addition, 1 deletionaddons/l10n_ch/models/res_bank.py
- addons/l10n_fr_pos_cert/models/account_fiscal_position.py 1 addition, 1 deletionaddons/l10n_fr_pos_cert/models/account_fiscal_position.py
- addons/l10n_in/models/account_invoice.py 12 additions, 3 deletionsaddons/l10n_in/models/account_invoice.py
- addons/l10n_it_edi/models/account_invoice.py 1 addition, 1 deletionaddons/l10n_it_edi/models/account_invoice.py
- addons/l10n_latam_invoice_document/models/account_move.py 8 additions, 5 deletionsaddons/l10n_latam_invoice_document/models/account_move.py
- addons/mail/models/mail_alias.py 1 addition, 1 deletionaddons/mail/models/mail_alias.py
- addons/mail/models/mail_blacklist.py 1 addition, 1 deletionaddons/mail/models/mail_blacklist.py
- addons/mass_mailing/controllers/main.py 1 addition, 1 deletionaddons/mass_mailing/controllers/main.py
- addons/mass_mailing/models/mailing.py 1 addition, 1 deletionaddons/mass_mailing/models/mailing.py
- addons/mass_mailing_sms/controllers/main.py 1 addition, 1 deletionaddons/mass_mailing_sms/controllers/main.py
- addons/mrp_product_expiry/wizard/confirm_expiry.py 4 additions, 5 deletionsaddons/mrp_product_expiry/wizard/confirm_expiry.py
Loading
Please register or sign in to comment