From 58565f847c56ba63d3c0406c0829b4bc2f9094f5 Mon Sep 17 00:00:00 2001 From: Bernat Brunet Torruella Date: Tue, 31 May 2016 16:14:16 +0200 Subject: [PATCH] Add print in domain, to see in log more information about domain warnings --- print_domain_warning.diff | 15 +++++++++++++++ series | 1 + 2 files changed, 16 insertions(+) create mode 100644 print_domain_warning.diff diff --git a/print_domain_warning.diff b/print_domain_warning.diff new file mode 100644 index 0000000..69a357c --- /dev/null +++ b/print_domain_warning.diff @@ -0,0 +1,15 @@ +diff -r d5292fbad2b1 trytond/model/modelstorage.py +--- a/trytond/trytond/model/modelstorage.py Tue May 31 16:02:48 2016 +0200 ++++ b/trytond/trytond/model/modelstorage.py Tue May 31 16:05:41 2016 +0200 + +@@ -949,6 +949,10 @@ + domain, + ]) + if set(relations) != set(finds): ++ print "======= records:", records ++ print "=== domain:", domain ++ print "=== relations:", relations ++ print "=== find:", finds + cls.raise_user_error('domain_validation_record', + error_args=cls._get_error_args(field.name)) + diff --git a/series b/series index fd1d517..9238dd3 100644 --- a/series +++ b/series @@ -79,6 +79,7 @@ issue5370.diff issue4487.diff sale_move_done_rounding.diff issue25021002_70001.diff +print_domain_warning.diff # Ignore next patches #incremental_wait_in_retries.diff # Uncomment in calfruitos