[REM] Temp remove of administration board, that must be updated with removal of res.logs. TODO: update this module.
bzr revid: tde@openerp.com-20120403152928-0ix0qg2s46ppd479
This commit is contained in:
parent
ce7c893639
commit
3a9a5e99e4
|
@ -186,45 +186,46 @@ class board_line(osv.osv):
|
|||
'position': lambda *args: 'left'
|
||||
}
|
||||
|
||||
class res_log_report(osv.osv):
|
||||
""" Log Report """
|
||||
_name = "res.log.report"
|
||||
_auto = False
|
||||
_description = "Log Report"
|
||||
_columns = {
|
||||
'name': fields.char('Year', size=64, required=False, readonly=True),
|
||||
'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),
|
||||
'day': fields.char('Day', size=128, readonly=True),
|
||||
'creation_date': fields.date('Creation Date', readonly=True),
|
||||
'res_model': fields.char('Object', size=128),
|
||||
'nbr': fields.integer('# of Entries', readonly=True)
|
||||
}
|
||||
#class res_log_report(osv.osv):
|
||||
# CSV:: access_res_log_report all,res.log.report,model_res_log_report,,1,0,0,0
|
||||
#""" Log Report """
|
||||
#_name = "res.log.report"
|
||||
#_auto = False
|
||||
#_description = "Log Report"
|
||||
#_columns = {
|
||||
#'name': fields.char('Year', size=64, required=False, readonly=True),
|
||||
#'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),
|
||||
#'day': fields.char('Day', size=128, readonly=True),
|
||||
#'creation_date': fields.date('Creation Date', readonly=True),
|
||||
#'res_model': fields.char('Object', size=128),
|
||||
#'nbr': fields.integer('# of Entries', readonly=True)
|
||||
#}
|
||||
|
||||
def init(self, cr):
|
||||
"""
|
||||
Log Report
|
||||
@param cr: the current row, from the database cursor
|
||||
"""
|
||||
tools.drop_view_if_exists(cr,'res_log_report')
|
||||
cr.execute("""
|
||||
CREATE OR REPLACE VIEW res_log_report AS (
|
||||
SELECT
|
||||
l.id as id,
|
||||
1 as nbr,
|
||||
to_char(l.create_date, 'YYYY') as name,
|
||||
to_char(l.create_date, 'MM') as month,
|
||||
to_char(l.create_date, 'YYYY-MM-DD') as day,
|
||||
to_char(l.create_date, 'YYYY-MM-DD') as creation_date,
|
||||
l.res_model as res_model,
|
||||
date_trunc('day',l.create_date) as create_date
|
||||
FROM
|
||||
res_log l
|
||||
)""")
|
||||
res_log_report()
|
||||
#def init(self, cr):
|
||||
#"""
|
||||
#Log Report
|
||||
#@param cr: the current row, from the database cursor
|
||||
#"""
|
||||
#tools.drop_view_if_exists(cr,'res_log_report')
|
||||
#cr.execute("""
|
||||
#CREATE OR REPLACE VIEW res_log_report AS (
|
||||
#SELECT
|
||||
#l.id as id,
|
||||
#1 as nbr,
|
||||
#to_char(l.create_date, 'YYYY') as name,
|
||||
#to_char(l.create_date, 'MM') as month,
|
||||
#to_char(l.create_date, 'YYYY-MM-DD') as day,
|
||||
#to_char(l.create_date, 'YYYY-MM-DD') as creation_date,
|
||||
#l.res_model as res_model,
|
||||
#date_trunc('day',l.create_date) as create_date
|
||||
#FROM
|
||||
#res_log l
|
||||
#)""")
|
||||
#res_log_report()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -22,14 +22,17 @@
|
|||
</record>
|
||||
|
||||
<!-- Latest Activities -->
|
||||
<!--
|
||||
<record model="ir.actions.act_window" id="action_latest_activities_tree">
|
||||
<field name="name">Latest Activities</field>
|
||||
<field name="res_model">res.log</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<!-- Log report search view -->
|
||||
<!--
|
||||
<record id="view_res_log_report_filter" model="ir.ui.view">
|
||||
<field name="name">res.log.report.select</field>
|
||||
<field name="model">res.log.report</field>
|
||||
|
@ -63,8 +66,10 @@
|
|||
</search>
|
||||
</field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<!-- Log report Tree view -->
|
||||
<!--
|
||||
<record id="view_res_log_report_tree" model="ir.ui.view">
|
||||
<field name="name">res.log.report.tree</field>
|
||||
<field name="model">res.log.report</field>
|
||||
|
@ -80,6 +85,7 @@
|
|||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<record id="board_config_overview" model="ir.actions.client">
|
||||
<field name="name">Configuration Overview</field>
|
||||
|
@ -87,6 +93,7 @@
|
|||
</record>
|
||||
|
||||
<!-- Monthly Activity per Document -->
|
||||
<!--
|
||||
<record id="board_res_log_report_graph" model="ir.ui.view">
|
||||
<field name="name">board.res.log.report.graph</field>
|
||||
<field name="model">res.log.report</field>
|
||||
|
@ -107,8 +114,10 @@
|
|||
<field name="context">{'group_by':['res_model'],'group_by_no_leaf':1}</field>
|
||||
<field name="view_id" ref="board_res_log_report_graph"></field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<!-- Weekly Global Activity -->
|
||||
<!--
|
||||
<record id="board_weekly_res_log_report_graph" model="ir.ui.view">
|
||||
<field name="name">board.weekly.res.log.report.graph</field>
|
||||
<field name="model">res.log.report</field>
|
||||
|
@ -129,6 +138,7 @@
|
|||
<field name="context">{'group_by':['day'],'group_by_no_leaf':1}</field>
|
||||
<field name="view_id" ref="board_weekly_res_log_report_graph"></field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<record id="board_administration_form" model="ir.ui.view">
|
||||
<field name="name">board.administration.form</field>
|
||||
|
|
|
@ -3,4 +3,3 @@ access_board_board all,board.board,model_board_board,,1,0,0,0
|
|||
access_board_board_line all,board.board.line,model_board_board_line,,1,0,0,0
|
||||
access_board_board system,board.board system,model_board_board,base.group_system,1,1,1,1
|
||||
access_board_board_line system,board.board.line system,model_board_board_line,base.group_system,1,1,1,1
|
||||
access_res_log_report all,res.log.report,model_res_log_report,,1,0,0,0
|
||||
|
|
|
Loading…
Reference in New Issue