Community mailing list archives

community@mail.odoo.com

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

by
Ecosoft Co. LTD, Kitti Upariphutthiphong
- 08/18/2015 06:45:32
Thank you Yoshi,

I also can think of an easy way, but let's see if it works. If concept ok, I will create one and share with the community too (idea welcome)
  1. Install module Calendar (standard), we have new Calendar menu under message.
  2. 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)
  3. Enhance the payment due date to step over the holidays (config on a payment term master to look at a person's holiday)

Inline image 1



On Tue, Aug 18, 2015 at 4:15 PM, Yoshi Tashiro <tashiro@roomsfor.hk> wrote:

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

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




--
Mobile: +66-(0)8-1841-7480
Your ERP Partner => www.ecosoft.co.th