From 41040f03fdb2e749edb390094fbc8f3c1ca8e340 Mon Sep 17 00:00:00 2001 From: Matthieu Dietrich Date: Wed, 25 May 2016 09:55:16 +0200 Subject: [PATCH] Correct phrasing --- account_permanent_lock_move/README.rst | 7 ++++--- .../wizard/permanent_lock_date_wizard.py | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/account_permanent_lock_move/README.rst b/account_permanent_lock_move/README.rst index 581e722c0..ec51d4025 100644 --- a/account_permanent_lock_move/README.rst +++ b/account_permanent_lock_move/README.rst @@ -8,15 +8,16 @@ Permanent Lock Move This module extends the functionality of the basic "lock date" functionality in invoicing, in order to add a more definitive -lock date (which does not allow to be set at a previous date, -or emptied, and only accepts unposted moves) +lock date (which cannot be empty or set in the past, and only +accepts unposted moves) Configuration ============= To configure this module, you need to: -* Go to Invoicing -> Settings, and set the Permanent Lock Date. +#. Go to Invoicing -> Settings +#. Set the Permanent Lock Date. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot diff --git a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py index 7382d4414..c1781a28a 100644 --- a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py +++ b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py @@ -28,8 +28,8 @@ class PermanentLockDateWizard(models.TransientModel): ('state', '=', 'draft')]) if moves: raise UserError( - _("You cannot permanently lock since entries " - "are still unposted before this date.") + _("You cannot set the permanent lock date since entries are " + "still unposted before this date.") ) company.permanent_lock_date = self.lock_date