bug fix test-ribbon
							parent
							
								
									8a0d32434e
								
							
						
					
					
						commit
						2570bc4df5
					
				|  | @ -6,7 +6,7 @@ | |||
| 
 | ||||
| { | ||||
|     'name': "Web Environment Ribbon", | ||||
|     'version': '11.0.1.0.0', | ||||
|     'version': '11.0.1.0.2', | ||||
|     'category': 'Web', | ||||
|     'author': 'Francesco OpenCode Apruzzese, ' | ||||
|               'Tecnativa, ' | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # Translation of Odoo Server. | ||||
| # This file contains the translation of the following modules: | ||||
| # * web_environment_ribbon | ||||
| #  | ||||
| # | ||||
| # Translators: | ||||
| # Niki Waibel <niki.waibel@gmail.com>, 2017 | ||||
| msgid "" | ||||
|  | @ -12,10 +12,10 @@ msgstr "" | |||
| "PO-Revision-Date: 2017-07-13 16:06+0000\n" | ||||
| "Last-Translator: Niki Waibel <niki.waibel@gmail.com>, 2017\n" | ||||
| "Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" | ||||
| "Language: de\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: \n" | ||||
| "Language: de\n" | ||||
| "Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||||
| 
 | ||||
| #. module: web_environment_ribbon | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # Translation of Odoo Server. | ||||
| # This file contains the translation of the following modules: | ||||
| # * web_environment_ribbon | ||||
| #  | ||||
| # | ||||
| # Translators: | ||||
| # OCA Transbot <transbot@odoo-community.org>, 2017 | ||||
| # Quentin THEURET <odoo@kerpeo.com>, 2017 | ||||
|  | @ -13,10 +13,10 @@ msgstr "" | |||
| "PO-Revision-Date: 2017-07-26 02:44+0000\n" | ||||
| "Last-Translator: Quentin THEURET <odoo@kerpeo.com>, 2017\n" | ||||
| "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" | ||||
| "Language: fr\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: \n" | ||||
| "Language: fr\n" | ||||
| "Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||||
| 
 | ||||
| #. module: web_environment_ribbon | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # Translation of Odoo Server. | ||||
| # This file contains the translation of the following modules: | ||||
| # * web_environment_ribbon | ||||
| #  | ||||
| # | ||||
| # Translators: | ||||
| # Bole <bole@dajmi5.com>, 2017 | ||||
| msgid "" | ||||
|  | @ -12,11 +12,12 @@ msgstr "" | |||
| "PO-Revision-Date: 2017-07-13 16:06+0000\n" | ||||
| "Last-Translator: Bole <bole@dajmi5.com>, 2017\n" | ||||
| "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" | ||||
| "Language: hr\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: \n" | ||||
| "Language: hr\n" | ||||
| "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" | ||||
| "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" | ||||
| "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" | ||||
| 
 | ||||
| #. module: web_environment_ribbon | ||||
| #: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend_display_name | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # Translation of Odoo Server. | ||||
| # This file contains the translation of the following modules: | ||||
| # * web_environment_ribbon | ||||
| #  | ||||
| # | ||||
| # Translators: | ||||
| # Peter Hageman <hageman.p@gmail.com>, 2017 | ||||
| msgid "" | ||||
|  | @ -11,11 +11,12 @@ msgstr "" | |||
| "POT-Creation-Date: 2017-07-13 16:06+0000\n" | ||||
| "PO-Revision-Date: 2017-07-13 16:06+0000\n" | ||||
| "Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n" | ||||
| "Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" | ||||
| "Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" | ||||
| "teams/23907/nl_NL/)\n" | ||||
| "Language: nl_NL\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: \n" | ||||
| "Language: nl_NL\n" | ||||
| "Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||||
| 
 | ||||
| #. module: web_environment_ribbon | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # Translation of Odoo Server. | ||||
| # This file contains the translation of the following modules: | ||||
| # * web_environment_ribbon | ||||
| #  | ||||
| # | ||||
| # Translators: | ||||
| # Rodrigo de Almeida Sottomaior Macedo <rmsolucoeseminformatic4@gmail.com>, 2017 | ||||
| msgid "" | ||||
|  | @ -9,14 +9,16 @@ msgstr "" | |||
| "Project-Id-Version: Odoo Server 10.0\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2017-07-13 16:06+0000\n" | ||||
| "PO-Revision-Date: 2017-07-13 16:06+0000\n" | ||||
| "Last-Translator: Rodrigo de Almeida Sottomaior Macedo <rmsolucoeseminformatic4@gmail.com>, 2017\n" | ||||
| "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" | ||||
| "PO-Revision-Date: 2018-08-03 12:34+0000\n" | ||||
| "Last-Translator: Rodrigo Macedo <rmsolucoeseminformatic4@gmail.com>\n" | ||||
| "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" | ||||
| "23907/pt_BR/)\n" | ||||
| "Language: pt_BR\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: \n" | ||||
| "Language: pt_BR\n" | ||||
| "Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||||
| "Plural-Forms: nplurals=2; plural=n > 1;\n" | ||||
| "X-Generator: Weblate 3.1.1\n" | ||||
| 
 | ||||
| #. module: web_environment_ribbon | ||||
| #: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend_display_name | ||||
|  | @ -36,4 +38,4 @@ msgstr "Última Modificação em" | |||
| #. module: web_environment_ribbon | ||||
| #: model:ir.model,name:web_environment_ribbon.model_web_environment_ribbon_backend | ||||
| msgid "Web Environment Ribbon Backend" | ||||
| msgstr "" | ||||
| msgstr "Back-end da fita do ambiente da Web" | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # Translation of Odoo Server. | ||||
| # This file contains the translation of the following modules: | ||||
| # * web_environment_ribbon | ||||
| #  | ||||
| # | ||||
| # Translators: | ||||
| # OCA Transbot <transbot@odoo-community.org>, 2017 | ||||
| msgid "" | ||||
|  | @ -12,11 +12,12 @@ msgstr "" | |||
| "PO-Revision-Date: 2017-07-13 16:06+0000\n" | ||||
| "Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n" | ||||
| "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" | ||||
| "Language: sl\n" | ||||
| "MIME-Version: 1.0\n" | ||||
| "Content-Type: text/plain; charset=UTF-8\n" | ||||
| "Content-Transfer-Encoding: \n" | ||||
| "Language: sl\n" | ||||
| "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" | ||||
| "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" | ||||
| "%100==4 ? 2 : 3);\n" | ||||
| 
 | ||||
| #. module: web_environment_ribbon | ||||
| #: model:ir.model.fields,field_description:web_environment_ribbon.field_web_environment_ribbon_backend_display_name | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # Copyright 2017 ACSONE SA/NV | ||||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||||
| 
 | ||||
| from openerp import api, models | ||||
| from odoo import api, models | ||||
| 
 | ||||
| 
 | ||||
| class WebEnvironmentRibbonBackend(models.AbstractModel): | ||||
|  | @ -17,7 +17,7 @@ class WebEnvironmentRibbonBackend(models.AbstractModel): | |||
| 
 | ||||
|     @api.model | ||||
|     def _prepare_ribbon_name(self): | ||||
|         name_tmpl = self.env['ir.config_parameter'].get_param('ribbon.name') | ||||
|         name_tmpl = self.env['ir.config_parameter'].sudo().get_param('ribbon.name') | ||||
|         vals = self._prepare_ribbon_format_vals() | ||||
|         return name_tmpl.format(**vals) | ||||
| 
 | ||||
|  | @ -31,7 +31,7 @@ class WebEnvironmentRibbonBackend(models.AbstractModel): | |||
|         name = self._prepare_ribbon_name() | ||||
|         return { | ||||
|             'name': name, | ||||
|             'color': ir_config_model.get_param('ribbon.color'), | ||||
|             'background_color': ir_config_model.get_param( | ||||
|             'color': ir_config_model.sudo().get_param('ribbon.color'), | ||||
|             'background_color': ir_config_model.sudo().get_param( | ||||
|                 'ribbon.background.color'), | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue