فهرست منبع

commit inicial

Rodney Enciso Arias 8 سال پیش
کامیت
77b156b25a
5فایلهای تغییر یافته به همراه108 افزوده شده و 0 حذف شده
  1. 6 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 44 0
      __openerp__.py
  4. 7 0
      security/security.xml
  5. 51 0
      views/fields_view.xml

+ 6 - 0
__init__.py

@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+# from . import models

BIN
__init__.pyc


+ 44 - 0
__openerp__.py

@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2015  ADHOC SA  (http://www.adhoc.com.ar)
+#    All Rights Reserved.
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+    'name': 'Fields Security HR',
+    'version': '8.0.0.1.0',
+    'description': """
+Fields Security HR
+==================
+Oculta ciertos campos no utilizados en el modulo de Recursos Humanos
+""",
+    'category': 'Recursos Humanos',
+    'author': 'Eiru Software - Rodney Enciso Arias',
+    'website': 'http://www.eiru.com.py/',
+    'license': 'AGPL-3',
+    'depends': [
+        'hr','hr_expense','hr_payroll','hr_contract','fields_security'
+    ],
+    'data': [
+        'security/security.xml',
+        'views/fields_view.xml',
+    ],
+    'demo_xml': [],
+    'test': [],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 7 - 0
security/security.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<openerp>
+    <data noupdate="1">
+    	
+    </data>
+</openerp>
+

+ 51 - 0
views/fields_view.xml

@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<openerp>
+    <data>
+
+        <record model="ir.ui.view" id="hr_employee_form_view">
+            <field name="name">hr.employee.form.view</field>
+            <field name="model">hr.employee</field>
+            <field name="inherit_id" ref="hr.view_employee_form" />
+            <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
+            <field name="arch" type="xml">
+                <xpath expr="//form/sheet/notebook//page[@string='HR Settings']" position="attributes">
+                    <attribute name="attrs">{'invisible':True}</attribute>
+                </xpath>
+                <xpath expr="//form/sheet/notebook//group[@string='Contact Information']" position="attributes">
+                    <attribute name="attrs">{'invisible':True}</attribute>
+                </xpath>
+                <field name="address_home_id" position="attributes">
+                    <attribute name="attrs">{'required':True}</attribute>
+                </field>
+            </field>
+        </record>
+
+        <record model="ir.ui.view" id="hr_contract_form_view">
+            <field name="name">hr.contract.form.view</field>
+            <field name="model">hr.contract</field>
+            <field name="inherit_id" ref="hr_contract.hr_contract_view_form" />
+            <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
+            <field name="arch" type="xml">
+                <xpath expr="//form/sheet/notebook//page[@string='Work Permit']" position="attributes">
+                    <attribute name="attrs">{'invisible':True}</attribute>
+                </xpath>
+            </field>
+        </record>
+
+        <record model="ir.ui.view" id="hr_payslip_form_view">
+            <field name="name">hr.payslip.form.view</field>
+            <field name="model">hr.payslip</field>
+            <field name="inherit_id" ref="hr_payroll.view_hr_payslip_form" />
+            <field name="groups_id" eval="[(6, 0, [ref('fields_security.group_restrict_fields')])]"/>
+            <field name="arch" type="xml">
+                <xpath expr="//form/sheet/notebook//page[@string='Details By Salary Rule Category']" position="attributes">
+                    <attribute name="attrs">{'invisible':True}</attribute>
+                </xpath>
+                <xpath expr="//form/sheet/notebook//page[@string='Accounting Information']" position="attributes">
+                    <attribute name="attrs">{'invisible':True}</attribute>
+                </xpath>
+            </field>
+        </record>
+
+    </data>
+</openerp>