summaryrefslogtreecommitdiff
path: root/addons/sale_project/models
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-11-27 13:42:36 +0000
committerMartin Trigaux <mat@odoo.com>2020-11-27 15:42:35 +0000
commit9b3b2e8d711e3be75b1faffaf6f4f8f4ec90186e (patch)
treebbbdb1866672d29aa7eb496e56344a387c3ea00f /addons/sale_project/models
parente5bec425c7dc06d5c853b49f84c1fca19fd71d98 (diff)
[FIX] *: rephrase, correct typos
Courtesy of Transifex's translators for reporting bad/unclear sentences. closes odoo/odoo#62539 Related: odoo/enterprise#15032 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/sale_project/models')
-rw-r--r--addons/sale_project/models/project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale_project/models/project.py b/addons/sale_project/models/project.py
index 9a7c521bad5..ac9a3b1f11a 100644
--- a/addons/sale_project/models/project.py
+++ b/addons/sale_project/models/project.py
@@ -18,7 +18,7 @@ class Project(models.Model):
sale_order_id = fields.Many2one('sale.order', 'Sales Order', domain="[('partner_id', '=', partner_id)]", readonly=True, copy=False, help="Sales order to which the project is linked.")
_sql_constraints = [
- ('sale_order_required_if_sale_line', "CHECK((sale_line_id IS NOT NULL AND sale_order_id IS NOT NULL) OR (sale_line_id IS NULL))", 'The Project should be linked to a Sale Order to select an Sale Order Items.'),
+ ('sale_order_required_if_sale_line', "CHECK((sale_line_id IS NOT NULL AND sale_order_id IS NOT NULL) OR (sale_line_id IS NULL))", 'The project should be linked to a sale order to select a sale order item.'),
]
@api.model