diff options
| author | Swapnesh Shah <swapneshshah111@gmail.com> | 2020-05-05 18:46:18 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-05 18:46:18 +0000 |
| commit | d64c8fa304279f52ae426bfa8f451617cba9aa06 (patch) | |
| tree | 9f7525f1c78cf6499be512ff82178269d0fc9956 | |
| parent | 8f34b34abd4085afccabbce0d3764b244db2d7f7 (diff) | |
[FIX] website_sale: display validation properly
Before this commit, This validation message was not displayed properly. (See https://nimb.ws/OwfLsH )
Now we are displaying Validation error Properly. (See https://nimb.ws/ji3N2h )
closes odoo/odoo#50704
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
| -rw-r--r-- | addons/website_sale/models/product.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/website_sale/models/product.py b/addons/website_sale/models/product.py index ff61753a794..aaa235707a5 100644 --- a/addons/website_sale/models/product.py +++ b/addons/website_sale/models/product.py @@ -126,8 +126,7 @@ class ProductPricelist(models.Model): ''' for record in self.filtered(lambda pl: pl.website_id and pl.company_id): if record.website_id.company_id != record.company_id: - raise ValidationError(_("Only the company's websites are allowed. \ - Leave the Company field empty or select a website from that company.")) + raise ValidationError(_("""Only the company's websites are allowed.\nLeave the Company field empty or select a website from that company.""")) class ProductPublicCategory(models.Model): |
