Odoo Help

0

Display a day in a schedule for a period

By
oumaima
on 5/15/13, 12:22 PM 779 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

emploi.py

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),
}

emploi_temps()

professeur.py

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'),
}

professeur_entity()

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.

Register

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)

Stats

Asked: 5/15/13, 12:22 PM
Seen: 779 times
Last updated: 3/16/15, 8:10 AM