Skip to content
Closed

15.0 #660

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
aa17c26
[REL] saas-14.5
d-fence Sep 7, 2021
a416e49
[IMP] theme_paptic: update the theme
Brieuc-brd Sep 2, 2021
88b81d4
[IMP] theme_kea: update the theme
xlu-odoo Jul 13, 2021
4ae4060
[REM] theme_kea: remove outdated theme description
xlu-odoo Jul 20, 2021
507844f
[REF] theme_common: normalize XML indentation
qsm-odoo Sep 24, 2021
c3bc687
[IMP] theme_anelusia: update the theme
Brieuc-brd Aug 4, 2021
986029f
[REF] theme_anelusia: remove outdated theme description
Brieuc-brd Aug 5, 2021
46a1d66
[IMP] theme_artists: update the theme
Brieuc-brd Jun 25, 2021
4d13d8a
[REF] theme_artists: remove outdated theme description
Brieuc-brd Jul 9, 2021
a707a09
[IMP] theme_avantgarde: update the theme
karlosvalverde Sep 14, 2021
8ff74d4
[REF] theme_avantgarde: remove outdated theme description
karlosvalverde Sep 14, 2021
3194882
[IMP] theme_beauty: update the theme
Brieuc-brd Aug 11, 2021
a541789
[REF] theme_beauty: remove outdated theme description
Brieuc-brd Aug 11, 2021
afc675f
[REF] theme_bewise: normalize XML indentation
qsm-odoo Sep 24, 2021
ac1f140
[IMP] theme_bistro: update the theme
Cocographique Jun 29, 2021
3faabed
[REF] theme_bistro: remove outdated theme description
Cocographique Jul 9, 2021
1f632d8
[IMP] theme_bookstore: update the theme
Brieuc-brd Jun 16, 2021
a4fe0ea
[REF] theme_bookstore: remove outdated theme description
Brieuc-brd Jul 9, 2021
e6f1c3b
[IMP] theme_clean: update the theme
Brieuc-brd Jul 14, 2021
27adf13
[REF] theme_clean: remove outdated theme description
Brieuc-brd Jul 14, 2021
00982a6
[IMP] theme_cobalt: update the theme
xlu-odoo Aug 4, 2021
3f75d03
[IMP] theme_enark: update the theme
xlu-odoo Jul 22, 2021
76c520e
[REF] theme_enark: remove outdated theme description
xlu-odoo Sep 3, 2021
c801cdb
[IMP] theme_graphene: update the theme
xlu-odoo Jul 28, 2021
a4f2998
[REF] theme_graphene: remove outdated theme description
xlu-odoo Aug 16, 2021
33eace7
[REF] theme_kea: normalize XML indentation
qsm-odoo Sep 24, 2021
0173ac6
[IMP] theme_kiddo: update the theme
karlosvalverde Jun 16, 2021
4acb753
[REF] theme_kiddo: remove outdated theme description
karlosvalverde Sep 15, 2021
0d61d59
[IMP] theme_loftspace: update the theme
Brieuc-brd Jun 7, 2021
284a5e3
[REF] theme_loftspace: remove outdated theme description
Brieuc-brd Jul 9, 2021
a27996e
[IMP] theme_monglia: update the theme
xlu-odoo Aug 11, 2021
24da809
[REF] theme_monglia: remove outdated theme description
xlu-odoo Aug 12, 2021
036df33
[IMP] theme_nano: update the theme
Cocographique Aug 1, 2021
5ed3aa0
[REF] theme_nano: remove outdated theme description
Cocographique Aug 1, 2021
3526927
[IMP] theme_notes: update the theme
Brieuc-brd Jul 6, 2021
3ba172b
[REF] theme_notes: remove outdated theme description
Brieuc-brd Jul 9, 2021
b2ab9ea
[IMP] theme_odoo_experts: update the theme
Brieuc-brd Jul 1, 2021
025c8a3
[REF] theme_odoo_experts: remove outdated theme description
Brieuc-brd Jul 9, 2021
40e8281
[IMP] theme_orchid: update the theme
Brieuc-brd Aug 9, 2021
bb032e7
[REF] theme_orchid: remove outdated theme description
Brieuc-brd Aug 9, 2021
bef2fc7
[REF] theme_paptic: normalize XML indentation
qsm-odoo Sep 24, 2021
42638dc
[IMP] theme_real_estate: update the theme
xlu-odoo Jun 24, 2021
4946a52
[REF] theme_real_estate: remove outdated theme description
xlu-odoo Jul 20, 2021
e18a0ff
[IMP] theme_treehouse: update the theme
Cocographique Jun 23, 2021
33d50fd
[REF] theme_treehouse: remove outdated theme description
Cocographique Jun 30, 2021
de26d7f
[REF] theme_vehicle: normalize XML indentation
qsm-odoo Sep 24, 2021
2a2da47
[IMP] theme_yes: update the theme
edi-odoo Jul 1, 2021
3384ab2
[REF] theme_yes: remove outdated theme description
Cocographique Sep 15, 2021
bbdfbba
[IMP] theme_zap: update the theme
Cocographique Jun 28, 2021
041922b
[REF] theme_zap: remove outdated theme description
Cocographique Jul 5, 2021
18d1f0a
[ADD] theme_aviato: add new theme aviato
xlu-odoo May 28, 2021
b48fe33
[ADD] theme_buzzy: add new theme buzzy
Brieuc-brd Apr 7, 2021
f245398
[FIX] theme_*: move svg preview from iap to design-themes repo
OdooDesign Sep 24, 2021
f244035
[FIX] *: remove yiq threshold overrides
qsm-odoo Sep 27, 2021
285d413
[FIX] theme_*: move snippet lists from iap to design-theme repo
smottet Sep 27, 2021
0539787
[REF] theme_*: inject theme's preferred palette into ui
stefanorigano Sep 27, 2021
2ed70c9
[FIX] theme_nano: remove breaking container padding removals
qsm-odoo Oct 4, 2021
924d152
[REL] 15.0
d-fence Oct 5, 2021
9e62a84
[FIX] theme_yes: prevent scroll button editing
bvr-odoo Oct 15, 2021
1b4b65f
[FIX] *: increase text contrast for cover snippet
qsm-odoo Nov 4, 2021
65aefeb
[FIX] theme_vehicle: fix btn-lg size
xlu-odoo Sep 23, 2021
208f613
[FIX] test_themes: add a test which goes over all theme tours
qsm-odoo May 12, 2021
545cf00
[FIX] theme_*: fix svg previews readability on safari
xlu-odoo Oct 14, 2021
7d05d98
[I18N] *: export source terms
mart-e Dec 13, 2021
bef7e13
[I18N] Update translation terms from Transifex
C3POdoo Dec 18, 2021
77b2b97
[FIX] theme_*: fix the activation and deactivation of assets
bvr-odoo Dec 9, 2021
b362a2c
[I18N] Update translation terms from Transifex
C3POdoo Dec 25, 2021
9a289ea
[FIX] theme_*: enable footer/header template correctly
rdeodoo Dec 9, 2021
7b7a317
[I18N] Update translation terms from Transifex
C3POdoo Jan 8, 2022
25b46ea
[I18N] Update translation terms from Transifex
C3POdoo Jan 15, 2022
13ece4b
[I18N] Update translation terms from Transifex
C3POdoo Jan 22, 2022
af87401
[I18N] Update translation terms from Transifex
C3POdoo Jan 29, 2022
34f01f5
[I18N] Update translation terms from Transifex
C3POdoo Feb 12, 2022
16bff64
[I18N] Update translation terms from Transifex
C3POdoo Mar 12, 2022
f403f25
[FIX] theme_*: use correct header SCSS variable
xlu-odoo Dec 13, 2021
cf5300f
[IMP] test_themes: add a test for the `_post_copy()` community fix
rdeodoo May 10, 2022
65baa9b
[FIX] theme_avantgarde: fix color variable in some snippets
karlosvalverde May 25, 2022
96e713a
[FIX] test_themes: fix theme_upgrade standalone test
rdeodoo Aug 30, 2022
d9bb32b
[FIX] theme_bookstore: correct shape data JSON value
can-odoo Oct 14, 2022
600f3b6
[FIX] test_themes: call post_copy again on test_themes' themes
rdeodoo Oct 27, 2022
f3bd5ab
[FIX] theme_kea: fix the data of shape on s_picture in KEA theme
detrouxdev Dec 5, 2022
6232ec4
[FIX] theme_clean: remove the `content` class from the Carousel rows
sobo-odoo Oct 7, 2022
0fa60a6
[I18N] migrate to new transifex api
mart-e Feb 24, 2023
56a04f3
[IMP] theme_yes: change description of masonry snippet
can-odoo Mar 29, 2023
1f9440e
yes
May 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/custom_addons.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 37 additions & 103 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,204 +1,138 @@
[main]
host = https://www.transifex.com
type = PO

[odoo-12-theme.theme_anelusia]
[o:odoo:p:odoo-15-theme:r:theme_anelusia]
file_filter = theme_anelusia/i18n/<lang>.po
source_file = theme_anelusia/i18n/theme_anelusia.pot
source_lang = en

[odoo-12-theme.theme_anelusia_sale]
file_filter = theme_anelusia_sale/i18n/<lang>.po
source_file = theme_anelusia_sale/i18n/theme_anelusia_sale.pot
source_lang = en

[odoo-12-theme.theme_artists]
[o:odoo:p:odoo-15-theme:r:theme_artists]
file_filter = theme_artists/i18n/<lang>.po
source_file = theme_artists/i18n/theme_artists.pot
source_lang = en

[odoo-12-theme.theme_artists_sale]
file_filter = theme_artists_sale/i18n/<lang>.po
source_file = theme_artists_sale/i18n/theme_artists_sale.pot
source_lang = en

[odoo-12-theme.theme_avantgarde]
[o:odoo:p:odoo-15-theme:r:theme_avantgarde]
file_filter = theme_avantgarde/i18n/<lang>.po
source_file = theme_avantgarde/i18n/theme_avantgarde.pot
source_lang = en

[odoo-12-theme.theme_beauty]
file_filter = theme_beauty/i18n/<lang>.po
source_file = theme_beauty/i18n/theme_beauty.pot
[o:odoo:p:odoo-15-theme:r:theme_aviato]
file_filter = theme_aviato/i18n/<lang>.po
source_file = theme_aviato/i18n/theme_aviato.pot
source_lang = en

[odoo-12-theme.theme_beauty_sale]
file_filter = theme_beauty_sale/i18n/<lang>.po
source_file = theme_beauty_sale/i18n/theme_beauty_sale.pot
[o:odoo:p:odoo-15-theme:r:theme_beauty]
file_filter = theme_beauty/i18n/<lang>.po
source_file = theme_beauty/i18n/theme_beauty.pot
source_lang = en

[odoo-12-theme.theme_bewise]
[o:odoo:p:odoo-15-theme:r:theme_bewise]
file_filter = theme_bewise/i18n/<lang>.po
source_file = theme_bewise/i18n/theme_bewise.pot
source_lang = en

[odoo-12-theme.theme_bistro]
[o:odoo:p:odoo-15-theme:r:theme_bistro]
file_filter = theme_bistro/i18n/<lang>.po
source_file = theme_bistro/i18n/theme_bistro.pot
source_lang = en

[odoo-12-theme.theme_bookstore]
[o:odoo:p:odoo-15-theme:r:theme_bookstore]
file_filter = theme_bookstore/i18n/<lang>.po
source_file = theme_bookstore/i18n/theme_bookstore.pot
source_lang = en

[odoo-12-theme.theme_bookstore_sale]
file_filter = theme_bookstore_sale/i18n/<lang>.po
source_file = theme_bookstore_sale/i18n/theme_bookstore_sale.pot
[o:odoo:p:odoo-15-theme:r:theme_buzzy]
file_filter = theme_buzzy/i18n/<lang>.po
source_file = theme_buzzy/i18n/theme_buzzy.pot
source_lang = en

[odoo-12-theme.theme_clean]
[o:odoo:p:odoo-15-theme:r:theme_clean]
file_filter = theme_clean/i18n/<lang>.po
source_file = theme_clean/i18n/theme_clean.pot
source_lang = en

[odoo-12-theme.theme_common]
file_filter = theme_common/i18n/<lang>.po
source_file = theme_common/i18n/theme_common.pot
[o:odoo:p:odoo-15-theme:r:theme_cobalt]
file_filter = theme_cobalt/i18n/<lang>.po
source_file = theme_cobalt/i18n/theme_cobalt.pot
source_lang = en

[odoo-12-theme.theme_enark]
[o:odoo:p:odoo-15-theme:r:theme_enark]
file_filter = theme_enark/i18n/<lang>.po
source_file = theme_enark/i18n/theme_enark.pot
source_lang = en

[odoo-12-theme.theme_graphene]
[o:odoo:p:odoo-15-theme:r:theme_graphene]
file_filter = theme_graphene/i18n/<lang>.po
source_file = theme_graphene/i18n/theme_graphene.pot
source_lang = en

[odoo-12-theme.theme_graphene_blog]
file_filter = theme_graphene_blog/i18n/<lang>.po
source_file = theme_graphene_blog/i18n/theme_graphene_blog.pot
source_lang = en

[odoo-12-theme.theme_kea]
[o:odoo:p:odoo-15-theme:r:theme_kea]
file_filter = theme_kea/i18n/<lang>.po
source_file = theme_kea/i18n/theme_kea.pot
source_lang = en

[odoo-12-theme.theme_kea_sale]
file_filter = theme_kea_sale/i18n/<lang>.po
source_file = theme_kea_sale/i18n/theme_kea_sale.pot
source_lang = en

[odoo-12-theme.theme_kiddo]
[o:odoo:p:odoo-15-theme:r:theme_kiddo]
file_filter = theme_kiddo/i18n/<lang>.po
source_file = theme_kiddo/i18n/theme_kiddo.pot
source_lang = en

[odoo-12-theme.theme_kiddo_sale]
file_filter = theme_kiddo_sale/i18n/<lang>.po
source_file = theme_kiddo_sale/i18n/theme_kiddo_sale.pot
source_lang = en

[odoo-12-theme.theme_loftspace]
[o:odoo:p:odoo-15-theme:r:theme_loftspace]
file_filter = theme_loftspace/i18n/<lang>.po
source_file = theme_loftspace/i18n/theme_loftspace.pot
source_lang = en

[odoo-12-theme.theme_loftspace_sale]
file_filter = theme_loftspace_sale/i18n/<lang>.po
source_file = theme_loftspace_sale/i18n/theme_loftspace_sale.pot
source_lang = en

[odoo-12-theme.theme_monglia]
[o:odoo:p:odoo-15-theme:r:theme_monglia]
file_filter = theme_monglia/i18n/<lang>.po
source_file = theme_monglia/i18n/theme_monglia.pot
source_lang = en

[odoo-12-theme.theme_monglia_sale]
file_filter = theme_monglia_sale/i18n/<lang>.po
source_file = theme_monglia_sale/i18n/theme_monglia_sale.pot
source_lang = en

[odoo-12-theme.theme_nano]
[o:odoo:p:odoo-15-theme:r:theme_nano]
file_filter = theme_nano/i18n/<lang>.po
source_file = theme_nano/i18n/theme_nano.pot
source_lang = en

[odoo-12-theme.theme_notes]
[o:odoo:p:odoo-15-theme:r:theme_notes]
file_filter = theme_notes/i18n/<lang>.po
source_file = theme_notes/i18n/theme_notes.pot
source_lang = en

[odoo-12-theme.theme_notes_sale]
file_filter = theme_notes_sale/i18n/<lang>.po
source_file = theme_notes_sale/i18n/theme_notes_sale.pot
source_lang = en

[odoo-12-theme.theme_odoo_experts]
[o:odoo:p:odoo-15-theme:r:theme_odoo_experts]
file_filter = theme_odoo_experts/i18n/<lang>.po
source_file = theme_odoo_experts/i18n/theme_odoo_experts.pot
source_lang = en

[odoo-12-theme.theme_odoo_experts_sale]
file_filter = theme_odoo_experts_sale/i18n/<lang>.po
source_file = theme_odoo_experts_sale/i18n/theme_odoo_experts_sale.pot
source_lang = en

[odoo-12-theme.theme_orchid]
[o:odoo:p:odoo-15-theme:r:theme_orchid]
file_filter = theme_orchid/i18n/<lang>.po
source_file = theme_orchid/i18n/theme_orchid.pot
source_lang = en

[odoo-12-theme.theme_orchid_sale]
file_filter = theme_orchid_sale/i18n/<lang>.po
source_file = theme_orchid_sale/i18n/theme_orchid_sale.pot
[o:odoo:p:odoo-15-theme:r:theme_paptic]
file_filter = theme_paptic/i18n/<lang>.po
source_file = theme_paptic/i18n/theme_paptic.pot
source_lang = en

[odoo-12-theme.theme_real_estate]
[o:odoo:p:odoo-15-theme:r:theme_real_estate]
file_filter = theme_real_estate/i18n/<lang>.po
source_file = theme_real_estate/i18n/theme_real_estate.pot
source_lang = en

[odoo-12-theme.theme_real_estate_sale]
file_filter = theme_real_estate_sale/i18n/<lang>.po
source_file = theme_real_estate_sale/i18n/theme_real_estate_sale.pot
source_lang = en

[odoo-12-theme.theme_treehouse]
[o:odoo:p:odoo-15-theme:r:theme_treehouse]
file_filter = theme_treehouse/i18n/<lang>.po
source_file = theme_treehouse/i18n/theme_treehouse.pot
source_lang = en

[odoo-12-theme.theme_vehicle]
[o:odoo:p:odoo-15-theme:r:theme_vehicle]
file_filter = theme_vehicle/i18n/<lang>.po
source_file = theme_vehicle/i18n/theme_vehicle.pot
source_lang = en

[odoo-12-theme.theme_vehicle_sale]
file_filter = theme_vehicle_sale/i18n/<lang>.po
source_file = theme_vehicle_sale/i18n/theme_vehicle_sale.pot
source_lang = en

[odoo-12-theme.theme_yes]
[o:odoo:p:odoo-15-theme:r:theme_yes]
file_filter = theme_yes/i18n/<lang>.po
source_file = theme_yes/i18n/theme_yes.pot
source_lang = en

[odoo-12-theme.theme_yes_sale]
file_filter = theme_yes_sale/i18n/<lang>.po
source_file = theme_yes_sale/i18n/theme_yes_sale.pot
source_lang = en

[odoo-12-theme.theme_zap]
[o:odoo:p:odoo-15-theme:r:theme_zap]
file_filter = theme_zap/i18n/<lang>.po
source_file = theme_zap/i18n/theme_zap.pot
source_lang = en

[odoo-12-theme.website_animate]
file_filter = website_animate/i18n/<lang>.po
source_file = website_animate/i18n/website_animate.pot
source_lang = en

2 changes: 1 addition & 1 deletion test_themes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ def post_init_hook(cr, registry):
'record': website,
'noupdate': True, # Avoid unlink on -u
})
theme._theme_get_stream_themes()._theme_load(website)
theme.with_context(apply_new_theme=True)._theme_get_stream_themes()._theme_load(website)
env['ir.model.data']._update_xmlids(xmlids)
2 changes: 2 additions & 0 deletions test_themes/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
'theme_anelusia',
'theme_artists',
'theme_avantgarde',
'theme_aviato',
'theme_beauty',
'theme_bewise',
'theme_bistro',
'theme_bookstore',
'theme_buzzy',
'theme_clean',
'theme_cobalt',
'theme_enark',
Expand Down
1 change: 1 addition & 0 deletions test_themes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from . import test_crawl
from . import test_theme_upgrade
13 changes: 9 additions & 4 deletions test_themes/tests/test_crawl.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

import unittest

from odoo.tests import HttpCase, tagged


Expand Down Expand Up @@ -40,9 +38,16 @@ def test_crawling():
self.authenticate('admin', 'admin')
test_crawling()

# Does not work without editor fix but really useful to build the pages automatically with cr.commit()
@unittest.skip
# Note: this test is also really useful to build the default pages
# automatically by adding cr.commit() at the end of the tour
def test_02_homepage_tour_every_theme(self):
# TODO All the theme tours that are runned during this test should be
# improved so that each step properly checks that the previous step
# actually had an effect (as those tours are normally made to display to
# the user and were not designed for testing). However, this is already
# really useful as only checking if *entering* edit mode in each theme
# does not crash is already covering most issues that can be created
# when designing a theme at the moment.
Website = self.env['website']
websites_themes = Website.get_test_themes_websites()
for website in websites_themes:
Expand Down
60 changes: 60 additions & 0 deletions test_themes/tests/test_theme_upgrade.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# -*- coding: utf-8 -*-

from odoo.addons.website.tools import MockRequest
from odoo.tests import standalone


@standalone('theme_upgrade', 'website_standalone')
def test_01_theme_upgrade_post_copy(env):
""" This test ensures the theme `_post_copy()` method is only called when a
theme is installed for the first time on a website and not when the theme is
updated on that website.
"""
# 1. Setup
website = env['website'].search([], limit=1)
Website = env['website'].with_context(website_id=website.id)

# Get rid of as many website as we can, any website will drastically slows
# down the test as when updating Theme Nano, it will update Theme Common
# which is applied on every site having a theme. It will then update all
# those websites.
Website.get_test_themes_websites().unlink()
for w in Website.search([('theme_id', '!=', False), ('id', '!=', website.id)]):
try:
w.unlink()
except Exception:
pass

ofs_specific_view = Website.viewref('website.option_footer_scrolltop')
fls_specific_view = Website.viewref('portal.footer_language_selector')
theme_nano_module = env.ref('base.module_theme_nano')

def _simulate_user_manual_change():
# Change some website options that will be changed by Theme Nano
ofs_specific_view.active = False
fls_specific_view.active = True

# 2. Simulate some website option change made by the user
_simulate_user_manual_change()

# 3. Simulate user choosing a new theme for his website
with MockRequest(env, website=website):
theme_nano_module.with_context(website_id=website.id).button_choose_theme()

assert Website.viewref('website.option_footer_scrolltop').active is True, \
"Theme Nano custo should be applied"
assert Website.viewref('portal.footer_language_selector').active is False, \
"Theme Nano custo should be applied (2)"

# 4. Simulate some website option change made by the user, again
_simulate_user_manual_change()

# 5. Upgrade Theme Nano
theme_nano_module.button_immediate_upgrade()
env.reset() # clear the set of environments
env = env() # get an environment that refers to the new registry

assert Website.viewref('website.option_footer_scrolltop').active is False, \
"Theme Nano custo should NOT be applied"
assert Website.viewref('portal.footer_language_selector').active is True, \
"Theme Nano custo should NOT be applied (2)"
Loading