how can i calculate days of year
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
Maybe you can spend more time on being more specific when asking questions.
If you want to calculate the number of days of the current year in python, you can always:
- import calendar then check if calendar.isleap(year), if yes then 366 else 365
- check the days_in_years of the last day of the year which is always 31 Dec. (Or check the day before 1st of march to see if it is 28 or 29 of Feb)
If you want to check the days of year of today. you can use odoo's fields.Date.context_today.
But if you want to calculate it in qweb report, or javascript, it's another story.
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
5月 25
|
834 | ||
|
0
3月 25
|
36 | ||
|
0
3月 25
|
631 | ||
|
1
2月 25
|
860 | ||
|
0
2月 25
|
545 |