From 7fbe02cfdbacdf4bc091a65a40fe5b1a86f0ff79 Mon Sep 17 00:00:00 2001 From: rgarnau Date: Fri, 12 Jan 2018 10:46:29 +0100 Subject: [PATCH] minor fixes --- account_invoice_constraint_chronology/README.rst | 8 ++++---- .../model/account_invoice.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/account_invoice_constraint_chronology/README.rst b/account_invoice_constraint_chronology/README.rst index 2ada196ca..dab49e14e 100644 --- a/account_invoice_constraint_chronology/README.rst +++ b/account_invoice_constraint_chronology/README.rst @@ -1,5 +1,5 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 ===================================== @@ -10,13 +10,13 @@ This module helps ensuring the chronology of invoice numbers. It prevents the validation of invoices when: -* there are draft invoices with an anterior date -* there are validated invoices with a posterior date +* there are draft invoices with a prior date +* there are validated invoices with a later date Configuration ============= -To configure this module, go to the menu *Accounting > Configuration > Journals > Journals* and activate the option *Check Chronology* on the relevant journals. After the installation of the module, this option will be active on *sale* and *sale refund* journals. +To configure this module, go to the menu *Accounting/Invoicing > Configuration > Accounting > Journals* and activate the option *Check Chronology* on the relevant journals. After the installation of the module, this option will be active on *sale* and *sale refund* journals. Usage ===== diff --git a/account_invoice_constraint_chronology/model/account_invoice.py b/account_invoice_constraint_chronology/model/account_invoice.py index 4a8547d4c..4185fcc7a 100644 --- a/account_invoice_constraint_chronology/model/account_invoice.py +++ b/account_invoice_constraint_chronology/model/account_invoice.py @@ -46,6 +46,6 @@ class AccountInvoice(models.Model): .Date.context_today(self, date_invoice_format) raise UserError(_("Chronology Error. " "There exist at least one invoice " - "with a date posterior to %s.") % + "with a later date to %s.") % date_invoice_tz) return res