diff --git a/hr_employee_ppe/__manifest__.py b/hr_employee_ppe/__manifest__.py index f0db7b6db7b..f61ca263f1e 100644 --- a/hr_employee_ppe/__manifest__.py +++ b/hr_employee_ppe/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Personal Protective Equipment (PPE) Management", - "version": "14.0.1.0.1", + "version": "17.0.1.0.0", "author": "Escodoo, Odoo Community Association (OCA)", "maintainers": ["marcelsavegnago", "eduaparicio"], "images": ["static/description/banner.png"], diff --git a/hr_employee_ppe/reports/hr_employee_ppe_report_template.xml b/hr_employee_ppe/reports/hr_employee_ppe_report_template.xml index 2cea5ec3f89..bc977a55f25 100644 --- a/hr_employee_ppe/reports/hr_employee_ppe_report_template.xml +++ b/hr_employee_ppe/reports/hr_employee_ppe_report_template.xml @@ -38,13 +38,13 @@ t-if="line.is_ppe" > - + - + - + diff --git a/hr_employee_ppe/views/hr_personal_equipment.xml b/hr_employee_ppe/views/hr_personal_equipment.xml index d91cfe8f0a9..312cf7422d2 100644 --- a/hr_employee_ppe/views/hr_personal_equipment.xml +++ b/hr_employee_ppe/views/hr_personal_equipment.xml @@ -29,45 +29,37 @@ name="is_ppe" string="Is PPE" readonly="1" - attrs="{'invisible':[('is_ppe', '=', False)]}" + invisible="not is_ppe" /> - - {'invisible':['&', ('state', '!=', 'expired'), ('expire_ppe', '=', False)],'readonly': [('state', 'not in', ('draft','accepted'))]} - + state != 'expired' and (not expire_ppe) + state not in ['draft','accepted'] - + - - + + diff --git a/hr_employee_ppe/views/hr_personal_equipment_request.xml b/hr_employee_ppe/views/hr_personal_equipment_request.xml index 5d543a543b1..569f6141f8e 100644 --- a/hr_employee_ppe/views/hr_personal_equipment_request.xml +++ b/hr_employee_ppe/views/hr_personal_equipment_request.xml @@ -18,7 +18,7 @@ name="action_view_ppe_report" string="Print Receipt of PPE" groups="hr.group_hr_user" - attrs="{'invisible':['|',('contains_ppe','=',False), ('state', 'not in', ('draft', 'accepted'))]}" + invisible="(not contains_ppe) or state not in ['draft', 'accepted']" /> - +