Browse Source

[MIG] base_user_role: Port to 10.0

pull/684/head
Adrien Peiffer (ACSONE) 8 years ago
committed by Dave Lasley
parent
commit
d2a6e8e8e8
  1. 2
      base_user_role/__manifest__.py
  2. 2
      base_user_role/i18n/am.po
  3. 2
      base_user_role/i18n/ar.po
  4. 2
      base_user_role/i18n/bg.po
  5. 2
      base_user_role/i18n/bs.po
  6. 2
      base_user_role/i18n/ca.po
  7. 2
      base_user_role/i18n/cs.po
  8. 2
      base_user_role/i18n/da.po
  9. 2
      base_user_role/i18n/de.po
  10. 2
      base_user_role/i18n/el_GR.po
  11. 2
      base_user_role/i18n/en_GB.po
  12. 2
      base_user_role/i18n/es.po
  13. 2
      base_user_role/i18n/es_AR.po
  14. 2
      base_user_role/i18n/es_CL.po
  15. 2
      base_user_role/i18n/es_CO.po
  16. 2
      base_user_role/i18n/es_CR.po
  17. 2
      base_user_role/i18n/es_DO.po
  18. 2
      base_user_role/i18n/es_EC.po
  19. 2
      base_user_role/i18n/es_ES.po
  20. 2
      base_user_role/i18n/es_MX.po
  21. 2
      base_user_role/i18n/es_PE.po
  22. 2
      base_user_role/i18n/es_PY.po
  23. 2
      base_user_role/i18n/es_VE.po
  24. 2
      base_user_role/i18n/et.po
  25. 2
      base_user_role/i18n/eu.po
  26. 2
      base_user_role/i18n/fa.po
  27. 2
      base_user_role/i18n/fi.po
  28. 2
      base_user_role/i18n/fr.po
  29. 2
      base_user_role/i18n/fr_CA.po
  30. 2
      base_user_role/i18n/fr_CH.po
  31. 2
      base_user_role/i18n/gl.po
  32. 2
      base_user_role/i18n/gl_ES.po
  33. 2
      base_user_role/i18n/he.po
  34. 2
      base_user_role/i18n/hr.po
  35. 2
      base_user_role/i18n/hr_HR.po
  36. 2
      base_user_role/i18n/hu.po
  37. 2
      base_user_role/i18n/id.po
  38. 2
      base_user_role/i18n/it.po
  39. 2
      base_user_role/i18n/ja.po
  40. 2
      base_user_role/i18n/ko.po
  41. 2
      base_user_role/i18n/lt.po
  42. 2
      base_user_role/i18n/lt_LT.po
  43. 2
      base_user_role/i18n/lv.po
  44. 2
      base_user_role/i18n/mk.po
  45. 2
      base_user_role/i18n/mn.po
  46. 2
      base_user_role/i18n/nb.po
  47. 2
      base_user_role/i18n/nb_NO.po
  48. 2
      base_user_role/i18n/nl.po
  49. 2
      base_user_role/i18n/nl_BE.po
  50. 2
      base_user_role/i18n/pl.po
  51. 2
      base_user_role/i18n/pt.po
  52. 2
      base_user_role/i18n/pt_BR.po
  53. 2
      base_user_role/i18n/pt_PT.po
  54. 2
      base_user_role/i18n/ro.po
  55. 2
      base_user_role/i18n/ru.po
  56. 2
      base_user_role/i18n/sk.po
  57. 2
      base_user_role/i18n/sl.po
  58. 2
      base_user_role/i18n/sr.po
  59. 2
      base_user_role/i18n/sr@latin.po
  60. 2
      base_user_role/i18n/sv.po
  61. 2
      base_user_role/i18n/th.po
  62. 2
      base_user_role/i18n/tr.po
  63. 2
      base_user_role/i18n/uk.po
  64. 2
      base_user_role/i18n/vi.po
  65. 2
      base_user_role/i18n/vi_VN.po
  66. 2
      base_user_role/i18n/zh_CN.po
  67. 2
      base_user_role/i18n/zh_TW.po
  68. 2
      base_user_role/models/role.py
  69. 2
      base_user_role/models/user.py
  70. 101
      base_user_role/tests/test_user_role.py
  71. 2
      base_user_role/views/role.xml
  72. 1
      setup/base_user_role/odoo/__init__.py
  73. 1
      setup/base_user_role/odoo/addons/__init__.py
  74. 1
      setup/base_user_role/odoo/addons/base_user_role
  75. 6
      setup/base_user_role/setup.py

2
base_user_role/__openerp__.py → base_user_role/__manifest__.py

@ -4,7 +4,7 @@
{
'name': 'User roles',
'version': '9.0.1.0.0',
'version': '10.0.1.0.0',
'category': 'Tools',
'author': 'ABF OSIELL, Odoo Community Association (OCA)',
'license': 'AGPL-3',

2
base_user_role/i18n/am.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/ar.po

@ -7,7 +7,7 @@
# SaFi J. <safi2266@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/bg.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/bs.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/ca.po

@ -7,7 +7,7 @@
# Carles Antoli <carlesantoli@hotmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/cs.po

@ -7,7 +7,7 @@
# Jaroslav Helemik Nemec <nemec@helemik.cz>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/da.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/de.po

@ -8,7 +8,7 @@
# Thomas A. Jaeger <tj@jamotion.ch>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/el_GR.po

@ -7,7 +7,7 @@
# Kostas Goutoudis <goutoudis@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/en_GB.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es.po

@ -9,7 +9,7 @@
# Eduardo Rodríguez Crespo <erocre@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_AR.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_CL.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_CO.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_CR.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_DO.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_EC.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_ES.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_MX.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_PE.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_PY.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/es_VE.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/et.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/eu.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/fa.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/fi.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/fr.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/fr_CA.po

@ -7,7 +7,7 @@
# Martin Malorni <mm@microcom.ca>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/fr_CH.po

@ -7,7 +7,7 @@
# leemannd <leemannd@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/gl.po

@ -8,7 +8,7 @@
# Alejandro Santana <alejandrosantana@anubia.es>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/gl_ES.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/he.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/hr.po

@ -8,7 +8,7 @@
# Bole <bole@dajmi5.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/hr_HR.po

@ -7,7 +7,7 @@
# Bole <bole@dajmi5.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/hu.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/id.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/it.po

@ -9,7 +9,7 @@
# Nicola Malcontenti <nicola.malcontenti@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/ja.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/ko.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/lt.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/lt_LT.po

@ -6,7 +6,7 @@
# Arminas Grigonis <arminas@versada.lt>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/lv.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/mk.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/mn.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/nb.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/nb_NO.po

@ -6,7 +6,7 @@
# Imre Kristoffer Eilertsen <imreeil42@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/nl.po

@ -7,7 +7,7 @@
# Erwin van der Ploeg <erwin@odooexperts.nl>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/nl_BE.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/pl.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/pt.po

@ -7,7 +7,7 @@
# Pedro Castro Silva <pedrocs@sossia.pt>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/pt_BR.po

@ -9,7 +9,7 @@
# Paulo Ricardo <ti@shoppingescritorio.com.br>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/pt_PT.po

@ -7,7 +7,7 @@
# Pedro Castro Silva <pedrocs@sossia.pt>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/ro.po

@ -8,7 +8,7 @@
# Dorin Hongu <dhongu@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/ru.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/sk.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/sl.po

@ -7,7 +7,7 @@
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-23 21:53+0000\n"
"PO-Revision-Date: 2016-12-23 21:53+0000\n"

2
base_user_role/i18n/sr.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/sr@latin.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/sv.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/th.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/tr.po

@ -7,7 +7,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-29 03:39+0000\n"
"PO-Revision-Date: 2016-12-29 03:39+0000\n"

2
base_user_role/i18n/uk.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/vi.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/vi_VN.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/zh_CN.po

@ -7,7 +7,7 @@
# Jeffery Chen Fan <jeffery9@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/i18n/zh_TW.po

@ -6,7 +6,7 @@
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-17 02:07+0000\n"
"PO-Revision-Date: 2016-12-17 02:07+0000\n"

2
base_user_role/models/role.py

@ -5,7 +5,7 @@
import datetime
import logging
from openerp import api, fields, models
from odoo import api, fields, models
_logger = logging.getLogger(__name__)

2
base_user_role/models/user.py

@ -2,7 +2,7 @@
# Copyright 2014 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
from odoo import api, fields, models
class ResUsers(models.Model):

101
base_user_role/tests/test_user_role.py

@ -4,104 +4,93 @@
import datetime
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT
from openerp.tests.common import TransactionCase
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT
from odoo.tests.common import TransactionCase
class TestUserRole(TransactionCase):
def setUp(self):
super(TestUserRole, self).setUp()
self.imd_model = self.registry('ir.model.data')
self.user_model = self.registry('res.users')
self.role_model = self.registry('res.users.role')
self.user_model = self.env['res.users']
self.role_model = self.env['res.users.role']
self.user_id = self.user_model.create(
self.cr, self.uid,
{'name': u"USER TEST (ROLES)", 'login': 'user_test_roles'})
# ROLE_1
self.group_user_id = self.imd_model.get_object_reference(
self.cr, self.uid, 'base', 'group_user')[1]
self.group_no_one_id = self.imd_model.get_object_reference(
self.cr, self.uid, 'base', 'group_no_one')[1]
self.group_user_id = self.env.ref('base.group_user')
self.group_no_one_id = self.env.ref('base.group_no_one')
vals = {
'name': u"ROLE_1",
'implied_ids': [6, 0, [self.group_user_id, self.group_no_one_id]],
'implied_ids': [
(6, 0, [self.group_user_id.id, self.group_no_one_id.id])],
}
self.role1_id = self.role_model.create(self.cr, self.uid, vals)
self.role1_id = self.role_model.create(vals)
# ROLE_2
self.group_multi_currency_id = self.imd_model.get_object_reference(
self.cr, self.uid, 'base', 'group_multi_currency')[1]
self.group_sale_manager_id = self.imd_model.get_object_reference(
self.cr, self.uid, 'base', 'group_sale_manager')[1]
self.group_multi_currency_id = self.env.ref(
'base.group_multi_currency')
self.group_settings_id = self.env.ref('base.group_system')
vals = {
'name': u"ROLE_2",
'implied_ids': [6, 0, [self.group_multi_currency_id,
self.group_sale_manager_id]],
'implied_ids': [
(6, 0, [self.group_multi_currency_id.id,
self.group_settings_id.id])],
}
self.role2_id = self.role_model.create(self.cr, self.uid, vals)
self.role2_id = self.role_model.create(vals)
def test_role_1(self):
role1 = self.role_model.browse(self.cr, self.uid, self.role1_id)
self.user_model.write(
self.cr, self.uid, [self.user_id],
{'role_line_ids': [(0, 0, {'role_id': self.role1_id})]})
user = self.user_model.browse(self.cr, self.uid, self.user_id)
user_group_ids = sorted(set([group.id for group in user.groups_id]))
role_group_ids = role1.implied_ids.ids
role_group_ids.append(role1.group_id.id)
self.user_id.write(
{'role_line_ids': [(0, 0, {'role_id': self.role1_id.id})]})
user_group_ids = sorted(set(
[group.id for group in self.user_id.groups_id]))
role_group_ids = self.role1_id.trans_implied_ids.ids
role_group_ids.append(self.role1_id.group_id.id)
role_group_ids = sorted(set(role_group_ids))
self.assertEqual(user_group_ids, role_group_ids)
def test_role_2(self):
role2 = self.role_model.browse(self.cr, self.uid, self.role2_id)
self.user_model.write(
self.cr, self.uid, [self.user_id],
{'role_line_ids': [(0, 0, {'role_id': self.role2_id})]})
user = self.user_model.browse(self.cr, self.uid, self.user_id)
user_group_ids = sorted(set([group.id for group in user.groups_id]))
role_group_ids = role2.implied_ids.ids
role_group_ids.append(role2.group_id.id)
self.user_id.write(
{'role_line_ids': [(0, 0, {'role_id': self.role2_id.id})]})
user_group_ids = sorted(set(
[group.id for group in self.user_id.groups_id]))
role_group_ids = self.role2_id.trans_implied_ids.ids
role_group_ids.append(self.role2_id.group_id.id)
role_group_ids = sorted(set(role_group_ids))
self.assertEqual(user_group_ids, role_group_ids)
def test_role_1_2(self):
role1 = self.role_model.browse(self.cr, self.uid, self.role1_id)
role2 = self.role_model.browse(self.cr, self.uid, self.role2_id)
self.user_model.write(
self.cr, self.uid, [self.user_id],
self.user_id.write(
{'role_line_ids': [
(0, 0, {'role_id': self.role1_id}),
(0, 0, {'role_id': self.role2_id}),
(0, 0, {'role_id': self.role1_id.id}),
(0, 0, {'role_id': self.role2_id.id}),
]})
user = self.user_model.browse(self.cr, self.uid, self.user_id)
user_group_ids = sorted(set([group.id for group in user.groups_id]))
role1_group_ids = role1.implied_ids.ids
role1_group_ids.append(role1.group_id.id)
role2_group_ids = role2.implied_ids.ids
role2_group_ids.append(role2.group_id.id)
user_group_ids = sorted(set(
[group.id for group in self.user_id.groups_id]))
role1_group_ids = self.role1_id.trans_implied_ids.ids
role1_group_ids.append(self.role1_id.group_id.id)
role2_group_ids = self.role2_id.trans_implied_ids.ids
role2_group_ids.append(self.role2_id.group_id.id)
role_group_ids = sorted(set(role1_group_ids + role2_group_ids))
self.assertEqual(user_group_ids, role_group_ids)
def test_role_1_2_with_dates(self):
role1 = self.role_model.browse(self.cr, self.uid, self.role1_id)
today = datetime.date.today()
today_str = today.strftime(DEFAULT_SERVER_DATE_FORMAT)
yesterday = today - datetime.timedelta(days=1)
yesterday_str = yesterday.strftime(DEFAULT_SERVER_DATE_FORMAT)
self.user_model.write(
self.cr, self.uid, [self.user_id],
self.user_id.write(
{'role_line_ids': [
# Role 1 should be enabled
(0, 0, {'role_id': self.role1_id, 'date_from': today_str}),
(0, 0, {'role_id': self.role1_id.id, 'date_from': today_str}),
# Role 2 should be disabled
(0, 0, {'role_id': self.role2_id, 'date_to': yesterday_str}),
(0, 0,
{'role_id': self.role2_id.id, 'date_to': yesterday_str}),
]})
user = self.user_model.browse(self.cr, self.uid, self.user_id)
user_group_ids = sorted(set([group.id for group in user.groups_id]))
role1_group_ids = role1.implied_ids.ids
role1_group_ids.append(role1.group_id.id)
user_group_ids = sorted(set(
[group.id for group in self.user_id.groups_id]))
role1_group_ids = self.role1_id.trans_implied_ids.ids
role1_group_ids.append(self.role1_id.group_id.id)
role_group_ids = sorted(set(role1_group_ids))
self.assertEqual(user_group_ids, role_group_ids)

2
base_user_role/views/role.xml

@ -7,7 +7,7 @@
<field name="name">res.users.role.form</field>
<field name="model">res.users.role</field>
<field name="arch" type="xml">
<form string="Role" version="7.0">
<form string="Role">
<sheet>
<group>
<field name="name"/>

1
setup/base_user_role/odoo/__init__.py

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/base_user_role/odoo/addons/__init__.py

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

1
setup/base_user_role/odoo/addons/base_user_role

@ -0,0 +1 @@
../../../../base_user_role

6
setup/base_user_role/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save