Skip to content
Snippets Groups Projects
Commit 88e910e1 authored by qsm-odoo's avatar qsm-odoo Committed by Jeremy Kersten
Browse files

[REF] website, *: merge website_theme_install into website

* theme_bootswatch, theme_default, website_theme_install
parent d57cd2d3
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 3607 deletions
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_theme_install
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 11:03+0000\n"
"PO-Revision-Date: 2017-02-15 11:03+0000\n"
"Language-Team: Slovenian (https://www.transifex.com/odoo/teams/41243/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"
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Author"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Category"
msgstr ""
#. module: website_theme_install
#: model:ir.actions.act_window,name:website_theme_install.theme_install_kanban_action
msgid "Choose Your Theme"
msgstr ""
#. module: website_theme_install
#: model:ir.actions.server,name:website_theme_install.theme_install_todo_action
msgid "Config: Choose Your Theme"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_kanban
msgid "Install"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_kanban
msgid "Live Preview"
msgstr ""
#. module: website_theme_install
#: model:ir.model,name:website_theme_install.model_ir_module_module
msgid "Module"
msgstr ""
#. module: website_theme_install
#: model:ir.model.fields,field_description:website_theme_install.field_ir_module_module_image_ids
msgid "Screenshots"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.customize_modal
msgid "See themes here"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Theme"
msgstr ""
This diff is collapsed.
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_theme_install
#
# Translators:
# Martin Trigaux <mat@odoo.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 11:03+0000\n"
"PO-Revision-Date: 2017-02-15 11:03+0000\n"
"Last-Translator: Martin Trigaux <mat@odoo.com>, 2017\n"
"Language-Team: Serbian (Latin) (https://www.transifex.com/odoo/teams/41243/sr%40latin/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sr@latin\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: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Author"
msgstr "Autor"
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Category"
msgstr "Категорија"
#. module: website_theme_install
#: model:ir.actions.act_window,name:website_theme_install.theme_install_kanban_action
msgid "Choose Your Theme"
msgstr ""
#. module: website_theme_install
#: model:ir.actions.server,name:website_theme_install.theme_install_todo_action
msgid "Config: Choose Your Theme"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_kanban
msgid "Install"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_kanban
msgid "Live Preview"
msgstr ""
#. module: website_theme_install
#: model:ir.model,name:website_theme_install.model_ir_module_module
msgid "Module"
msgstr "Modul"
#. module: website_theme_install
#: model:ir.model.fields,field_description:website_theme_install.field_ir_module_module_image_ids
msgid "Screenshots"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.customize_modal
msgid "See themes here"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Theme"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_theme_install
#
# Translators:
# Martin Trigaux <mat@odoo.com>, 2017
# Kim Asplund <kim.asplund@gmail.com>, 2017
# Anders Wallenquist <anders.wallenquist@vertel.se>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.saas~14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-15 11:03+0000\n"
"PO-Revision-Date: 2017-02-15 11:03+0000\n"
"Last-Translator: Anders Wallenquist <anders.wallenquist@vertel.se>, 2017\n"
"Language-Team: Swedish (https://www.transifex.com/odoo/teams/41243/sv/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sv\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Author"
msgstr "Upphovsman"
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Category"
msgstr "Kategori"
#. module: website_theme_install
#: model:ir.actions.act_window,name:website_theme_install.theme_install_kanban_action
msgid "Choose Your Theme"
msgstr "Välj ditt tema"
#. module: website_theme_install
#: model:ir.actions.server,name:website_theme_install.theme_install_todo_action
msgid "Config: Choose Your Theme"
msgstr ""
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_kanban
msgid "Install"
msgstr "Installera"
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_kanban
msgid "Live Preview"
msgstr "Förhandsvisning"
#. module: website_theme_install
#: model:ir.model,name:website_theme_install.model_ir_module_module
msgid "Module"
msgstr "Modul"
#. module: website_theme_install
#: model:ir.model.fields,field_description:website_theme_install.field_ir_module_module_image_ids
msgid "Screenshots"
msgstr "Skärmdump"
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.customize_modal
msgid "See themes here"
msgstr "Titta på teman här"
#. module: website_theme_install
#: model_terms:ir.ui.view,arch_db:website_theme_install.theme_view_search
msgid "Theme"
msgstr "Tema"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import ir_module_module
from . import res_company
from . import res_config_settings
from . import theme_models
from . import website
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
from ast import literal_eval
class ResCompany(models.Model):
_inherit = 'res.company'
def _compute_website_theme_onboarding_done(self):
""" The step is marked as done if one theme is installed. """
# we need the same domain as the existing action
action = self.env.ref('website_theme_install.theme_install_kanban_action').read()[0]
domain = literal_eval(action['domain'])
domain.append(('state', '=', 'installed'))
installed_themes_count = self.env['ir.module.module'].sudo().search_count(domain)
for record in self:
record.website_theme_onboarding_done = (installed_themes_count > 0)
website_theme_onboarding_done = fields.Boolean("Onboarding website theme step done",
compute='_compute_website_theme_onboarding_done')
@api.model
def action_open_website_theme_selector(self):
action = self.env.ref('website_theme_install.theme_install_kanban_action').read()[0]
action['target'] = 'new'
return action
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
addons/website_theme_install/static/description/icon.png

7.75 KiB

This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment