Files
gzth/yuthon_base/models/base_month_year.py
2026-01-30 14:32:06 +08:00

23 lines
549 B
Python

# -*- coding: utf-8 -*-
from datetime import datetime, timedelta, time
from email.policy import default
from odoo import models, fields, api, _
from odoo.exceptions import UserError, ValidationError
import re
from odoo.tools.misc import format_date
class BaseYearMonth(models.Model):
_name = 'base.year'
_description = '系统年份'
name = fields.Integer(string='年', required=True)
class BaseMonth(models.Model):
_name = 'base.month'
_description = '系统月份'
name = fields.Integer(string='月', required=True)