Skip to Content
Menu
This question has been flagged
3 Replies
1771 Views

How to show the employee details on another model in a kanban view whose birthday is on that day ?

I have two model 'hr.employee' And 'send_wish'. In 'send_wish' modelI want to show only those employee details in kanban view, whose birthday is today.


Avatar
Discard

Please show your model structure of model send_wish

Author

from odoo import models, fields, api

from datetime import datetime, timedelta, time

class kw_send_wish(models.Model):

_name = 'kw_send_wish'

_description = 'A model to manage send wishes'

This is my model structure.

Best Answer

You can create a computed boolean which will set True if employee birthdate is current date. Then you can add default filter in kanban view as boolean field value is True.

Avatar
Discard
Author Best Answer


from odoo import models, fields, api
from datetime import datetime, timedelta, time

class kw_send_wish(models.Model):
    _name = 'kw_send_wish'
    _description = 'A model to manage send wishes' 

This is my model where I want to store the employee model field.


Avatar
Discard
Author

Ajeet Yadav can u please give example?