[FW][FIX] developer/rdtraining: fix typo

Fixed `name = field.Char(required=True)` to
`name = fields.Char(required=True)`.

closes odoo/documentation#1820

Forward-port-of: odoo/documentation#1816
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Altela Eleviansyah Pramardhika 2022-04-09 08:49:12 +00:00 committed by GitHub
parent c073f53c1c
commit 269031e162

View File

@ -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: