[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) <anv@odoo.com>
This commit is contained in:
Altela Eleviansyah Pramardhika 2022-04-09 08:49:12 +00:00 committed by GitHub
parent 9cb3eaa2ef
commit c4ffa7a8cd

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: