Odoo Help


disorganized view from an the module calendar.event

on 6/5/13, 2:59 PM 1,188 views

Hi everyone, I'm trying to have the calendar.event view in a new module test that i created;the problem when i clik to add a new event i have a bad disorganized view from the calendar.event

my file.py

class professeur_entity(osv.osv):

_name = 'professeur.entity'
_columns = {
    'name': fields.char('Nom', required=True, size=32),
    'prenom': fields.char('Prenom', required=True, size=32),
    #'emp_ids':fields.one2many('emploi.temps','professeur_id', 'Emploi du temps',help="emploi du temps"),
    'emp_ids':fields.many2one('emploi.temps','Emploi', required=True),


class emploi_temps(osv.osv):

_name = 'emploi.temps'
_inherit = 'calendar.event'
_columns = {



my file.xml menuitem name="Gestion professeur" id="menu_prof"/>

<menuitem name="Enseignant" id="menu_prof1" parent="menu_prof"/>

<record model="ir.ui.view" id="view_school_prof_form"> <field name="name">prof.form</field> <field name="model">professeur.entity</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Enseignant" version="7.0"> <group col="4" colspan="6">
<field name="name"/> <field name="prenom"/> <field name="emp_ids" colspan="4" nolabel="1"/> </group>



<record model="ir.ui.view" id="view_school_prof_tree">
<field name="name">prof.tree</field>
<field name="model">professeur.entity</field>
<field name="type">tree</field>
<field name="arch" type="xml">
    <tree string="Enseignants"  version="7.0">
           <field name="name"/>
           <field name="prenom"/>



<record model="ir.actions.act_window" id="action_school_prof_form"> <field name="name">Liste des enseignants</field> <field name="res_model">professeur.entity</field> <field name="view_type">form</field> <field name="view_mode">tree,form,calendar</field> </record>

<menuitem action="action_school_prof_form" id="menu_prof2" parent="menu_prof1"/>

You have to change the form view of 'calendar.event' module. Code is written in base_calendar_view.xml

Hiral Patel (hip)
on 6/6/13, 9:10 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/5/13, 2:59 PM
Seen: 1188 times
Last updated: 3/16/15, 8:10 AM