expiry date

Asked by Bushair

Hi,

Can anyone help me to resolve the Passport expiry date issue ?

I have added a field called Passport expiry date in Human Resource - > Human Resource -> Employee -> New Employee , next to Passport Number field.

I would like to get the list of Passports Numbers that is going to expire within 7 days , how can i acheive this?

Right now there is no way in OpenERP to check the expiry date of passport , this is a very much required feature for most ot the companies ...

Can anyone tell me/help me the code changes required for this feature.

Any help is appreciated.

Regards
Bushair

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Hello Bushair,

You can create one scheduler action and this scheduler should set internal unit is day.

Define one method and check expiry date with in 7 days then send notification.

Thanks,
Serpent Consulting Services.

Revision history for this message
Bushair (bushairka) said :
#2

Hi,
Thanks for your reply.

Can you please give me a brief description on how this can be done ?

i mean how to set the scheduler action and setting inernal units ?

Also the method to check the expiry date ?

It will be great if you can help me on this,

since am new to openERP coding , any help is appreciated

Regards
Bushair

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#3

Bushair,

You should create a scheduler which calls a method of your model and that method will check the date and send the emails.

Inside the scheduler, you can set the internal units=1 day.

Hope this helps.

Thanks,
Serpent Consulting Services
http://www.serpentcs.com

Can you help with this problem?

Provide an answer of your own, or ask Bushair for more information if necessary.

To post a message you must log in.