Skip to content

Commit

Permalink
[IMP] hr_employee_ssn: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 authored and aphon61bank committed Nov 13, 2020
1 parent 05ad8ec commit 8ce4cd2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 23 deletions.
28 changes: 11 additions & 17 deletions hr_employee_ssn/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
'name': 'HR Employee SSN & SIN',
'version': '12.0.1.0.0',
'category': 'Human Resources',
'website': 'https://github.com/OCA/hr',
'author':
'Brainbean Apps, '
'Odoo Community Association (OCA)',
'license': 'AGPL-3',
'installable': True,
'application': False,
'summary': 'View/edit employee\'s SSN & SIN fields',
'depends': [
'hr',
],
'data': [
'views/hr_employee_views.xml',
],
"name": "HR Employee SSN & SIN",
"version": "12.0.1.0.0",
"category": "Human Resources",
"website": "https://github.com/OCA/hr",
"author": "Brainbean Apps, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"application": False,
"summary": "View/edit employee's SSN & SIN fields",
"depends": ["hr"],
"data": ["views/hr_employee_views.xml"],
}
10 changes: 4 additions & 6 deletions hr_employee_ssn/views/hr_employee_views.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--
Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com)
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-->

<record id="view_employee_form" model="ir.ui.view">
<field name="name">hr.employee.form.inherit</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="inherit_id" ref="hr.view_employee_form" />
<field name="arch" type="xml">
<field name="passport_id" position="after">
<field name="ssnid" groups="hr.group_hr_user"/>
<field name="sinid" groups="hr.group_hr_user"/>
<field name="ssnid" groups="hr.group_hr_user" />
<field name="sinid" groups="hr.group_hr_user" />
</field>
</field>
</record>

</odoo>

0 comments on commit 8ce4cd2

Please sign in to comment.