[IMP] Add some fields on search views
bzr revid: nel@tinyerp.com-20100415105431-6rewt2r465q4w2m1
This commit is contained in:
@@ -34,7 +34,7 @@ class hr_recruitment_report(osv.osv):
|
||||
'month':fields.selection([('01','January'), ('02','February'), ('03','March'), ('04','April'),
|
||||
('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'),
|
||||
('10','October'), ('11','November'), ('12','December')], 'Month',readonly=True),
|
||||
'date': fields.datetime('Date', readonly=True),
|
||||
'date': fields.date('Date', readonly=True),
|
||||
'date_closed': fields.datetime('Closed', readonly=True),
|
||||
'job_id': fields.many2one('hr.job', 'Applied Job',readonly=True),
|
||||
'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_id','=',section_id),('object_id.model', '=', 'hr.applicant')]",readonly=True),
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<field name="res_model">hr.recruitment.report</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,graph</field>
|
||||
<field name="context">{'search_default_Stage': 1,'search_default_day': 1 }</field>
|
||||
<field name="context">{'search_default_Stage': 1 }</field>
|
||||
<field name="search_view_id" ref="view_hr_recruitment_report_search"/>
|
||||
</record>
|
||||
<menuitem id="hr.menu_hr_reporting" name="Reporting" parent="hr.menu_hr_root"/>
|
||||
|
||||
@@ -29,7 +29,7 @@ class report_timesheet_line(osv.osv):
|
||||
_columns = {
|
||||
'name': fields.char('Year',size=64,required=False, readonly=True),
|
||||
'user_id':fields.many2one('res.users', 'User', readonly=True),
|
||||
'date' : fields.date('Date', readonly=True),
|
||||
'day' : fields.date('Day', readonly=True),
|
||||
'quantity': fields.float('Quantity', readonly=True),
|
||||
'cost': fields.float('Cost', readonly=True),
|
||||
'product_id' : fields.many2one('product.product', 'Product',readonly=True),
|
||||
@@ -49,7 +49,7 @@ class report_timesheet_line(osv.osv):
|
||||
to_char(l.date,'YYYY') as name,
|
||||
to_char(l.date,'MM') as month,
|
||||
l.user_id,
|
||||
l.date,
|
||||
l.date as day,
|
||||
l.invoice_id,
|
||||
l.product_id,
|
||||
l.account_id,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Timesheet Line">
|
||||
<field name="date"/>
|
||||
<field name="day"/>
|
||||
<field name="quantity"/>
|
||||
<field name="cost"/>
|
||||
<field name="user_id"/>
|
||||
@@ -61,8 +61,10 @@
|
||||
<filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/>
|
||||
<filter string="Account" icon="terp-hr" context="{'group_by':'account_id'}"/>
|
||||
<filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/>
|
||||
<filter string="Invoice" icon="terp-hr" context="{'group_by':'invoice_id'}"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Month" icon="terp-hr" context="{'group_by':'date'}"/>
|
||||
<filter string="Day" icon="terp-hr" context="{'group_by':'day'}"/>
|
||||
<filter string="Month" icon="terp-hr" context="{'group_by':'month'}"/>
|
||||
<filter string="Year" icon="terp-hr" context="{'group_by':'name'}"/>
|
||||
</group>
|
||||
</search>
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
<filter string="State" icon="terp-purchase" context="{'group_by':'state'}"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter string="Fiscal Position" icon="terp-purchase" context="{'group_by':'fiscal_position'}"/>
|
||||
<filter string="Month" icon="terp-purchase" context="{'group_by':'date'}"/>
|
||||
<filter string="Month" icon="terp-purchase" context="{'group_by':'month'}"/>
|
||||
<filter string="Year" icon="terp-purchase" context="{'group_by':'name'}"/>
|
||||
</group>
|
||||
</search>
|
||||
|
||||
Reference in New Issue
Block a user