Browse Source

[RFR] Rename module

pull/743/head
Stefan Rijnhart 8 years ago
parent
commit
08178f3cbe
  1. 0
      base_import_security_group/README.rst
  2. 0
      base_import_security_group/__init__.py
  3. 2
      base_import_security_group/__openerp__.py
  4. 6
      base_import_security_group/i18n/base_import_security_group.pot
  5. 6
      base_import_security_group/i18n/ca.po
  6. 6
      base_import_security_group/i18n/es.po
  7. 6
      base_import_security_group/i18n/fr.po
  8. 6
      base_import_security_group/i18n/gl.po
  9. 6
      base_import_security_group/i18n/it.po
  10. 6
      base_import_security_group/i18n/pt.po
  11. 6
      base_import_security_group/i18n/sk.po
  12. 0
      base_import_security_group/models/__init__.py
  13. 2
      base_import_security_group/models/models.py
  14. 0
      base_import_security_group/security/res_groups.xml
  15. 0
      base_import_security_group/static/description/icon.png
  16. 0
      base_import_security_group/static/description/icon.svg
  17. 6
      base_import_security_group/static/src/js/import.js
  18. 4
      base_import_security_group/views/base_import.xml

0
base_import_csv_optional/README.rst → base_import_security_group/README.rst

0
base_import_csv_optional/__init__.py → base_import_security_group/__init__.py

2
base_import_csv_optional/__openerp__.py → 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': [

6
base_import_csv_optional/i18n/base_import_csv_optional.pot → 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 ""

6
base_import_csv_optional/i18n/ca.po → 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"

6
base_import_csv_optional/i18n/es.po → 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"

6
base_import_csv_optional/i18n/fr.po → 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"

6
base_import_csv_optional/i18n/gl.po → 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"

6
base_import_csv_optional/i18n/it.po → 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"

6
base_import_csv_optional/i18n/pt.po → 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"

6
base_import_csv_optional/i18n/sk.po → 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"

0
base_import_csv_optional/models/__init__.py → base_import_security_group/models/__init__.py

2
base_import_csv_optional/models/models.py → 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:

0
base_import_csv_optional/security/base_import_csv_optional_security.xml → base_import_security_group/security/res_groups.xml

0
base_import_csv_optional/static/description/icon.png → base_import_security_group/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 2.7 KiB

After

Width: 128  |  Height: 128  |  Size: 2.7 KiB

0
base_import_csv_optional/static/description/icon.svg → base_import_security_group/static/description/icon.svg

6
base_import_csv_optional/static/src/js/import.js → 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;

4
base_import_csv_optional/views/base_import.xml → base_import_security_group/views/base_import.xml

@ -3,9 +3,9 @@
<openerp>
<data>
<template id="assets_backend" name="base_import_csv_optional assets" inherit_id="base_import.assets_backend">
<template id="assets_backend" name="base_import_security_group assets" inherit_id="base_import.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/base_import_csv_optional/static/src/js/import.js"></script>
<script type="text/javascript" src="/base_import_security_group/static/src/js/import.js"></script>
</xpath>
</template>
Loading…
Cancel
Save