[IMP] hr_payroll:removed all fields from 'hr.holidays.status',except the 'code' field.
authormtr <mtr@mtr>
Thu, 3 Mar 2011 10:27:45 +0000 (15:57 +0530)
committermtr <mtr@mtr>
Thu, 3 Mar 2011 10:27:45 +0000 (15:57 +0530)
bzr revid: mtr@mtr-20110303102745-uds7mbwabpjs372w

addons/hr_payroll/hr_payroll.py
addons/hr_payroll/hr_payroll_view.xml

index 080b6cc..2bb3214 100644 (file)
@@ -596,21 +596,7 @@ class hr_holidays_status(osv.osv):
 
     _inherit = "hr.holidays.status"
     _columns = {
-        'company_id':fields.many2one('res.company', 'Company', required=False),
-        'type':fields.selection([
-            ('paid','Paid Holiday'),
-            ('unpaid','Un-Paid Holiday'),
-            ('halfpaid','Half-Pay Holiday')
-            ], string='Payment'),
-        'head_id': fields.many2one('hr.salary.head', 'Payroll Head', domain=[('type','=','deduction')]),
-#        'code': fields.related('head_id','code', type='char', relation='hr.salary.head', string='Code'),
-        'code':fields.char('Code', size=64, required=False, readonly=False),
-    }
-    _defaults = {
-        'type': lambda *args: 'unpaid',
-        'company_id': lambda self, cr, uid, context: \
-                self.pool.get('res.users').browse(cr, uid, uid,
-                    context=context).company_id.id,
+        'code':fields.char('Code', size=64, required=False, readonly=False, help="It is used to define the code for Leave Type which will then be used in Salary Rules."),
     }
 hr_holidays_status()
 
index 142bb71..326fa6c 100644 (file)
                   </group>
                 <group colspan="2">
                     <separator colspan="2" string="Payroll Configurtion"/><newline/>
-                    <!--<field name="type"/><newline/>
-                    <field name="head_id"/><newline/>
-                    <field name="company_id" groups="base.group_multi_company" widget="selection" select="2"/><newline/>-->
                     <field name="code" />
                 </group>
             </xpath>