[gen] Bugfixes.
This commit is contained in:
parent
ff7c300dd0
commit
2b1fc85512
3 changed files with 5 additions and 3 deletions
|
@ -70,7 +70,7 @@ class Field:
|
|||
tagCss=tagCss|'';
|
||||
tagCss=('%s %s' % (slaveCss, tagCss)).strip();
|
||||
zobj=zobj or ztool;
|
||||
tagId='%s_%s' % (zobj.UID(), name);
|
||||
tagId='%s_%s' % (zobj.id, name);
|
||||
tagName=field.master and 'slave' or '';
|
||||
layoutTarget=field">:tool.pxLayoutedObject</x>''')
|
||||
|
||||
|
|
|
@ -356,6 +356,7 @@ class Ref(Field):
|
|||
<x var="innerRef=req.get('innerRef', False) == 'True';
|
||||
ajaxHookId='%s_%s_objs' % (zobj.id, field.name);
|
||||
render=render|'list';
|
||||
layoutType=layoutType|'view';
|
||||
linkList=field.link == 'list';
|
||||
renderAll=req.get('scope') != 'objs';
|
||||
inPickList=False;
|
||||
|
@ -381,7 +382,8 @@ class Ref(Field):
|
|||
numbered=field.isNumbered(zobj);
|
||||
changeNumber=not inPickList and numbered and canWrite and \
|
||||
changeOrder and (totalNumber > 3);
|
||||
checkboxesEnabled=field.getAttribute(zobj, 'checkboxes');
|
||||
checkboxesEnabled=field.getAttribute(zobj, 'checkboxes') and \
|
||||
(layoutType != 'cell');
|
||||
checkboxes=checkboxesEnabled and (totalNumber > 1);
|
||||
showSubTitles=req.get('showSubTitles', 'true') == 'true'">
|
||||
<!-- The definition of "atMostOneRef" above may sound strange: we
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue