From 2e3f94bba0320092ffb336a4f4512f9c1e0824ae Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 30 Oct 2014 13:30:41 +0100 Subject: [PATCH] When the obligation level for import is none, the type of the DEB is automatically set to export. [FIX] country -> country_id type='string' -> type='char' (v8 only accepts char) Change "error msg in raise", because v8 displays this to the user Remove statistical_pricelist_id from demo data Harmonize labels of button between DEB and DES --- intrastat_base/company.py | 9 +++++---- intrastat_base/product.py | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) 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'] + )]