Add print in domain, to see in log more information about domain warnings

This commit is contained in:
Bernat Brunet Torruella 2016-05-31 16:14:16 +02:00
parent e639033053
commit 58565f847c
2 changed files with 16 additions and 0 deletions

15
print_domain_warning.diff Normal file
View File

@ -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))

1
series
View File

@ -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