Skip to Content
Menu
This question has been flagged
1 Reply
2945 Views

Hi,

I would like to create a scheduled action that checks vendor bills due date and, if the current date is, for example, 7 days before the due date, it sends a mail to some of the users.

How can I do it? Is there some example anywhere?

I suppose that I need to add custom code somewhere...I'm using Odoo 9.0 community version

Thanks

Avatar
Discard
Best Answer

I am assuming that you are a developer  .

 Go through these steps:

Create a crone inside ir.cron

Method:'synchronize_bill_due'
Arguments:()  


In side your model 'my.model' define a method synchronize_bill_due  using @api.multi decorator  Like:
@api.model
def synchronize_bill_due(self):
# do your code here
pass

Hope this may help in your case.


Avatar
Discard
Related Posts Replies Views Activity
3
Jun 22
7949
1
Jul 22
1855
4
Apr 22
8018
0
Jan 24
3428
1
Feb 18
4372