summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2017-06-16 13:50:11 +0200
committerMartin Trigaux <mat@odoo.com>2017-06-16 15:14:27 +0200
commitc060e90d81a9355c0ed4ce701de8fe2a8c0d5e05 (patch)
tree0f17d94ff38fe48fe53b86bf15a3189d1a3e7f60 /doc/reference
parent191ad830cac47082a51f9f9f20b805311eb89360 (diff)
[FIX] doc: correctly link doc and test lines
The test is surprisingly formated but it is to be able to extract the relevant lines in the documentation
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/orm.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst
index 78118d5d63f..876d74f65cc 100644
--- a/doc/reference/orm.rst
+++ b/doc/reference/orm.rst
@@ -910,13 +910,13 @@ and using them:
.. literalinclude:: ../../odoo/addons/test_documentation_examples/tests/test_inheritance.py
:language: python
- :lines: 8,12,9,19
+ :lines: 10,11,14,19
will yield:
.. literalinclude:: ../../odoo/addons/test_documentation_examples/tests/test_inheritance.py
:language: text
- :lines: 15,22
+ :lines: 16,21
the second model has inherited from the first model's ``check`` method and its
``name`` field, but overridden the ``call`` method, as when using standard
@@ -964,19 +964,19 @@ model:
.. literalinclude:: ../../odoo/addons/test_documentation_examples/tests/test_delegation.py
:language: python
- :lines: 9-12,21,26
+ :lines: 11-14,23,28
will result in:
.. literalinclude:: ../../odoo/addons/test_documentation_examples/tests/test_delegation.py
:language: text
- :lines: 23,28
+ :lines: 25,30
and it's possible to write directly on the delegated field:
.. literalinclude:: ../../odoo/addons/test_documentation_examples/tests/test_delegation.py
:language: python
- :lines: 47
+ :lines: 45
.. warning:: when using delegation inheritance, methods are *not* inherited,
only fields