I created form view for school.student model
i putted subjects field in the bottom of the form view but it is showen in the top of the form
Why??
this is thcode of student form view:
id="school_student_view_form" model="ir.ui.view">
name="name">school.student.view.form
name="model">school.student
name="arch" type="xml">
string="Student">
name="name"/>
name="class_id"/>
name="division"/>
name="address"/>
name="birth_date"/>
name="age"/>
name="date"/>
name="officer"/>
name="subjects"/>
this is the code of school.student model:
class school_student(models.Model):
_name='school.student'
name=fields.Many2one('res.partner',string='Student Name')
subjects=fields.Many2many('school.subject',string="Subjects")
class_id=fields.Integer(string="Class ID")
address=fields.Char(string="Address")
division=fields.Char(string="Division")
birth_date=fields.Date(string="Birth Date")
age=fields.Integer(string="Age",compute='_compute_age')
date=fields.Date()
officer=fields.Many2one('res.users')
this the screen of the output: