From e488f208d21b7cff86d22ac12e894d953ad65943 Mon Sep 17 00:00:00 2001 From: Anand Kansagra Date: Wed, 28 Nov 2018 06:28:50 +0000 Subject: [PATCH] [IMP] account,stock,base: fix typos And use CamelCase in label Closes odoo/odoo#29010 Closes odoo/odoo#29092 Signed-off-by: Martin Trigaux (mat) --- addons/account/models/account_payment_term.py | 2 +- addons/stock/models/stock_picking.py | 2 +- odoo/addons/base/models/ir_model.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/models/account_payment_term.py b/addons/account/models/account_payment_term.py index 824e3dd216f..bd202de2d5f 100644 --- a/addons/account/models/account_payment_term.py +++ b/addons/account/models/account_payment_term.py @@ -110,7 +110,7 @@ class AccountPaymentTermLine(models.Model): def _check_days(self): for term_line in self: if term_line.option in ('day_following_month', 'day_current_month') and term_line.days <= 0: - raise ValidationError(_("The day of the month used for this term must be stricly positive.")) + raise ValidationError(_("The day of the month used for this term must be strictly positive.")) elif term_line.days < 0: raise ValidationError(_("The number of days used for a payment term cannot be negative.")) diff --git a/addons/stock/models/stock_picking.py b/addons/stock/models/stock_picking.py index bc24dc23157..3ea51e926ef 100644 --- a/addons/stock/models/stock_picking.py +++ b/addons/stock/models/stock_picking.py @@ -887,7 +887,7 @@ class Picking(models.Model): visited_documents[(document, responsible)] = visited grouped_moves = grouped_moves.items() else: - raise UserError(_('Unknow stream.')) + raise UserError(_('Unknown stream.')) documents = {} for (parent, responsible), moves in grouped_moves: diff --git a/odoo/addons/base/models/ir_model.py b/odoo/addons/base/models/ir_model.py index 1e22868d59c..99918b6445d 100644 --- a/odoo/addons/base/models/ir_model.py +++ b/odoo/addons/base/models/ir_model.py @@ -109,7 +109,7 @@ class IrModel(models.Model): transient = fields.Boolean(string="Transient Model") modules = fields.Char(compute='_in_modules', string='In Apps', help='List of modules in which the object is defined or inherited') view_ids = fields.One2many('ir.ui.view', compute='_view_ids', string='Views') - count = fields.Integer(compute='_compute_count', string="Count (incl. archived)", + count = fields.Integer(compute='_compute_count', string="Count (Incl. Archived)", help="Total number of records in this model") @api.depends()