summaryrefslogtreecommitdiff
path: root/doc/reference/data.rst
diff options
context:
space:
mode:
authorRaf Geens <raf@odoo.com>2020-09-08 12:08:06 +0000
committerRaf Geens <raf@odoo.com>2020-09-16 08:32:32 +0000
commit04d4ec33043627747e36730953479557aae278f2 (patch)
tree87cdb861936ba2b55bdc40cd83465c449f5b1b35 /doc/reference/data.rst
parentec652ee2c82a52958066f9e7c3ca42be93413de6 (diff)
[FIX] doc: Truncate 680-line example data
The page shows the first 15 lines of a CSV in raw form as an example. Next it shows the same data rendered as a table. However, it was displaying the entire 680-line source data. `csv-table` doesn't have a `:lines:` directive. I copied and truncated the original file for use in the documentation.
Diffstat (limited to 'doc/reference/data.rst')
-rw-r--r--doc/reference/data.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/reference/data.rst b/doc/reference/data.rst
index 3ab39f57484..09c8a61891c 100644
--- a/doc/reference/data.rst
+++ b/doc/reference/data.rst
@@ -286,14 +286,13 @@ 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/data/res.country.state.csv
+.. literalinclude:: static/res.country.state.csv
:language: text
- :lines: 1-15
rendered in a more readable format:
.. csv-table::
- :file: ../../odoo/addons/base/data/res.country.state.csv
+ :file: static/res.country.state.csv
:header-rows: 1
:class: table-striped table-hover table-condensed