Files
design-themes/theme_test_custo/data/shapes.xml
T
qsm-odoo 0049109fda [FIX] theme_test_custo: do not inherit from we options but website ones
(Otherwise you could impact other apps like mass mailing). In fact this
should have been part of [1] as before you were *required* to inherit
from web_editor.snippet_options as it was t-called inside the website
snippet_options template.

Note: this new test theme was only recently introduced with [2].

[1]: https://github.com/odoo/design-themes/commit/0ce8547d34f08eb5a27329c66e53828e7b039ef1
[2]: https://github.com/odoo/design-themes/commit/0e2497b8e84eab8957028f4d63ff0899a9fe6ab3

closes odoo/design-themes#600

X-original-commit: 4f3b5b9f29
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-10-06 23:14:11 +02:00

39 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Background Shape -->
<template id="snippet_options_background_options" inherit_id="website.snippet_options_background_options" name="Background Shape Custom Option">
<xpath expr="//we-select-pager[hasclass('o_we_shape_menu')]/we-select-page[last()]" position="after">
<we-select-page string="Custom Shapes">
<we-button data-shape="theme_test_custo/hexagons/01" data-select-label="Hexagon 01"/>
<we-button data-shape="theme_test_custo/curves/01" data-select-label="Curve 01"/>
</we-select-page>
</xpath>
</template>
<record id="shape_hexagon_01" model="theme.ir.attachment">
<field name="name">Hexagon Shape 01</field>
<field name="key">theme_test_custo.shape_hexagon_01</field>
<field name="url">/web_editor/shape/illustration/hexagons/01.svg</field>
</record>
<record id="shape_curve_01" model="theme.ir.attachment">
<field name="name">Curve Shape 01</field>
<field name="key">theme_test_custo.shape_curve_01</field>
<field name="url">/web_editor/shape/illustration/curves/01.svg</field>
</record>
<!-- Image Shape -->
<template id="snippet_options" inherit_id="website.snippet_options" name="Image Shape Custom Option">
<xpath expr="//we-select-pager[@data-name='shape_img_opt']/we-select-page[last()]" position="after">
<we-select-page string="Custom Shapes">
<we-button data-set-img-shape="theme_test_custo/blob/01" data-select-label="Blob 01"/>
</we-select-page>
</xpath>
</template>
<record id="img_shape_blob_01" model="theme.ir.attachment">
<field name="name">Blob Shape 01</field>
<field name="key">theme_test_custo.img_shape_blob_01</field>
<field name="url">/web_editor/image_shape/blob/01.svg</field>
</record>
</odoo>