Files
gzth/yuthon_datetime_rounding/__manifest__.py
T
2026-08-20 17:04:55 +08:00

28 lines
1022 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
'name': 'Yuthon Datetime Rounding',
'version': '17.0.1.0.0',
'category': 'Technical',
'summary': '时间选择器默认分钟精确(rounding=1),可用系统参数 yuthon_datetime.rounding 调整',
'description': """
Yuthon Datetime Rounding
========================
Odoo 时间选择器(DateTimePicker)默认 rounding=5(分钟只能选 0/5/10/.../55),
导致"选05变04"之类的分钟精度困惑。
本模块把默认改为分钟精确(rounding=1):
- 全局默认值:系统参数 yuthon_datetime.rounding(1=分钟精确,5=每5分钟,15=每15分钟...),
修改后重新登录或刷新页面生效;
- 视图里字段若显式配置 options="{'rounding': N}",则以视图设置为准(不会被覆盖)。
""",
'depends': ['web'],
'data': [],
'assets': {
'web.assets_backend': [
'yuthon_datetime_rounding/static/src/js/datetime_picker.js',
],
},
'installable': True,
'application': False,
'auto_install': False,
}