Community mailing list archives
Re: Due Date to skip Weekend and/or Public Holidaysby
- Install module Calendar (standard), we have new Calendar menu under message.
- Create list of holidays (it must be owned by a person, we can create a dummy person, and name it "Holidays". If we have 2 person, i.e., "Weekend", and "Public Holidays", we can have different colors in calendar)
- Enhance the payment due date to step over the holidays (config on a payment term master to look at a person's holiday)
Not aware of such module but you can probably use calendar https://docs.python.org/2/library/calendar.html to implement such logic.
We have used the calendar library to propose a month-end date when we extended the payment term object before: https://github.com/rfhk/odoo8.0-extra-addons/blob/master/account_payment_term/account_payment_term.py#L83
Wondering if there are modules that extend the Payment Term, to skip over holidays?
For example, Payment Term = 30 days make the due date fall on Sunday, then it should change to Monday.