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