mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] theme_odoo_experts: fix "references" snippet paddings
The snippet was switched to grid mode in this theme but the padding classes on columns were not removed. Related to task-4373543 Part-of: odoo/design-themes#1054 Related: odoo/odoo#189299 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
b2beaaffa0
commit
b03e17be44
@@ -155,6 +155,7 @@ class TestNewPageTemplates(TransactionCase):
|
||||
self.assertGreater(len(view_ids), 1250, "Test should have encountered a lot of views")
|
||||
self.assertFalse(errors, "No error should have been collected")
|
||||
|
||||
# TODO should handle the fact that grid items can't have padding classes
|
||||
def test_render_applied_templates(self):
|
||||
View = self.env['ir.ui.view']
|
||||
errors = []
|
||||
|
||||
@@ -19,27 +19,27 @@
|
||||
|
||||
<!-- Items -->
|
||||
<xpath expr="//div[hasclass('col-lg-2')]" position="attributes">
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="grid-area: 1 / 1 / 3 / 3; z-index: 1;" separator=";"/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('col-lg-2')])[2]" position="attributes">
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="grid-area: 1 / 3 / 3 / 5; z-index: 2;" separator=";"/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('col-lg-2')])[3]" position="attributes">
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="grid-area: 1 / 5 / 3 / 7; z-index: 3;" separator=";"/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('col-lg-2')])[4]" position="attributes">
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="grid-area: 1 / 7 / 3 / 9; z-index: 4;" separator=";"/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('col-lg-2')])[5]" position="attributes">
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="grid-area: 1 / 9 / 3 / 11; z-index: 5;" separator=";"/>
|
||||
</xpath>
|
||||
<xpath expr="(//div[hasclass('col-lg-2')])[6]" position="attributes">
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" separator=" "/>
|
||||
<attribute name="class" add="o_grid_item g-col-lg-2 g-height-2 o_grid_item_image o_cc o_cc2" remove="pt16 pb16" separator=" "/>
|
||||
<attribute name="style" add="grid-area: 1 / 11 / 3 / 13; z-index: 6;" separator=";"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user