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