Browse Source

Update readme.rst

pull/664/head
Janire Olagibel 7 years ago
committed by GitHub
parent
commit
1ed562ecbf
  1. 6
      web_pivot_hide_measure/README.rst

6
web_pivot_hide_measure/README.rst

@ -24,8 +24,9 @@ Add this method in the res model of the pivot view, where the list named 'fields
id a comma separated list of the measures to hide id a comma separated list of the measures to hide
```python ```python
@api.model
def fields_get(self, fields=None, attributes=None):
@api.model
def fields_get(self, fields=None, attributes=None):
fields_to_hide = [ fields_to_hide = [
'field1', 'field2', 'field3' 'field1', 'field2', 'field3'
] ]
@ -34,7 +35,6 @@ id a comma separated list of the measures to hide
for field in fields_to_hide: for field in fields_to_hide:
res[field]['selectable'] = False res[field]['selectable'] = False
return res return res
``` ```
Known issues Known issues

Loading…
Cancel
Save