diff --git a/base_user_role/__openerp__.py b/base_user_role/__manifest__.py similarity index 95% rename from base_user_role/__openerp__.py rename to base_user_role/__manifest__.py index 13f8eadf6..817f0fcb4 100644 --- a/base_user_role/__openerp__.py +++ b/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', diff --git a/base_user_role/i18n/am.po b/base_user_role/i18n/am.po index 6ab425952..a0849c0fc 100644 --- a/base_user_role/i18n/am.po +++ b/base_user_role/i18n/am.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/ar.po b/base_user_role/i18n/ar.po index 1409ef6cd..7b65c6ea8 100644 --- a/base_user_role/i18n/ar.po +++ b/base_user_role/i18n/ar.po @@ -7,7 +7,7 @@ # SaFi J. , 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" diff --git a/base_user_role/i18n/bg.po b/base_user_role/i18n/bg.po index b2dbfe368..8a0528b48 100644 --- a/base_user_role/i18n/bg.po +++ b/base_user_role/i18n/bg.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/bs.po b/base_user_role/i18n/bs.po index a464e0895..d0b4287cc 100644 --- a/base_user_role/i18n/bs.po +++ b/base_user_role/i18n/bs.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/ca.po b/base_user_role/i18n/ca.po index 8e4baa3df..5e861ac80 100644 --- a/base_user_role/i18n/ca.po +++ b/base_user_role/i18n/ca.po @@ -7,7 +7,7 @@ # Carles Antoli , 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" diff --git a/base_user_role/i18n/cs.po b/base_user_role/i18n/cs.po index 500f50447..c4c855fc2 100644 --- a/base_user_role/i18n/cs.po +++ b/base_user_role/i18n/cs.po @@ -7,7 +7,7 @@ # Jaroslav Helemik Nemec , 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" diff --git a/base_user_role/i18n/da.po b/base_user_role/i18n/da.po index c11db8739..7c879f452 100644 --- a/base_user_role/i18n/da.po +++ b/base_user_role/i18n/da.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/de.po b/base_user_role/i18n/de.po index 0118e0109..23f99886d 100644 --- a/base_user_role/i18n/de.po +++ b/base_user_role/i18n/de.po @@ -8,7 +8,7 @@ # Thomas A. Jaeger , 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" diff --git a/base_user_role/i18n/el_GR.po b/base_user_role/i18n/el_GR.po index c4eedd24e..7ddf8ec6d 100644 --- a/base_user_role/i18n/el_GR.po +++ b/base_user_role/i18n/el_GR.po @@ -7,7 +7,7 @@ # Kostas Goutoudis , 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" diff --git a/base_user_role/i18n/en_GB.po b/base_user_role/i18n/en_GB.po index 77bbdc86c..44c980aea 100644 --- a/base_user_role/i18n/en_GB.po +++ b/base_user_role/i18n/en_GB.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es.po b/base_user_role/i18n/es.po index 26efcbf2c..af3c061a8 100644 --- a/base_user_role/i18n/es.po +++ b/base_user_role/i18n/es.po @@ -9,7 +9,7 @@ # Eduardo Rodríguez Crespo , 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" diff --git a/base_user_role/i18n/es_AR.po b/base_user_role/i18n/es_AR.po index c252d8f1c..8fa893bee 100644 --- a/base_user_role/i18n/es_AR.po +++ b/base_user_role/i18n/es_AR.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_CL.po b/base_user_role/i18n/es_CL.po index 1c57fec61..35772b8e0 100644 --- a/base_user_role/i18n/es_CL.po +++ b/base_user_role/i18n/es_CL.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_CO.po b/base_user_role/i18n/es_CO.po index 6b4650343..3e4b82fba 100644 --- a/base_user_role/i18n/es_CO.po +++ b/base_user_role/i18n/es_CO.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_CR.po b/base_user_role/i18n/es_CR.po index b2e93feb0..549ad56a4 100644 --- a/base_user_role/i18n/es_CR.po +++ b/base_user_role/i18n/es_CR.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_DO.po b/base_user_role/i18n/es_DO.po index 2f746604a..69728b912 100644 --- a/base_user_role/i18n/es_DO.po +++ b/base_user_role/i18n/es_DO.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_EC.po b/base_user_role/i18n/es_EC.po index 3f57b920a..69c098d10 100644 --- a/base_user_role/i18n/es_EC.po +++ b/base_user_role/i18n/es_EC.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_ES.po b/base_user_role/i18n/es_ES.po index db5ae3c38..3533957a3 100644 --- a/base_user_role/i18n/es_ES.po +++ b/base_user_role/i18n/es_ES.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_MX.po b/base_user_role/i18n/es_MX.po index 0f9f1d463..b9ac975c7 100644 --- a/base_user_role/i18n/es_MX.po +++ b/base_user_role/i18n/es_MX.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_PE.po b/base_user_role/i18n/es_PE.po index 910acbfb9..da1415123 100644 --- a/base_user_role/i18n/es_PE.po +++ b/base_user_role/i18n/es_PE.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_PY.po b/base_user_role/i18n/es_PY.po index 7df0d144e..5c14f4c33 100644 --- a/base_user_role/i18n/es_PY.po +++ b/base_user_role/i18n/es_PY.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/es_VE.po b/base_user_role/i18n/es_VE.po index 503b6b164..3ee4115b0 100644 --- a/base_user_role/i18n/es_VE.po +++ b/base_user_role/i18n/es_VE.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/et.po b/base_user_role/i18n/et.po index a8a4d7f0e..534d1de1b 100644 --- a/base_user_role/i18n/et.po +++ b/base_user_role/i18n/et.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/eu.po b/base_user_role/i18n/eu.po index a2482b1ef..787c95310 100644 --- a/base_user_role/i18n/eu.po +++ b/base_user_role/i18n/eu.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/fa.po b/base_user_role/i18n/fa.po index bf34a0579..44651fc98 100644 --- a/base_user_role/i18n/fa.po +++ b/base_user_role/i18n/fa.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/fi.po b/base_user_role/i18n/fi.po index 174c94256..ad98b7b2a 100644 --- a/base_user_role/i18n/fi.po +++ b/base_user_role/i18n/fi.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/fr.po b/base_user_role/i18n/fr.po index 86de610ee..6da0c9431 100644 --- a/base_user_role/i18n/fr.po +++ b/base_user_role/i18n/fr.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/fr_CA.po b/base_user_role/i18n/fr_CA.po index 45f8d4aa6..7be052813 100644 --- a/base_user_role/i18n/fr_CA.po +++ b/base_user_role/i18n/fr_CA.po @@ -7,7 +7,7 @@ # Martin Malorni , 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" diff --git a/base_user_role/i18n/fr_CH.po b/base_user_role/i18n/fr_CH.po index 1f2a8e687..af097c01c 100644 --- a/base_user_role/i18n/fr_CH.po +++ b/base_user_role/i18n/fr_CH.po @@ -7,7 +7,7 @@ # leemannd , 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" diff --git a/base_user_role/i18n/gl.po b/base_user_role/i18n/gl.po index 391f71d38..4e86dda74 100644 --- a/base_user_role/i18n/gl.po +++ b/base_user_role/i18n/gl.po @@ -8,7 +8,7 @@ # Alejandro Santana , 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" diff --git a/base_user_role/i18n/gl_ES.po b/base_user_role/i18n/gl_ES.po index 86fbc12d3..5b406eac6 100644 --- a/base_user_role/i18n/gl_ES.po +++ b/base_user_role/i18n/gl_ES.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/he.po b/base_user_role/i18n/he.po index 3f1813343..fd64dae23 100644 --- a/base_user_role/i18n/he.po +++ b/base_user_role/i18n/he.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/hr.po b/base_user_role/i18n/hr.po index 8040e364e..60ec5223a 100644 --- a/base_user_role/i18n/hr.po +++ b/base_user_role/i18n/hr.po @@ -8,7 +8,7 @@ # Bole , 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" diff --git a/base_user_role/i18n/hr_HR.po b/base_user_role/i18n/hr_HR.po index 0d06327ac..b702638e4 100644 --- a/base_user_role/i18n/hr_HR.po +++ b/base_user_role/i18n/hr_HR.po @@ -7,7 +7,7 @@ # Bole , 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" diff --git a/base_user_role/i18n/hu.po b/base_user_role/i18n/hu.po index 2c7af5d96..58cd9ed0b 100644 --- a/base_user_role/i18n/hu.po +++ b/base_user_role/i18n/hu.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/id.po b/base_user_role/i18n/id.po index 6c6b2fbc8..2f41b2139 100644 --- a/base_user_role/i18n/id.po +++ b/base_user_role/i18n/id.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/it.po b/base_user_role/i18n/it.po index 12450d2b9..4fcb710bc 100644 --- a/base_user_role/i18n/it.po +++ b/base_user_role/i18n/it.po @@ -9,7 +9,7 @@ # Nicola Malcontenti , 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" diff --git a/base_user_role/i18n/ja.po b/base_user_role/i18n/ja.po index a1e5d3c07..81d950a5e 100644 --- a/base_user_role/i18n/ja.po +++ b/base_user_role/i18n/ja.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/ko.po b/base_user_role/i18n/ko.po index 23286253c..f8a634df4 100644 --- a/base_user_role/i18n/ko.po +++ b/base_user_role/i18n/ko.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/lt.po b/base_user_role/i18n/lt.po index ca85fece7..78376bfb1 100644 --- a/base_user_role/i18n/lt.po +++ b/base_user_role/i18n/lt.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/lt_LT.po b/base_user_role/i18n/lt_LT.po index 7a36368c0..ee5e34ef4 100644 --- a/base_user_role/i18n/lt_LT.po +++ b/base_user_role/i18n/lt_LT.po @@ -6,7 +6,7 @@ # Arminas Grigonis , 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" diff --git a/base_user_role/i18n/lv.po b/base_user_role/i18n/lv.po index 515c013a8..a21797038 100644 --- a/base_user_role/i18n/lv.po +++ b/base_user_role/i18n/lv.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/mk.po b/base_user_role/i18n/mk.po index 7cb61442f..f8ebf4402 100644 --- a/base_user_role/i18n/mk.po +++ b/base_user_role/i18n/mk.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/mn.po b/base_user_role/i18n/mn.po index 667c59c71..7e5a5b426 100644 --- a/base_user_role/i18n/mn.po +++ b/base_user_role/i18n/mn.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/nb.po b/base_user_role/i18n/nb.po index 33c583754..21060751d 100644 --- a/base_user_role/i18n/nb.po +++ b/base_user_role/i18n/nb.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/nb_NO.po b/base_user_role/i18n/nb_NO.po index bcc3b32ae..fd86be537 100644 --- a/base_user_role/i18n/nb_NO.po +++ b/base_user_role/i18n/nb_NO.po @@ -6,7 +6,7 @@ # Imre Kristoffer Eilertsen , 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" diff --git a/base_user_role/i18n/nl.po b/base_user_role/i18n/nl.po index 0ded63cda..a4aa4b988 100644 --- a/base_user_role/i18n/nl.po +++ b/base_user_role/i18n/nl.po @@ -7,7 +7,7 @@ # Erwin van der Ploeg , 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" diff --git a/base_user_role/i18n/nl_BE.po b/base_user_role/i18n/nl_BE.po index 6d7a00935..9ccecdb7f 100644 --- a/base_user_role/i18n/nl_BE.po +++ b/base_user_role/i18n/nl_BE.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/pl.po b/base_user_role/i18n/pl.po index f85f33aaa..00d7bb0b6 100644 --- a/base_user_role/i18n/pl.po +++ b/base_user_role/i18n/pl.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/pt.po b/base_user_role/i18n/pt.po index 89e3fe65b..96305a03a 100644 --- a/base_user_role/i18n/pt.po +++ b/base_user_role/i18n/pt.po @@ -7,7 +7,7 @@ # Pedro Castro Silva , 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" diff --git a/base_user_role/i18n/pt_BR.po b/base_user_role/i18n/pt_BR.po index e27aeb24c..abd01210f 100644 --- a/base_user_role/i18n/pt_BR.po +++ b/base_user_role/i18n/pt_BR.po @@ -9,7 +9,7 @@ # Paulo Ricardo , 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" diff --git a/base_user_role/i18n/pt_PT.po b/base_user_role/i18n/pt_PT.po index 0b0d06f43..463f26e47 100644 --- a/base_user_role/i18n/pt_PT.po +++ b/base_user_role/i18n/pt_PT.po @@ -7,7 +7,7 @@ # Pedro Castro Silva , 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" diff --git a/base_user_role/i18n/ro.po b/base_user_role/i18n/ro.po index e1cd0f925..e76a33bae 100644 --- a/base_user_role/i18n/ro.po +++ b/base_user_role/i18n/ro.po @@ -8,7 +8,7 @@ # Dorin Hongu , 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" diff --git a/base_user_role/i18n/ru.po b/base_user_role/i18n/ru.po index d7839336e..7e3fa9309 100644 --- a/base_user_role/i18n/ru.po +++ b/base_user_role/i18n/ru.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/sk.po b/base_user_role/i18n/sk.po index 9f9b2787e..849ac4881 100644 --- a/base_user_role/i18n/sk.po +++ b/base_user_role/i18n/sk.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/sl.po b/base_user_role/i18n/sl.po index 4b89d7756..98a8430ec 100644 --- a/base_user_role/i18n/sl.po +++ b/base_user_role/i18n/sl.po @@ -7,7 +7,7 @@ # Matjaž Mozetič , 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" diff --git a/base_user_role/i18n/sr.po b/base_user_role/i18n/sr.po index 1f54f256e..3bf8360a3 100644 --- a/base_user_role/i18n/sr.po +++ b/base_user_role/i18n/sr.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/sr@latin.po b/base_user_role/i18n/sr@latin.po index a46f9613e..44316c3a6 100644 --- a/base_user_role/i18n/sr@latin.po +++ b/base_user_role/i18n/sr@latin.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/sv.po b/base_user_role/i18n/sv.po index 5fa437443..716fdd541 100644 --- a/base_user_role/i18n/sv.po +++ b/base_user_role/i18n/sv.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/th.po b/base_user_role/i18n/th.po index 11392cf64..bdf3b8110 100644 --- a/base_user_role/i18n/th.po +++ b/base_user_role/i18n/th.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/tr.po b/base_user_role/i18n/tr.po index de77e1231..c751d6630 100644 --- a/base_user_role/i18n/tr.po +++ b/base_user_role/i18n/tr.po @@ -7,7 +7,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/uk.po b/base_user_role/i18n/uk.po index 7285101b7..a71c12cd3 100644 --- a/base_user_role/i18n/uk.po +++ b/base_user_role/i18n/uk.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/vi.po b/base_user_role/i18n/vi.po index d0db80c3a..8d2eb2cf9 100644 --- a/base_user_role/i18n/vi.po +++ b/base_user_role/i18n/vi.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/vi_VN.po b/base_user_role/i18n/vi_VN.po index 90313bffa..41dcd97ba 100644 --- a/base_user_role/i18n/vi_VN.po +++ b/base_user_role/i18n/vi_VN.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/i18n/zh_CN.po b/base_user_role/i18n/zh_CN.po index 3954644de..bad848aa7 100644 --- a/base_user_role/i18n/zh_CN.po +++ b/base_user_role/i18n/zh_CN.po @@ -7,7 +7,7 @@ # Jeffery Chen Fan , 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" diff --git a/base_user_role/i18n/zh_TW.po b/base_user_role/i18n/zh_TW.po index b46666206..bedcf60b1 100644 --- a/base_user_role/i18n/zh_TW.po +++ b/base_user_role/i18n/zh_TW.po @@ -6,7 +6,7 @@ # OCA Transbot , 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" diff --git a/base_user_role/models/role.py b/base_user_role/models/role.py index 15ba46dfb..4635d11f2 100644 --- a/base_user_role/models/role.py +++ b/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__) diff --git a/base_user_role/models/user.py b/base_user_role/models/user.py index a15849ced..30f807116 100644 --- a/base_user_role/models/user.py +++ b/base_user_role/models/user.py @@ -2,7 +2,7 @@ # Copyright 2014 ABF OSIELL # 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): diff --git a/base_user_role/tests/test_user_role.py b/base_user_role/tests/test_user_role.py index 08a1f613c..bd4a8cb58 100644 --- a/base_user_role/tests/test_user_role.py +++ b/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) diff --git a/base_user_role/views/role.xml b/base_user_role/views/role.xml index 67e825a1f..6422d9b53 100644 --- a/base_user_role/views/role.xml +++ b/base_user_role/views/role.xml @@ -7,7 +7,7 @@ res.users.role.form res.users.role -
+ diff --git a/setup/base_user_role/odoo/__init__.py b/setup/base_user_role/odoo/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/base_user_role/odoo/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/base_user_role/odoo/addons/__init__.py b/setup/base_user_role/odoo/addons/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/base_user_role/odoo/addons/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/base_user_role/odoo/addons/base_user_role b/setup/base_user_role/odoo/addons/base_user_role new file mode 120000 index 000000000..d32bb0bc3 --- /dev/null +++ b/setup/base_user_role/odoo/addons/base_user_role @@ -0,0 +1 @@ +../../../../base_user_role \ No newline at end of file diff --git a/setup/base_user_role/setup.py b/setup/base_user_role/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/base_user_role/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)