Compare commits

...

1 Commits

Author SHA1 Message Date
Altela Eleviansyah Pramardhika
1c9dc0f916 Fixed print statement in documentation 13.0
Added parentheses in a print function

X-original-commit: 77ebdcdfca
2022-05-06 11:05:10 +02:00

View File

@@ -467,7 +467,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>`_
@@ -477,7 +477,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::
@@ -491,7 +491,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