Skip to content

Commit ee64b99

Browse files
authored
[FW][FIX] developer/howtos: missing parentheses in print statement
Added parentheses in a print function closes #1931 Forward-port-of: #1923 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
1 parent 9a5c4e5 commit ee64b99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/developer/howtos/backend.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ Relational field types are:
467467
:class:`Many2one(other_model, ondelete='set null') <odoo.fields.Many2one>`
468468
A simple link to an other object::
469469

470-
print foo.other_id.name
470+
print(foo.other_id.name)
471471

472472
.. seealso:: `foreign keys <http://www.postgresql.org/docs/9.3/static/tutorial-fk.html>`_
473473

@@ -477,7 +477,7 @@ Relational field types are:
477477
accessing it results in a (possibly empty) set of records::
478478

479479
for other in foo.other_ids:
480-
print other.name
480+
print(other.name)
481481

482482
.. danger::
483483

@@ -491,7 +491,7 @@ Relational field types are:
491491
records, accessing it also results in a possibly empty set of records::
492492

493493
for other in foo.other_ids:
494-
print other.name
494+
print(other.name)
495495

496496
.. exercise:: Many2one relations
497497

0 commit comments

Comments
 (0)