diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-06-26 07:21:33 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-06-30 10:19:59 +0000 |
| commit | 400cc4f14ed12bce8d11ea515041253a9271f5a5 (patch) | |
| tree | e62f8e54acf97e42325114844494b4b82fc99a07 /addons/stock_picking_batch | |
| parent | 241f06d868296f6e2ef851d6f5d156f59f630b00 (diff) | |
[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>
Diffstat (limited to 'addons/stock_picking_batch')
| -rw-r--r-- | addons/stock_picking_batch/models/stock_picking_batch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock_picking_batch/models/stock_picking_batch.py b/addons/stock_picking_batch/models/stock_picking_batch.py index 5d1e42b646d..7d6cb969d75 100644 --- a/addons/stock_picking_batch/models/stock_picking_batch.py +++ b/addons/stock_picking_batch/models/stock_picking_batch.py @@ -180,9 +180,9 @@ class StockPickingBatch(models.Model): erroneous_pickings = batch.picking_ids - batch.allowed_picking_ids raise UserError(_( "The following transfers cannot be added to batch transfer %s. " - "Please check their states and operation types, if they aren't immediate " + + "Please check their states and operation types, if they aren't immediate " "transfers or if they're not already part of another batch transfer.\n\n" - "Incompatibilities: %s") % (batch.name, ', '.join(erroneous_pickings.mapped('name')))) + "Incompatibilities: %s", batch.name, ', '.join(erroneous_pickings.mapped('name')))) def _track_subtype(self, init_values): if 'state' in init_values: |
