[MOD]hr_*: usability improvement

bzr revid: amp@tinyerp.com-20100911073659-bw007nehrgegongk
This commit is contained in:
AMP (OpenERP) 2010-09-11 13:06:59 +05:30
parent e24686760b
commit 7c72bf1491
3 changed files with 3 additions and 2 deletions

View File

@ -147,7 +147,7 @@
<field name="arch" type="xml">
<tree colors="red:state in ('refuse');blue:state in (' draft');black:state in ('confirm','validate','validate1');gray:state in ('cancel') " string="Leaves" >
<field name="employee_id"/>
<field name="department_id"/>
<field name="department_id" invisible="1"/>
<field name="holiday_status_id"/>
<field name="name"/>
<field name="number_of_days" string="Number of Days" sum='Remaining Days'/>

View File

@ -61,6 +61,7 @@
<separator orientation="vertical"/>
<field name="user_id"/>
<field name="account_id" select="1" widget="selection"/>
<field name="product_id" select="1"/>
<field name="date" select="1"/>
</group>
<newline/>

View File

@ -77,7 +77,7 @@ class account_analytic_line(osv.osv):
_inherit = 'account.analytic.line'
_columns = {
'invoice_id': fields.many2one('account.invoice', 'Invoice', ondelete="set null"),
'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Type of Invoicing'),
'to_invoice': fields.many2one('hr_timesheet_invoice.factor', 'Type of Invoicing', help="You can Select the invoice type which you have to created"),
}
def unlink(self, cursor, user, ids, context=None):