raise ValidationError(_('Invalid view %s definition in %s') % (view.name, view.arch_fs))
odoo.tools.convert.ParseError: "Invalid view view.student.form definition in student/views/student_view.xml
None" while parsing /home/thomas/odoo12/custom_addons/student/views/student_view.xml:5, near
<record id="view_student_form" model="ir.ui.view">
<field name="name">view.student.form</field>
<field name="model">student.student</field>
<field name="arch" type="xml">
<form string="Student Information">
<sheet>
<header>
<button name="draft_med" states="draft" string="Medical Interview" class="oe_highlight"/>
<button name="med_acad" states="med_interview" string="Academic Interview" class="oe_highlight"/>
<button name="med_dismiss" states="med_interview" string="Dismiss" class="oe_highlight"/>
<button name="acad_first" states="acad_interview" string="First Year Register" class="oe_highlight"/>
<button name="acad_dismiss" states="acad_interview" string="Dismiss" class="oe_highlight"/>
<button name="first_second" states="first_register" string="Second Year Register" class="oe_highlight"/>
<button name="first_first" states="first_register" string="First Year Register" class="oe_highlight"/>
<button name="first_dismiss" states="first_register" string="Dismiss" class="oe_highlight"/>
<button name="second_third" states="second_register" string="Third Year Register" class="oe_highlight"/>
<button name="second_second" states="second_register" string="Second Year Register" class="oe_highlight"/>
<button name="second_dismiss" states="second_register" string="Dismiss" class="oe_highlight"/>
<button name="third_fourth" states="third_register" string="Fourth Year Register" class="oe_highlight"/>
<button name="third_third" states="third_register" string="Third Year Register" class="oe_highlight"/>
<button name="third_dismiss" states="third_register" string="Dismiss" class="oe_highlight"/>
<button name="fourth_fourth" states="fourth_register" string="Fourth Year Register" class="oe_highlight"/>
<button name="fourth_alumni" states="fourth_register" string="Alumni" class="oe_highlight"/>
<button name="fourth_dismiss" states="fourth_register" string="Dismiss" class="oe_highlight"/>
<button name="set_student_sequence" type="object" string="Generate Seat No." class="oe_highlight oe_inline"/>
<button name="test_x2Many" type="object" string="Test x2Many" class="oe_highlight oe_inline"/>
<button name="%(student.action_wiz_calc_age)d" type="action" string="Calculate Age" icon="gtk-execute" groups="student.manager_access_group"/>
<field name="state" widget="statusbar" statusbar_visible="draft,med_interview,acad_interview,first_register,second_register,third_register,fourth_register,dismiss,alumni"/>
</header>
<group colspan="4" col="2">
<div>
<field name="image" widget="image"/>
</div>
<br/>
<h1>
<label string="Name"/>
<field name="name" placeholder="Enter Name"/>
</h1>
<h2>
<label string="Ministry University No."/>
<field name="uni_no" placeholder="Enter Ministry University No."/>
<label string="Seat No." groups="student.manager_access_group"/>
<field name="seat_no" groups="student.manager_access_group"/>
</h2>
</group>
<group colspan="4" col="4">
<field name="dob"/>
<field name="age"/>
<field name="gender" widget="radio"/>
<field name="responsible_id"/>
<field name="email" widget="email"/>
<field name="phone"/>
<field name="fdate"/>
<field name="ldate"/>
<field name="degree_id" widget="selection"/>
<!-- <field name="degree_id" domain="[('name', 'ilike', 'Eng')]"/> -->
<field name="regfees"/>
<field name="tutfees"/>
<field name="totfees"/>
<field name="ref"/>
<field name="ref_link" widget="url"/>
</group>
<notebook>
<page string="School Result Details">
<field name="result_ids">
<tree editable="top">
<field name="subject_id"/>
<field name="result" avg="Average"/>
</tree>
<form>
<group>
<field name="subject_id"/>
<field name="result"/>
</group>
</form>
</field>
</page>
<page string="Other Information">
<separator string="Hobbies Detail" colspan="4"/>
<field name="hobbies_ids" nolabel="1" widget="many2many_tags"/>
</page>
</notebook>
<separator string="Health Issues and Notes" colspan="4"/>
<field name="health_issues"/>
<field name="health_notes" nolabel="1" attrs="{'invisible':[('health_issues','=','no')]}"/>
<separator string="Template" colspan="4"/>
<field name="template" nolabel="1"/>
</sheet>
</form>
</field>
</record> - - -
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účtovníctvo
- Sklady
- PoS
- Projektové riadenie
- MRP
This question has been flagged
1
Odpoveď
6815
Zobrazenia
Hi Thomas Edward,
I found a mistake in the label
Put the label like this
<h1>
<label for="name" string="Name"/>
<field name="name" placeholder="Enter Name"/>
</h1>
I can't find for="field_name" in any of the label. Please change everywhere and check it will solve your issue.
Thanks
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrácia