mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Remove patch issue4986.diff allready applyed on core
This commit is contained in:
parent
8b53243211
commit
c8865f1da2
|
@ -1,19 +0,0 @@
|
|||
diff -r 6c0d835dd918 trytond/trytond/model/modelstorage.py
|
||||
--- a/trytond/trytond/model/modelstorage.py Wed May 11 10:40:32 2016 +0200
|
||||
+++ b/trytond/trytond/model/modelstorage.py Mon May 30 15:46:22 2016 +0200
|
||||
@@ -954,10 +954,11 @@
|
||||
if relations:
|
||||
for sub_relations in grouped_slice(relations):
|
||||
sub_relations = set(sub_relations)
|
||||
- finds = Relation.search(['AND',
|
||||
- [('id', 'in', [r.id for r in sub_relations])],
|
||||
- domain,
|
||||
- ])
|
||||
+ with Transaction().set_user(0):
|
||||
+ finds = Relation.search(['AND',
|
||||
+ [('id', 'in', [r.id for r in sub_relations])],
|
||||
+ domain,
|
||||
+ ])
|
||||
if sub_relations != set(finds):
|
||||
cls.raise_user_error('domain_validation_record',
|
||||
error_args=cls._get_error_args(field.name))
|
Loading…
Reference in a new issue