From 08178f3cbe086e708393154e250e1ed74dab19c6 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Tue, 21 Feb 2017 11:40:52 +0100 Subject: [PATCH] [RFR] Rename module --- .../README.rst | 0 .../__init__.py | 0 .../__openerp__.py | 2 +- .../i18n/base_import_security_group.pot | 6 +++--- .../i18n/ca.po | 6 +++--- .../i18n/es.po | 6 +++--- .../i18n/fr.po | 6 +++--- .../i18n/gl.po | 6 +++--- .../i18n/it.po | 6 +++--- .../i18n/pt.po | 6 +++--- .../i18n/sk.po | 6 +++--- .../models/__init__.py | 0 .../models/models.py | 2 +- .../security/res_groups.xml | 0 .../static/description/icon.png | Bin .../static/description/icon.svg | 0 .../static/src/js/import.js | 6 +++--- .../views/base_import.xml | 4 ++-- 18 files changed, 31 insertions(+), 31 deletions(-) rename {base_import_csv_optional => base_import_security_group}/README.rst (100%) rename {base_import_csv_optional => base_import_security_group}/__init__.py (100%) rename {base_import_csv_optional => base_import_security_group}/__openerp__.py (96%) rename base_import_csv_optional/i18n/base_import_csv_optional.pot => base_import_security_group/i18n/base_import_security_group.pot (77%) rename {base_import_csv_optional => base_import_security_group}/i18n/ca.po (77%) rename {base_import_csv_optional => base_import_security_group}/i18n/es.po (77%) rename {base_import_csv_optional => base_import_security_group}/i18n/fr.po (78%) rename {base_import_csv_optional => base_import_security_group}/i18n/gl.po (77%) rename {base_import_csv_optional => base_import_security_group}/i18n/it.po (78%) rename {base_import_csv_optional => base_import_security_group}/i18n/pt.po (77%) rename {base_import_csv_optional => base_import_security_group}/i18n/sk.po (78%) rename {base_import_csv_optional => base_import_security_group}/models/__init__.py (100%) rename {base_import_csv_optional => base_import_security_group}/models/models.py (94%) rename base_import_csv_optional/security/base_import_csv_optional_security.xml => base_import_security_group/security/res_groups.xml (100%) rename {base_import_csv_optional => base_import_security_group}/static/description/icon.png (100%) rename {base_import_csv_optional => base_import_security_group}/static/description/icon.svg (100%) rename {base_import_csv_optional => base_import_security_group}/static/src/js/import.js (92%) rename {base_import_csv_optional => base_import_security_group}/views/base_import.xml (58%) diff --git a/base_import_csv_optional/README.rst b/base_import_security_group/README.rst similarity index 100% rename from base_import_csv_optional/README.rst rename to base_import_security_group/README.rst diff --git a/base_import_csv_optional/__init__.py b/base_import_security_group/__init__.py similarity index 100% rename from base_import_csv_optional/__init__.py rename to base_import_security_group/__init__.py diff --git a/base_import_csv_optional/__openerp__.py b/base_import_security_group/__openerp__.py similarity index 96% rename from base_import_csv_optional/__openerp__.py rename to base_import_security_group/__openerp__.py index 5c6b7f925..45dd183b4 100644 --- a/base_import_csv_optional/__openerp__.py +++ b/base_import_security_group/__openerp__.py @@ -35,7 +35,7 @@ 'base_import' ], 'data': [ - 'security/base_import_csv_optional_security.xml', + 'security/res_groups.xml', 'views/base_import.xml', ], 'js': [ diff --git a/base_import_csv_optional/i18n/base_import_csv_optional.pot b/base_import_security_group/i18n/base_import_security_group.pot similarity index 77% rename from base_import_csv_optional/i18n/base_import_csv_optional.pot rename to base_import_security_group/i18n/base_import_security_group.pot index e766cb91a..9ace411c3 100644 --- a/base_import_csv_optional/i18n/base_import_csv_optional.pot +++ b/base_import_security_group/i18n/base_import_security_group.pot @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "" diff --git a/base_import_csv_optional/i18n/ca.po b/base_import_security_group/i18n/ca.po similarity index 77% rename from base_import_csv_optional/i18n/ca.po rename to base_import_security_group/i18n/ca.po index 87b5e5042..3596e8e69 100644 --- a/base_import_csv_optional/i18n/ca.po +++ b/base_import_security_group/i18n/ca.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "Importar arxius CSV" diff --git a/base_import_csv_optional/i18n/es.po b/base_import_security_group/i18n/es.po similarity index 77% rename from base_import_csv_optional/i18n/es.po rename to base_import_security_group/i18n/es.po index 9c4f0f1a8..f236c9fc6 100644 --- a/base_import_csv_optional/i18n/es.po +++ b/base_import_security_group/i18n/es.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "Importar archivos CSV" diff --git a/base_import_csv_optional/i18n/fr.po b/base_import_security_group/i18n/fr.po similarity index 78% rename from base_import_csv_optional/i18n/fr.po rename to base_import_security_group/i18n/fr.po index 1a5477f3c..8edb3e6e0 100644 --- a/base_import_csv_optional/i18n/fr.po +++ b/base_import_security_group/i18n/fr.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "Importation de fichiers CSV" diff --git a/base_import_csv_optional/i18n/gl.po b/base_import_security_group/i18n/gl.po similarity index 77% rename from base_import_csv_optional/i18n/gl.po rename to base_import_security_group/i18n/gl.po index b07cbb63a..75cef97cf 100644 --- a/base_import_csv_optional/i18n/gl.po +++ b/base_import_security_group/i18n/gl.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "Importar arquivos CSV" diff --git a/base_import_csv_optional/i18n/it.po b/base_import_security_group/i18n/it.po similarity index 78% rename from base_import_csv_optional/i18n/it.po rename to base_import_security_group/i18n/it.po index c533b9344..a6e309839 100644 --- a/base_import_csv_optional/i18n/it.po +++ b/base_import_security_group/i18n/it.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "Importazione di file CSV" diff --git a/base_import_csv_optional/i18n/pt.po b/base_import_security_group/i18n/pt.po similarity index 77% rename from base_import_csv_optional/i18n/pt.po rename to base_import_security_group/i18n/pt.po index b07cbb63a..75cef97cf 100644 --- a/base_import_csv_optional/i18n/pt.po +++ b/base_import_security_group/i18n/pt.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "Importar arquivos CSV" diff --git a/base_import_csv_optional/i18n/sk.po b/base_import_security_group/i18n/sk.po similarity index 78% rename from base_import_csv_optional/i18n/sk.po rename to base_import_security_group/i18n/sk.po index f7fced06f..55a3b90e2 100644 --- a/base_import_csv_optional/i18n/sk.po +++ b/base_import_security_group/i18n/sk.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * base_import_csv_optional +# * base_import_security_group # msgid "" msgstr "" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: base_import_csv_optional -#: model:res.groups,name:base_import_csv_optional.group_import_csv +#. module: base_import_security_group +#: model:res.groups,name:base_import_security_group.group_import_csv msgid "Import CSV files" msgstr "Importovať súbory CSV" diff --git a/base_import_csv_optional/models/__init__.py b/base_import_security_group/models/__init__.py similarity index 100% rename from base_import_csv_optional/models/__init__.py rename to base_import_security_group/models/__init__.py diff --git a/base_import_csv_optional/models/models.py b/base_import_security_group/models/models.py similarity index 94% rename from base_import_csv_optional/models/models.py rename to base_import_security_group/models/models.py index 9bfeaf683..8ebfa8b2e 100644 --- a/base_import_csv_optional/models/models.py +++ b/base_import_security_group/models/models.py @@ -18,7 +18,7 @@ def load_import_optional(self, fields=None, data=None): ''' res = {} current_user = self.env['res.users'].browse(self.env.uid) - allowed_group = 'base_import_csv_optional.group_import_csv' + allowed_group = 'base_import_security_group.group_import_csv' if current_user and current_user.has_group(allowed_group): res = base_load(self, fields=fields, data=data) else: diff --git a/base_import_csv_optional/security/base_import_csv_optional_security.xml b/base_import_security_group/security/res_groups.xml similarity index 100% rename from base_import_csv_optional/security/base_import_csv_optional_security.xml rename to base_import_security_group/security/res_groups.xml diff --git a/base_import_csv_optional/static/description/icon.png b/base_import_security_group/static/description/icon.png similarity index 100% rename from base_import_csv_optional/static/description/icon.png rename to base_import_security_group/static/description/icon.png diff --git a/base_import_csv_optional/static/description/icon.svg b/base_import_security_group/static/description/icon.svg similarity index 100% rename from base_import_csv_optional/static/description/icon.svg rename to base_import_security_group/static/description/icon.svg diff --git a/base_import_csv_optional/static/src/js/import.js b/base_import_security_group/static/src/js/import.js similarity index 92% rename from base_import_csv_optional/static/src/js/import.js rename to base_import_security_group/static/src/js/import.js index 82dcc08a3..eec119c1b 100644 --- a/base_import_csv_optional/static/src/js/import.js +++ b/base_import_security_group/static/src/js/import.js @@ -1,20 +1,20 @@ // License, author and contributors information in: // __openerp__.py file at the root folder of this module. -openerp.base_import_csv_optional = function (instance) { +openerp.base_import_security_group = function (instance) { var QWeb = instance.web.qweb; var _t = instance.web._t; var _lt = instance.web._lt; instance.web.ListView.prototype.defaults.import_enabled = false; - base_import_csv_optional = instance.web.ListView.include({ + base_import_security_group = instance.web.ListView.include({ load_list: function () { var self = this; var Users = new openerp.web.Model('res.users'); self._super.apply(self, arguments); - Users.call('has_group', ['base_import_csv_optional.group_import_csv']) + Users.call('has_group', ['base_import_security_group.group_import_csv']) .then(function (result) { var import_enabled = result; self.options.import_enabled = import_enabled; diff --git a/base_import_csv_optional/views/base_import.xml b/base_import_security_group/views/base_import.xml similarity index 58% rename from base_import_csv_optional/views/base_import.xml rename to base_import_security_group/views/base_import.xml index 1deb6c341..db434a034 100644 --- a/base_import_csv_optional/views/base_import.xml +++ b/base_import_security_group/views/base_import.xml @@ -3,9 +3,9 @@ -