Skip to content

Commit e1bba19

Browse files
committed
[FIX] website_sale,web_editor: fix website sale tour
This commit fixes some inconsistencies in the website_sale tour: - The step "Upload an image" is removed; - The tip position of the Product Name step is placed above the field rather than on the rightside to avoid a horizontal scrollbar. The "No product defined" text position is improved for empty searches. task-2700198 Part-of: odoo#85535
1 parent 95bcc84 commit e1bba19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

addons/website_sale/static/src/js/tours/website_sale_shop.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ odoo.define("website_sale.tour_shop", function (require) {
1919
}, {
2020
trigger: ".modal-dialog #editor_new_product input[type=text]",
2121
content: _t("Enter a name for your new product"),
22-
position: "right",
22+
position: "left",
2323
}, {
2424
trigger: ".modal-footer button.btn-primary.btn-continue",
2525
content: Markup(_t("Click on <em>Continue</em> to create the product.")),
@@ -45,6 +45,7 @@ odoo.define("website_sale.tour_shop", function (require) {
4545
run: function (actions) {
4646
actions.auto(".modal-footer .btn-secondary");
4747
},
48+
auto: true,
4849
}, {
4950
trigger: "button.o_we_add_snippet_btn",
5051
auto: true,

addons/website_sale/views/templates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
</table>
311311
</div>
312312
<t t-else="">
313-
<div class="text-center text-muted">
313+
<div class="text-center text-muted mt128 mb256">
314314
<t t-if="not search">
315315
<h3 class="mt8">No product defined</h3>
316316
<p t-if="category">No product defined in category "<strong t-esc="category.display_name"/>".</p>

0 commit comments

Comments
 (0)