Skip to content

Commit 961e000

Browse files
committed
Merge pull request trytonus#14 from prakashpp/3.4
Update context from website in testing
2 parents 8998eb2 + bffc56e commit 961e000

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nereid/testing.py

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ def dispatch_request(self):
6666
req.view_args.pop('locale', None)
6767
active_id = req.view_args.pop('active_id', None)
6868

69+
from trytond.transaction import Transaction
70+
Transaction().context.update(req.nereid_website.get_context())
71+
6972
return self._dispatch_request(req, language, active_id)
7073

7174

0 commit comments

Comments
 (0)