diff --git a/hr-luncheon-voucher/models/hr_lv_allocation.py b/hr-luncheon-voucher/models/hr_lv_allocation.py index 6915d0c..1be56c0 100644 --- a/hr-luncheon-voucher/models/hr_lv_allocation.py +++ b/hr-luncheon-voucher/models/hr_lv_allocation.py @@ -97,6 +97,7 @@ class LuncheonVouchersAllocation(models.Model): }, ) + @api.model_create_multi def create(self, values): res = super(LuncheonVouchersAllocation, self).create(values) res._calculate_number_acquired_lv() diff --git a/hr-luncheon-voucher/views/hr_lv_allocation_views.xml b/hr-luncheon-voucher/views/hr_lv_allocation_views.xml index c812fc2..3f6ede8 100644 --- a/hr-luncheon-voucher/views/hr_lv_allocation_views.xml +++ b/hr-luncheon-voucher/views/hr_lv_allocation_views.xml @@ -9,7 +9,8 @@ - + @@ -20,10 +21,14 @@
-
@@ -43,14 +48,18 @@
-

- +