Community mailing list archives

community@mail.odoo.com

RE: Due Date to skip Weekend and/or Public Holidays

by
Rooms For (Hong Kong) Limited, Yoshi Tashiro
- 08/18/2015 04:58:01

Hi Kitti,

 

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

 

---

Yoshi Tashiro

 

From: Kitti U. [mailto:kittiu@ecosoft.co.th]
Sent: Tuesday, August 18, 2015 1:09 PM
To: Community <community@mail.odoo.com>
Subject: Due Date to skip Weekend and/or Public Holidays

 

Hello everyone,

 

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.

 

Thank you,

--

Mobile: +66-(0)8-1841-7480

Your ERP Partner => www.ecosoft.co.th

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe