mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-24 10:52:06 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -0,0 +1,47 @@
|
|||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry.category("web_tour.tours").add('test_repair_without_product_in_parts', {
|
||||
|
||||
steps: () => [
|
||||
{
|
||||
content: "Click product_id field",
|
||||
trigger: "div[name='move_ids'] .o_data_row td.o_data_cell[name=product_id]",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Unset the product",
|
||||
trigger: "div[name=move_ids] div[name=product_id] input",
|
||||
run: "edit",
|
||||
},
|
||||
{
|
||||
content: "Click partner field",
|
||||
trigger: ".o_field_widget[name=partner_id] input",
|
||||
run: "click",
|
||||
},
|
||||
// Note: Selecting the partner is only to trigger the compute;
|
||||
// this could be done by modifying any other field.
|
||||
{
|
||||
content: "Select partner",
|
||||
trigger: ".ui-menu-item > a:contains('A Partner')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Click the product field",
|
||||
trigger: "div[name=move_ids] .o_field_widget[name=product_id] input",
|
||||
run: "edit [1234] A Product",
|
||||
},
|
||||
{
|
||||
content: "Select a product",
|
||||
trigger:".ui-menu-item > a:contains('[1234] A Product')",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Save the repair order",
|
||||
trigger: ".o_form_button_save",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "wait for save completion",
|
||||
trigger: ".o_form_saved",
|
||||
},
|
||||
]});
|
||||
Loading…
Add table
Add a link
Reference in a new issue