summaryrefslogtreecommitdiff
path: root/addons/report_document
diff options
context:
space:
mode:
authorNaresh Choksy <nch@tinyerp.com>2008-11-04 11:16:45 +0530
committerNaresh Choksy <nch@tinyerp.com>2008-11-04 11:16:45 +0530
commit2a4096b752f3634fe255ecd78e842e11d1801a67 (patch)
tree9ed47e680afe293497461adf430f146c60e97da2 /addons/report_document
parent54651e2f34af1412df5ab5d3e371bdc4d0600b23 (diff)
parentda8aa7411aef2f2b962b2b67b73563dce4c45bee (diff)
merges
bzr revid: nch@tinyerp.com-20081104054645-pqtvoho3hiyjb2yf
Diffstat (limited to 'addons/report_document')
-rw-r--r--addons/report_document/__init__.py20
-rw-r--r--addons/report_document/__terp__.py20
-rw-r--r--addons/report_document/i18n/fr_FR.po236
-rw-r--r--addons/report_document/i18n/report_document.pot236
-rw-r--r--addons/report_document/report_document.py59
-rw-r--r--addons/report_document/report_document_view.xml8
-rw-r--r--addons/report_document/security/ir.model.access.csv4
7 files changed, 553 insertions, 30 deletions
diff --git a/addons/report_document/__init__.py b/addons/report_document/__init__.py
index ca50266ac0c..20c1335891e 100644
--- a/addons/report_document/__init__.py
+++ b/addons/report_document/__init__.py
@@ -1,4 +1,24 @@
# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
import report_document
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/report_document/__terp__.py b/addons/report_document/__terp__.py
index 01baabbb6e1..95413f05ac9 100644
--- a/addons/report_document/__terp__.py
+++ b/addons/report_document/__terp__.py
@@ -1,4 +1,24 @@
# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU 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 General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
{
"name" : "Document Management - Reporting",
"version" : "1.0",
diff --git a/addons/report_document/i18n/fr_FR.po b/addons/report_document/i18n/fr_FR.po
new file mode 100644
index 00000000000..430df5d0c35
--- /dev/null
+++ b/addons/report_document/i18n/fr_FR.po
@@ -0,0 +1,236 @@
+# Translation of OpenERP Server.
+# This file containt the translation of the following modules:
+# * report_document
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 4.3.99\n"
+"Report-Msgid-Bugs-To: support@openerp.com\n"
+"POT-Creation-Date: 2008-10-28 08:12:59+0000\n"
+"PO-Revision-Date: 2008-10-28 08:12:59+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: report_document
+#: field:report.document.user,create_date:0
+#: field:report.files.partenr,create_date:0
+msgid "Date Created"
+msgstr "Date de Création"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_files_by_partner
+msgid "Files Per Month"
+msgstr "Fichiers par Mois"
+
+#. module: report_document
+#: constraint:ir.model:0
+msgid "The Object name must start with x_ and not contain any special character !"
+msgstr "Le nom de l'objet doit commencer avec x_ et ne pas contenir de charactères spéciaux !"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_wall
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_shame
+#: view:report.document.wall:0
+msgid "Wall of Shame"
+msgstr "Mur de la Honte"
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_files_partenr
+msgid "Files details by Partners"
+msgstr "Détails des Fichiers par Partenaire"
+
+#. module: report_document
+#: field:report.document.file,file_size:0
+#: field:report.document.user,file_size:0
+#: field:report.files.partenr,file_size:0
+msgid "File Size"
+msgstr "Taille du Fichier"
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_all
+msgid "All Months"
+msgstr "Tous les mois"
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_all_myfile
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_this_myfile
+msgid "My files"
+msgstr "Mes Fichiers"
+
+#. module: report_document
+#: view:report.document.user:0
+msgid "Files by users"
+msgstr "Fichiers par Utilisateur"
+
+#. module: report_document
+#: view:report.document.user:0
+msgid "Files"
+msgstr "Fichiers"
+
+#. module: report_document
+#: view:report.files.partenr:0
+msgid "Files per Month"
+msgstr "Fichiers par Mois"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_my_document_tree1
+msgid "My files (All months)"
+msgstr "Mes Fichiers (Tous les Mois)"
+
+#. module: report_document
+#: field:report.document.wall,file_name:0
+msgid "Last Posted File Name"
+msgstr "Nom du Dernier Fichier Posté"
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report
+msgid "Reporting"
+msgstr "Reporting"
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_document_wall
+msgid "Users that did not inserted documents since one month"
+msgstr "Utilisateurs qui n'ont pas insérés de documents depuis un mois"
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document
+msgid "Document Management"
+msgstr "Gestion des Documents"
+
+#. module: report_document
+#: field:report.document.user,type:0
+#: field:report.files.partenr,type:0
+msgid "Directory Type"
+msgstr "Type de Répertoire"
+
+#. module: report_document
+#: view:report.files.partenr:0
+msgid "Files By Partner"
+msgstr "Fichiers par Partenaire"
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_this
+msgid "This Month"
+msgstr "Ce mois"
+
+#. module: report_document
+#: field:report.document.user,user:0
+#: field:report.document.wall,user:0
+msgid "User"
+msgstr "Utilisateur"
+
+#. module: report_document
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr "XML non valide pour l'architecture de la vue"
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_all_userfile
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_this_userfile
+msgid "All Users files"
+msgstr "Fichiers de tous les Utilisateurs"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_my_document_tree
+msgid "My files (This months)"
+msgstr "Mes Fichiers (Ce mois)"
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_document_user
+msgid "Files details by Users"
+msgstr "Détail des Fichiers par Utilisateurs"
+
+#. module: report_document
+#: field:report.document.wall,last:0
+msgid "Last Posted Time"
+msgstr "Temps de la Dernière Insertion"
+
+#. module: report_document
+#: field:report.document.file,nbr:0
+#: field:report.document.user,nbr:0
+#: field:report.files.partenr,nbr:0
+msgid "# of Files"
+msgstr "# de Fichiers"
+
+#. module: report_document
+#: field:report.document.user,directory:0
+#: field:report.files.partenr,directory:0
+msgid "Directory"
+msgstr "Répertoire"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_user_graph
+msgid "Files By Users"
+msgstr "Fichiers par Utilisateurs"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_all_document_tree1
+msgid "All Users files (All months)"
+msgstr "Tous les Fichiers des Utilisateurs (Tous les Mois)"
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_document_file
+msgid "Files details by Directory"
+msgstr "Détails des Fichiers par Répertoire"
+
+#. module: report_document
+#: field:report.document.user,change_date:0
+#: field:report.files.partenr,change_date:0
+msgid "Modified Date"
+msgstr "Date de Modification"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_size_month
+#: view:report.document.file:0
+msgid "File Size by Month"
+msgstr "Taille des Fichiers par Mois"
+
+#. module: report_document
+#: field:report.document.user,file_title:0
+#: field:report.files.partenr,file_title:0
+msgid "File Name"
+msgstr "Nom du Fichier"
+
+#. module: report_document
+#: field:report.document.file,month:0
+#: field:report.document.user,month:0
+#: field:report.document.user,name:0
+#: field:report.document.wall,month:0
+#: field:report.document.wall,name:0
+#: field:report.files.partenr,name:0
+msgid "Month"
+msgstr "Mois"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_files_by_month_graph
+#: view:report.document.user:0
+msgid "Files by Month"
+msgstr "Fichiers par Mois"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_document_by_resourcetype_graph
+#: view:report.document.user:0
+msgid "Files by Resource Type"
+msgstr "Fichiers par Type de Ressource"
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_all_document_tree
+msgid "All Users files (This month)"
+msgstr "Tous les Fichiers de Tous les Utilisateurs (Ce mois)"
+
+#. module: report_document
+#: field:report.document.user,user_id:0
+#: field:report.document.wall,user_id:0
+msgid "Owner"
+msgstr "Propriétaire"
+
+#. module: report_document
+#: field:report.document.user,partner:0
+#: field:report.files.partenr,partner:0
+msgid "Partner"
+msgstr "Partenaire"
+
diff --git a/addons/report_document/i18n/report_document.pot b/addons/report_document/i18n/report_document.pot
new file mode 100644
index 00000000000..bbef5bb6414
--- /dev/null
+++ b/addons/report_document/i18n/report_document.pot
@@ -0,0 +1,236 @@
+# Translation of OpenERP Server.
+# This file containt the translation of the following modules:
+# * report_document
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 4.3.99\n"
+"Report-Msgid-Bugs-To: support@openerp.com\n"
+"POT-Creation-Date: 2008-10-28 08:12:59+0000\n"
+"PO-Revision-Date: 2008-10-28 08:12:59+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: report_document
+#: field:report.document.user,create_date:0
+#: field:report.files.partenr,create_date:0
+msgid "Date Created"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_files_by_partner
+msgid "Files Per Month"
+msgstr ""
+
+#. module: report_document
+#: constraint:ir.model:0
+msgid "The Object name must start with x_ and not contain any special character !"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_wall
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_shame
+#: view:report.document.wall:0
+msgid "Wall of Shame"
+msgstr ""
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_files_partenr
+msgid "Files details by Partners"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.file,file_size:0
+#: field:report.document.user,file_size:0
+#: field:report.files.partenr,file_size:0
+msgid "File Size"
+msgstr ""
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_all
+msgid "All Months"
+msgstr ""
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_all_myfile
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_this_myfile
+msgid "My files"
+msgstr ""
+
+#. module: report_document
+#: view:report.document.user:0
+msgid "Files by users"
+msgstr ""
+
+#. module: report_document
+#: view:report.document.user:0
+msgid "Files"
+msgstr ""
+
+#. module: report_document
+#: view:report.files.partenr:0
+msgid "Files per Month"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_my_document_tree1
+msgid "My files (All months)"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.wall,file_name:0
+msgid "Last Posted File Name"
+msgstr ""
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report
+msgid "Reporting"
+msgstr ""
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_document_wall
+msgid "Users that did not inserted documents since one month"
+msgstr ""
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document
+msgid "Document Management"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.user,type:0
+#: field:report.files.partenr,type:0
+msgid "Directory Type"
+msgstr ""
+
+#. module: report_document
+#: view:report.files.partenr:0
+msgid "Files By Partner"
+msgstr ""
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_this
+msgid "This Month"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.user,user:0
+#: field:report.document.wall,user:0
+msgid "User"
+msgstr ""
+
+#. module: report_document
+#: constraint:ir.ui.view:0
+msgid "Invalid XML for View Architecture!"
+msgstr ""
+
+#. module: report_document
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_all_userfile
+#: model:ir.ui.menu,name:report_document.menu_action_view_my_document_report_this_userfile
+msgid "All Users files"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_my_document_tree
+msgid "My files (This months)"
+msgstr ""
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_document_user
+msgid "Files details by Users"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.wall,last:0
+msgid "Last Posted Time"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.file,nbr:0
+#: field:report.document.user,nbr:0
+#: field:report.files.partenr,nbr:0
+msgid "# of Files"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.user,directory:0
+#: field:report.files.partenr,directory:0
+msgid "Directory"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_user_graph
+msgid "Files By Users"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_all_document_tree1
+msgid "All Users files (All months)"
+msgstr ""
+
+#. module: report_document
+#: model:ir.model,name:report_document.model_report_document_file
+msgid "Files details by Directory"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.user,change_date:0
+#: field:report.files.partenr,change_date:0
+msgid "Modified Date"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_size_month
+#: view:report.document.file:0
+msgid "File Size by Month"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.user,file_title:0
+#: field:report.files.partenr,file_title:0
+msgid "File Name"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.file,month:0
+#: field:report.document.user,month:0
+#: field:report.document.user,name:0
+#: field:report.document.wall,month:0
+#: field:report.document.wall,name:0
+#: field:report.files.partenr,name:0
+msgid "Month"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_files_by_month_graph
+#: view:report.document.user:0
+msgid "Files by Month"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_document_by_resourcetype_graph
+#: view:report.document.user:0
+msgid "Files by Resource Type"
+msgstr ""
+
+#. module: report_document
+#: model:ir.actions.act_window,name:report_document.action_view_all_document_tree
+msgid "All Users files (This month)"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.user,user_id:0
+#: field:report.document.wall,user_id:0
+msgid "Owner"
+msgstr ""
+
+#. module: report_document
+#: field:report.document.user,partner:0
+#: field:report.files.partenr,partner:0
+msgid "Partner"
+msgstr ""
+
diff --git a/addons/report_document/report_document.py b/addons/report_document/report_document.py
index 1743f6921c7..689bd7c519f 100644
--- a/addons/report_document/report_document.py
+++ b/addons/report_document/report_document.py
@@ -1,21 +1,24 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Copyright (c) 2004-2006 TINY SPRL. (http://tiny.be) All Rights Reserved.
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
+# $Id$
#
-# $Id: sale.py 1005 2005-07-25 08:41:42Z nicoe $
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
+# 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 General Public License for more details.
#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -64,7 +67,7 @@ class report_document_user(osv.osv):
f.file_size as file_size,
min(f.title) as file_title,
min(d.type) as type,
- min(EXTRACT(MONTH FROM f.create_date)||'-'||substring(to_char(f.create_date,'YY-Month-DD') from 4 for 9)) as month,
+ min(EXTRACT(MONTH FROM f.create_date)||'-'||to_char(f.create_date,'Month')) as month,
f.write_date as change_date
from ir_attachment f
left join document_directory d on (f.parent_id=d.id and d.name<>'')
@@ -74,8 +77,8 @@ class report_document_user(osv.osv):
""")
report_document_user()
-class report_files_partenr(osv.osv):
- _name = "report.files.partenr"
+class report_files_partner(osv.osv):
+ _name = "report.files.partner"
_description = "Files details by Partners"
_auto = False
_columns = {
@@ -91,11 +94,18 @@ class report_files_partenr(osv.osv):
}
def init(self, cr):
cr.execute("""
- create or replace view report_files_partenr as (
- select min(f.id) as id,count(*) as nbr,min(to_char(f.create_date,'YYYY-MM')||'-'||'01') as name,min(f.title) as file_title,p.name as partner from ir_attachment f inner join res_partner p on (f.partner_id=p.id) group by p.name
+ create or replace view report_files_partner as (
+ select min(f.id) as id,count(*) as nbr,
+ min(to_char(f.create_date,'YYYY-MM-01')) as name,
+ min(f.title) as file_title,
+ p.name as partner
+ from ir_attachment f
+ inner join res_partner p
+ on (f.partner_id=p.id)
+ group by p.name
)
""")
-report_files_partenr()
+report_files_partner()
class report_document_file(osv.osv):
_name = "report.document.file"
@@ -110,9 +120,10 @@ class report_document_file(osv.osv):
def init(self, cr):
cr.execute("""
create or replace view report_document_file as (
- select min(f.id) as id,count(*) as nbr,
- min(EXTRACT(MONTH FROM f.create_date)||'-'||substring(to_char(f.create_date,'YY-Month-DD') from 4 for 9)) as month,
- sum(f.file_size) as file_size
+ select min(f.id) as id,
+ count(*) as nbr,
+ min(EXTRACT(MONTH FROM f.create_date)||'-'||to_char(f.create_date,'Month')) as month,
+ sum(f.file_size) as file_size
from ir_attachment f
group by EXTRACT(MONTH FROM f.create_date)
)
@@ -139,15 +150,15 @@ class report_document_wall(osv.osv):
select max(f.id) as id,
min(title) as file_name,
to_char(min(f.create_date),'YYYY-MM-DD HH24:MI:SS') as last,
- f.user_id as user_id,f.user_id as user,
- substring(to_char(f.create_date,'YY-Month-DD') from 4 for 9) as month
+ f.user_id as user_id, f.user_id as user,
+ to_char(f.create_date,'Month') as month
from ir_attachment f
where create_date in (
select max(create_date)
from ir_attachment i
inner join res_users u on (i.user_id=u.id)
group by i.user_id) group by f.user_id,f.create_date
- having (to_date(substring(CURRENT_DATE for 10),'YYYY-MM-DD') - to_date(substring(f.create_date for 10),'YYYY-MM-DD')) > 30
+ having (CURRENT_DATE - to_date(to_char(f.create_date,'YYYY-MM-DD'),'YYYY-MM-DD')) > 30
)
""")
report_document_wall()
diff --git a/addons/report_document/report_document_view.xml b/addons/report_document/report_document_view.xml
index c0a67d101e4..bc909dbdded 100644
--- a/addons/report_document/report_document_view.xml
+++ b/addons/report_document/report_document_view.xml
@@ -251,8 +251,8 @@
<!--***************************************************************************************-->
<record model="ir.ui.view" id="view_files_by_partner_graph">
- <field name="name">view.files.partenr.graph</field>
- <field name="model">report.files.partenr</field>
+ <field name="name">view.files.partner.graph</field>
+ <field name="model">report.files.partner</field>
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Files By Partner" type="bar">
@@ -265,7 +265,7 @@
<record model="ir.ui.view" id="view_files_by_partner_tree">
<field name="name">view.files.partner.tree</field>
- <field name="model">report.files.partenr</field>
+ <field name="model">report.files.partner</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Files per Month">
@@ -277,7 +277,7 @@
</record>
<record model="ir.actions.act_window" id="action_view_files_by_partner">
<field name="name">Files Per Month</field>
- <field name="res_model">report.files.partenr</field>
+ <field name="res_model">report.files.partner</field>
<field name="view_id" ref="view_files_by_partner_graph"></field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
diff --git a/addons/report_document/security/ir.model.access.csv b/addons/report_document/security/ir.model.access.csv
index 8577bf5a5f6..b9a90b3a610 100644
--- a/addons/report_document/security/ir.model.access.csv
+++ b/addons/report_document/security/ir.model.access.csv
@@ -1,8 +1,8 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_report_document_user_group_document_manager","report.document.user document manager","model_report_document_user","document.group_document_manager",1,0,0,0
"access_report_document_user_group_system","report.document.user group system","model_report_document_user","base.group_system",1,0,0,0
-"access_report_files_partenr_group_document_manager","report.files.partenr document manager","model_report_files_partenr","document.group_document_manager",1,0,0,0
-"access_report_files_partenr_group_system","report.files.partenr group system","model_report_files_partenr","base.group_system",1,0,0,0
+"access_report_files_partner_group_document_manager","report.files.partner document manager","model_report_files_partner","document.group_document_manager",1,0,0,0
+"access_report_files_partner_group_system","report.files.partner group system","model_report_files_partner","base.group_system",1,0,0,0
"access_report_document_file_group_document_manager","report.document.file document manager","model_report_document_file","document.group_document_manager",1,0,0,0
"access_report_document_file_group_system","report.document.file group system","model_report_document_file","base.group_system",1,0,0,0
"access_report_document_wall_group_document_manager","report.document.wall document manager","model_report_document_wall","document.group_document_manager",1,0,0,0