From 28dde5dcbec8cc3039e0feec848cac91f4254069 Mon Sep 17 00:00:00 2001 From: Altela Eleviansyah Pramardhika Date: Fri, 6 May 2022 01:09:51 +0000 Subject: [PATCH] [FW][FIX] developer/howtos: missing parentheses in print statement Added parentheses in a print function closes odoo/documentation#1929 Forward-port-of: odoo/documentation#1923 Signed-off-by: Victor Feyens (vfe) --- content/developer/howtos/backend.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/developer/howtos/backend.rst b/content/developer/howtos/backend.rst index c009b6bad..6072242b3 100644 --- a/content/developer/howtos/backend.rst +++ b/content/developer/howtos/backend.rst @@ -467,7 +467,7 @@ Relational field types are: :class:`Many2one(other_model, ondelete='set null') ` A simple link to an other object:: - print foo.other_id.name + print(foo.other_id.name) .. seealso:: `foreign keys `_ @@ -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