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 @@
- - - - - - +
+
+ + + + +