[REF] hr_luncheon_voucher: remove useless code

This commit is contained in:
Stéphan Sainléger
2023-02-01 22:37:15 +01:00
parent 8579e22474
commit cc901c2e62
9 changed files with 26 additions and 49 deletions

View File

@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-
from xml.dom.minicompat import EmptyNodeList
from odoo import fields, models, api, _
from odoo import fields, models
class HrEmployeeBase(models.AbstractModel):
@@ -10,17 +8,17 @@ class HrEmployeeBase(models.AbstractModel):
lv_allocations_ids = fields.One2many("hr.lv.allocation", "employee_id")
total_acquired_lv = fields.Integer(
string=_("Total allocated luncheon vouchers"), store=True, copy=False
string="Total allocated luncheon vouchers", store=True, copy=False
)
distributed_lv = fields.Integer(
string=_("Distributed luncheon vouchers"), store=True, copy=False
string="Distributed luncheon vouchers", store=True, copy=False
)
dued_lv = fields.Integer(
string=_("Remaining luncheon vouchers"), store=True, copy=False
string="Remaining luncheon vouchers", store=True, copy=False
)
default_monthly_lv = fields.Integer(
string=_("Default monthly distribution"), store=True, copy=True
string="Default monthly distribution", store=True, copy=True
)
def refresh_lv_values(self):