[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:
Olivier Dony 2013-06-07 11:30:44 +02:00
parent 9705c37dfa
commit 6901c4f981
1 changed files with 2 additions and 0 deletions

View File

@ -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']