Odoo Help


Display a day in a schedule for a period

on 5/15/13, 12:22 PM 628 views

Hi everyone, i try to add a schedule in my module it works but i need to add a day (Monday for example),for a period;and i can display it throughout this peridode


enter code hereclass emploi_temps(osv.osv):

_name = 'emploi.temps'
_columns = {
  'name': fields.char('Objet',size=32, required=True),
  'date_debut': fields.datetime('Date Début', required=True),
  'date_fin': fields.datetime('Date fin', required=True),
  'professeur_id': fields.many2one('professeur.entity','Professeur', required=True),



enter code herelass 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'),


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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: 5/15/13, 12:22 PM
Seen: 628 times
Last updated: 3/16/15, 8:10 AM