[FIX] developer/howtos: missing parentheses in print statement
Added parentheses in a print function closes odoo/documentation#1923 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
parent
abc6d99af7
commit
77ebdcdfca
@ -463,7 +463,7 @@ Relational field types are:
|
||||
:class:`Many2one(other_model, ondelete='set null') <odoo.fields.Many2one>`
|
||||
A simple link to an other object::
|
||||
|
||||
print foo.other_id.name
|
||||
print(foo.other_id.name)
|
||||
|
||||
.. seealso:: `foreign keys <http://www.postgresql.org/docs/9.3/static/tutorial-fk.html>`_
|
||||
|
||||
@ -473,7 +473,7 @@ Relational field types are:
|
||||
accessing it results in a (possibly empty) set of records::
|
||||
|
||||
for other in foo.other_ids:
|
||||
print other.name
|
||||
print(other.name)
|
||||
|
||||
.. danger::
|
||||
|
||||
@ -487,7 +487,7 @@ Relational field types are:
|
||||
records, accessing it also results in a possibly empty set of records::
|
||||
|
||||
for other in foo.other_ids:
|
||||
print other.name
|
||||
print(other.name)
|
||||
|
||||
.. exercise:: Many2one relations
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user