Add patch for issue5000

This commit is contained in:
Sergi Almacellas Abellana 2015-09-29 11:57:08 +02:00
parent 30b54fe708
commit 9a215b43d8
2 changed files with 24 additions and 0 deletions

22
issue5000.diff Normal file
View 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):

2
series
View File

@ -33,6 +33,8 @@ sale_23d0b5a3ceb1.patch
stock_supply_780a8aaeaa78.patch
timesheet_f8c45f1b4d7d.patch
sale_fix_invoiced_quantity_calculation.diff
# Multicompanyia! Les regles d'access han de dependre del context
issue5000.diff
issue7881002_1.diff
country.diff