[FIX] export: allow excluding special virtual fields from exportable data
For example the virtual "Access Rights" fields on res.users cannot be browsed and cannot currently by exported. bzr revid: odo@openerp.com-20130607093044-y3bct44ralu8yf0o
This commit is contained in:
parent
9705c37dfa
commit
6901c4f981
|
@ -1481,6 +1481,8 @@ class Export(openerpweb.Controller):
|
|||
if all(dict(attrs).get('readonly', True)
|
||||
for attrs in field.get('states', {}).values()):
|
||||
continue
|
||||
if not field.get('exportable', True):
|
||||
continue
|
||||
|
||||
id = prefix + (prefix and '/'or '') + field_name
|
||||
name = parent_name + (parent_name and '/' or '') + field['string']
|
||||
|
|
Loading…
Reference in New Issue