From ec3c5311b70b2e767aa1ab24a3fbff2cb3de524e Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Thu, 12 Feb 2026 10:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AF=E9=A4=90=E6=8F=90=E9=86=92=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_salary/wizard/party_meal_wizard.py | 4 ++-- .../wizard/party_meal_wizard_views.xml | 20 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/yuthon_salary/wizard/party_meal_wizard.py b/yuthon_salary/wizard/party_meal_wizard.py index 2136fbbd1..3a1202608 100644 --- a/yuthon_salary/wizard/party_meal_wizard.py +++ b/yuthon_salary/wizard/party_meal_wizard.py @@ -30,7 +30,7 @@ class PartyMealWizard(models.TransientModel): default=lambda self: self._get_default_month()) select_year = fields.Selection(selection=[(str(i), str(i)) for i in range(2024, 2040)], string='年份', default=lambda self: str(datetime.now().year)) - select_days = fields.Selection(selection=[(str(i), str(i)) for i in range(1, 32)], string='日', + select_days = fields.Selection(selection=[(str(i), str(i)) for i in range(1, 32)], string='缴费日', default=lambda self: str(datetime.now().day)) employee_ids = fields.Many2many('hr.employee', string='员工') meal_month = fields.Selection([('1', '一月'), ('2', '二月'), ('3', '三月'), ('4', '四月'), @@ -52,7 +52,7 @@ class PartyMealWizard(models.TransientModel): ]) for meal_id in meal_ids: employee_list.append(meal_id.employee_id.id) - self.employee_ids = [(6,0, employee_list)] + self.employee_ids = [(6, 0, employee_list)] def confirm(self): diff --git a/yuthon_salary/wizard/party_meal_wizard_views.xml b/yuthon_salary/wizard/party_meal_wizard_views.xml index a50be7b78..44250226e 100644 --- a/yuthon_salary/wizard/party_meal_wizard_views.xml +++ b/yuthon_salary/wizard/party_meal_wizard_views.xml @@ -7,14 +7,22 @@
- - - - - - +
+
+ + + + +