[FIX] theme_*: fix masonry xpath

*: vehicle, yes, zap

Commit [1] modified the website.s_masonry_block template and makes it
call website.s_masonry_block_default_template. The theme custo xpaths
should now be done in that template instead.

[1]: https://github.com/odoo/odoo/commit/c90ab7b6646b603dcd0a49387b5eeba60ce17f59

closes odoo/design-themes#493

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Sébastien Mottet (oms)
2021-09-02 14:57:48 +00:00
committed by qsm-odoo
parent 2be2841692
commit 57e63ad290
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@
</template> </template>
<!-- ======== MASONERY BLOCK ======== --> <!-- ======== MASONERY BLOCK ======== -->
<template id="s_masonry_block" inherit_id="website.s_masonry_block" name="Vehicle s_masonry_block"> <template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template" name="Vehicle s_masonry_block">
<xpath expr="//p" position="replace"/> <xpath expr="//p" position="replace"/>
<xpath expr="//div[hasclass('h-100')]/div//h3" position="replace"> <xpath expr="//div[hasclass('h-100')]/div//h3" position="replace">
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<template id="s_masonry_block" inherit_id="website.s_masonry_block"> <template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template">
<!-- Column 1 --> <!-- Column 1 -->
<xpath expr="(//div[hasclass('col-lg-6')])[3]" position="replace"> <xpath expr="(//div[hasclass('col-lg-6')])[3]" position="replace">
<div class="col-lg-6 o_cc o_cc4 text-center"> <div class="col-lg-6 o_cc o_cc4 text-center">
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<template id="s_masonry_block" inherit_id="website.s_masonry_block"> <template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template">
<!-- Block #01 --> <!-- Block #01 -->
<xpath expr="//div[hasclass('col-lg-6')][2]//div[hasclass('col-lg-6')]/*" position="before"> <xpath expr="//div[hasclass('col-lg-6')][2]//div[hasclass('col-lg-6')]/*" position="before">
<i class="fa fa-star fa-1x text-secondary rounded shadow-sm mx-auto mb-3"/> <i class="fa fa-star fa-1x text-secondary rounded shadow-sm mx-auto mb-3"/>