[FIX] web,doc: fix errors that prevented doc from building
This commit is contained in:
@@ -616,11 +616,12 @@ var SearchView = Widget.extend({
|
||||
* @todo: the way it is done could be improved, but the actual state of the
|
||||
* searchview doesn't allow to do much better.
|
||||
|
||||
* @param {Array[Object]} list of filters to add, described by objects with
|
||||
* keys domain (the domain as an Array), and help (the text to display in
|
||||
* the facet)
|
||||
* @param {Array[Object]} list of filters to remove (previously added ones)
|
||||
* @returns {Array[Object]} list of added filters (to pass as filtersToRemove
|
||||
* @param {Array<Object>} newFilters list of filters to add, described by
|
||||
* objects with keys domain (the domain as an Array), and help (the text
|
||||
* to display in the facet)
|
||||
* @param {Array<Object>} filtersToRemove list of filters to remove
|
||||
* (previously added ones)
|
||||
* @returns {Array<Object>} list of added filters (to pass as filtersToRemove
|
||||
* for a further call to this function)
|
||||
*/
|
||||
updateFilters: function (newFilters, filtersToRemove) {
|
||||
@@ -643,7 +644,7 @@ var SearchView = Widget.extend({
|
||||
|
||||
this.query.trigger('reset');
|
||||
|
||||
return addedFilters
|
||||
return addedFilters;
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
@@ -243,14 +243,14 @@ For this case, data files can also use csv_, this is often the case for
|
||||
Here's the first lines of the data file defining US states
|
||||
``res.country.state.csv``
|
||||
|
||||
.. literalinclude:: ../../odoo/addons/base/res/res.country.state.csv
|
||||
.. literalinclude:: ../../odoo/addons/base/data/res.country.state.csv
|
||||
:language: text
|
||||
:lines: 1-15
|
||||
|
||||
rendered in a more readable format:
|
||||
|
||||
.. csv-table::
|
||||
:file: ../../odoo/addons/base/res/res.country.state.csv
|
||||
:file: ../../odoo/addons/base/data/res.country.state.csv
|
||||
:header-rows: 1
|
||||
:class: table-striped table-hover table-condensed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user