From 0981f17ff12967f93b4d862763db33c30038d52d Mon Sep 17 00:00:00 2001 From: mreficent Date: Fri, 9 Aug 2019 20:40:47 +0200 Subject: [PATCH] [IMP] Simplify inheritance of states --- stock_request_analytic/models/stock_request.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stock_request_analytic/models/stock_request.py b/stock_request_analytic/models/stock_request.py index a18b9be82..f332d8bc7 100644 --- a/stock_request_analytic/models/stock_request.py +++ b/stock_request_analytic/models/stock_request.py @@ -15,7 +15,7 @@ class StockRequest(models.Model): def _check_analytic_company_constrains(self): if any(r.company_id and r.analytic_account_id and r.analytic_account_id.company_id != r.company_id for r in self): - raise ValidationError( - _('You cannot link a analytic account ' - 'to a stock request that belongs to ' - 'another company.')) + raise ValidationError( + _('You cannot link a analytic account ' + 'to a stock request that belongs to ' + 'another company.'))