From bd08dfbac00a422802634917644bccb46938d869 Mon Sep 17 00:00:00 2001 From: lreficent Date: Tue, 20 Jun 2017 13:20:03 +0200 Subject: [PATCH] wording --- purchase_date_planned_manual/README.rst | 12 ++++++------ .../models/purchase_order.py | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/purchase_date_planned_manual/README.rst b/purchase_date_planned_manual/README.rst index f7c13b1a381..ed7c07c320c 100644 --- a/purchase_date_planned_manual/README.rst +++ b/purchase_date_planned_manual/README.rst @@ -8,19 +8,19 @@ Purchase Date Planned Manual This module makes the system to always respect the planned (or scheduled) date set by the user when creating a Purchase order or the day set in the -procurement order if the line is created from one. +procurement order if the line is created from there. -Additionally, this module modify the PO view to colour in red the lines that -are predicted to arrive late comparing its scheduled date and the vendor lead -time. +Additionally, this module modifies the PO views and sets in red the lines +that are predicted to arrive late compared to the scheduled date and vendor +lead time. Usage ===== -To use this module, you need to: +To use this module you could follow any of the two options below: #. Go to 'Purchase' and create a purchase order. -#. Set the scheduled date manually in the PO lines. +#. Manually set the scheduled date in the PO lines. #. This date will never be modified by the system and the lines that are expected to be late are highlighted in red. diff --git a/purchase_date_planned_manual/models/purchase_order.py b/purchase_date_planned_manual/models/purchase_order.py index 8ce191cd6a3..ac3207b6495 100644 --- a/purchase_date_planned_manual/models/purchase_order.py +++ b/purchase_date_planned_manual/models/purchase_order.py @@ -54,7 +54,8 @@ def _get_date_planned(self, seller, po=False): @api.multi def action_delayed_line(self): raise UserError(_('This line is scheduled for: %s. \n However, ' - 'it is predicted to arrive later.') % + 'it is predicted to arrive late with ' + 'this planification.') % self.date_planned)