diff --git a/intrastat_base/company.py b/intrastat_base/company.py index 030101f..e475544 100644 --- a/intrastat_base/company.py +++ b/intrastat_base/company.py @@ -60,7 +60,8 @@ class res_company(orm.Model): % (user.name)) return True - _constraints = [ - (_check_intrastat_remind_users, "error msg in raise", - ['intrastat_remind_user_ids']), - ] + _constraints = [( + _check_intrastat_remind_users, + "Wrong configuration of the Users Receiving the Intrastat Reminder", + ['intrastat_remind_user_ids'] + )] diff --git a/intrastat_base/product.py b/intrastat_base/product.py index 7181706..1798280 100644 --- a/intrastat_base/product.py +++ b/intrastat_base/product.py @@ -56,7 +56,8 @@ class product_template(orm.Model): % (product.name, product.type))) return True - _constraints = [ - (_check_accessory_cost, "Error msg is in raise", - ['is_accessory_cost', 'type']) - ] + _constraints = [( + _check_accessory_cost, + "Wrong configuration of the product", + ['is_accessory_cost', 'type'] + )]