From c4ffa7a8cd6cb77be670dc6bdfd44044c2e14d25 Mon Sep 17 00:00:00 2001 From: Altela Eleviansyah Pramardhika Date: Sat, 9 Apr 2022 08:49:12 +0000 Subject: [PATCH] [FW][FIX] developer/rdtraining: fix typo Fixed `name = field.Char(required=True)` to `name = fields.Char(required=True)`. closes odoo/documentation#1823 Forward-port-of: odoo/documentation#1816 Signed-off-by: Antoine Vandevenne (anv) --- content/developer/howtos/rdtraining/04_basicmodel.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/developer/howtos/rdtraining/04_basicmodel.rst b/content/developer/howtos/rdtraining/04_basicmodel.rst index c876a75db..0046b259f 100644 --- a/content/developer/howtos/rdtraining/04_basicmodel.rst +++ b/content/developer/howtos/rdtraining/04_basicmodel.rst @@ -231,7 +231,7 @@ Common Attributes Much like the model itself, fields can be configured by passing configuration attributes as parameters:: - name = field.Char(required=True) + name = fields.Char(required=True) Some attributes are available on all fields, here are the most common ones: