diff --git a/odex25_fleet/odex_fleet/i18n/ar_001.po b/odex25_fleet/odex_fleet/i18n/ar_001.po index bccf92b32..9ec162c66 100644 --- a/odex25_fleet/odex_fleet/i18n/ar_001.po +++ b/odex25_fleet/odex_fleet/i18n/ar_001.po @@ -762,7 +762,7 @@ msgstr "تفاصيل التكلفة" #. module: odex_fleet #: model:ir.model.fields,field_description:odex_fleet.field_vehicle_infraction__cost_percentage msgid "Cost Percentage%" -msgstr "" +msgstr "%نسبة التحمل" #. module: odex_fleet #: model_terms:ir.ui.view,arch_db:odex_fleet.fleet_vehicle_costs_view_search diff --git a/odex25_fleet/odex_fleet/models/infractions.py b/odex25_fleet/odex_fleet/models/infractions.py index 9be37807a..e30f15090 100644 --- a/odex25_fleet/odex_fleet/models/infractions.py +++ b/odex25_fleet/odex_fleet/models/infractions.py @@ -30,7 +30,7 @@ class Infractions(models.Model): infraction_cost = fields.Integer(string="Infraction Cost") cost_percentage = fields.Integer(string="Cost Percentage%") discount_amount = fields.Integer(string="Discount Amount", compute = "get_discount_amount", store = True) - benefits_discounts = fields.Many2one(comodel_name='hr.salary.rule', string='Benefits/Discounts') + benefits_discounts = fields.Many2one(comodel_name='hr.salary.rule', string='Benefits/Discounts',domain="[('category_id.rule_type','=','deduction')]") state = fields.Selection(selection=[('draft', 'Draft'), ('confirm', 'Confirm'), ('approve', 'Approved'),