Use client limit for window action with empty limit
issue6740 review40621002
This commit is contained in:
1 parent
a0010fdf13
commit
0b3bc06ec6
1 file changed
+5
-1
@@ -9,6 +9,7 @@ import tempfile
|
||||
import os
|
||||
import webbrowser
|
||||
from tryton.common import RPCProgress, RPCExecute, RPCException, slugify
|
||||
from tryton.config import CONFIG
|
||||
|
||||
_ = gettext.gettext
|
||||
|
||||
@@ -133,6 +134,9 @@ class Action(object):
|
||||
|
||||
res_model = action.get('res_model', data.get('res_model'))
|
||||
res_id = action.get('res_id', data.get('res_id'))
|
||||
limit = action.get('limit')
|
||||
if limit is None:
|
||||
limit = CONFIG['client.limit']
|
||||
|
||||
Window.create(res_model,
|
||||
view_ids=view_ids,
|
||||
@@ -142,7 +146,7 @@ class Action(object):
|
||||
order=order,
|
||||
mode=view_mode,
|
||||
name=name,
|
||||
limit=action.get('limit'),
|
||||
limit=limit,
|
||||
search_value=search_value,
|
||||
icon=(action.get('icon.rec_name') or ''),
|
||||
tab_domain=tab_domain,
|
||||
|
||||
Reference in new issue
Block a user