[FIX] website_form_editor: relational fields search_read

The fields were mistaken for the domain since 16972b0.
Added new tour step trying to add a relational field.
Also fixed wrong tour step labels.
This commit is contained in:
David Monjoie
2015-09-25 13:45:04 +02:00
parent 24a192b1f5
commit 6f77a29e2e
2 changed files with 31 additions and 4 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ odoo.define('website_form_editor', function (require) {
model: field.relation,
method: 'search_read',
args: [
// field.domain, TODO: Handle field domains
[], // field.domain, TODO: Handle field domains
['display_name']
],
kwargs:{"context": base.get_context()}
+30 -3
View File
@@ -109,7 +109,7 @@ odoo.define('website_form_editor.tour', function(require) {
element: ".oe_overlay_options:visible li[data-website_form_field_modal] a"
},
{
title: "Select the subject field",
title: "Select the record_name field",
element: "select[name='field_selection']",
sampleText: "record_name"
},
@@ -154,7 +154,7 @@ odoo.define('website_form_editor.tour', function(require) {
element: ".oe_overlay_options:visible li[data-website_form_field_modal] a"
},
{
title: "Select the subject field",
title: "Select the body_html field",
element: "select[name='field_selection']",
sampleText: "body_html"
},
@@ -184,6 +184,33 @@ odoo.define('website_form_editor.tour', function(require) {
":has(label:contains('Your Message'))"
},
// Add recipient_ids relational field
{
title: "Click on Form snippet",
element: ".s_website_form[data-model_name]"
},
{
title: "Click on Customize",
element: ".oe_overlay_options:visible a[title='Customize']"
},
{
title: "Click on Add a model field",
element: ".oe_overlay_options:visible li[data-website_form_field_modal] a"
},
{
title: "Select the recipient_ids field",
element: "select[name='field_selection']",
sampleText: "recipient_ids"
},
{
title: "Click on Save",
element: ".modal-footer #modal-save"
},
{
title: "Check the resulting field",
waitFor: ".form-field:has(.control-label:contains('To (Partners)'))"
},
// Add a custom multiple checkboxes field
{
title: "Click on Form snippet",
@@ -434,7 +461,7 @@ odoo.define('website_form_editor.tour', function(require) {
element: ".oe_overlay_options:visible li[data-website_form_field_modal] a"
},
{
title: "Select the subject field",
title: "Select the attachment_ids field",
element: "select[name='field_selection']",
sampleText: "attachment_ids"
},