mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Add patch for issue5000
This commit is contained in:
parent
30b54fe708
commit
9a215b43d8
22
issue5000.diff
Normal file
22
issue5000.diff
Normal file
|
@ -0,0 +1,22 @@
|
|||
# HG changeset patch
|
||||
# User Sergi Almacellas Abellana <sergi@koolpi.com>
|
||||
ir rule domain_get cache should depend on context
|
||||
|
||||
issue5000
|
||||
review17541003
|
||||
|
||||
Index: trytond/trytond/ir/rule.py
|
||||
===================================================================
|
||||
|
||||
--- a/trytond/trytond/ir/rule.py
|
||||
+++ b/trytond/trytond/ir/rule.py
|
||||
@@ -100,7 +100,7 @@
|
||||
required=True, ondelete="CASCADE")
|
||||
domain = fields.Char('Domain', required=True,
|
||||
help='Domain is evaluated with "user" as the current user')
|
||||
- _domain_get_cache = Cache('ir_rule.domain_get', context=False)
|
||||
+ _domain_get_cache = Cache('ir_rule.domain_get', context=True)
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
|
Loading…
Reference in a new issue