majid
majid

Reputation: 11

Why student registration id showing instead of student name in odoo

when i enter student's information then student id showing than student name.

here is url showin within form view.

Students/student.registration,2

Upvotes: 0

Views: 91

Answers (1)

Bhavesh Odedra
Bhavesh Odedra

Reputation: 11143

It seems you don't have used/declared name field in student.registration object/class.

If you don't want to use/declare name field then you can use _rec_name for proper value display.

For example.

_rec_name = 'field_name'

It will show value of given field.

Or you can override the name_get method

Upvotes: 1

Related Questions