Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions sale_order_archive/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ menus.
Usage
=====

To test the module you can follow these steps or you can do the
sale_order_archive_tour

To archive sale orders, you need to:

1. Open the tree view of sale orders.
Expand Down Expand Up @@ -92,12 +95,12 @@ Authors
Contributors
------------

- Andrea Stirpe <[email protected]>
- Kinner Vachhani
- Ruchir Shukla <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
- Andrea Stirpe <[email protected]>
- Kinner Vachhani
- Ruchir Shukla <[email protected]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia
- Bhavesh Heliconia

Maintainers
-----------
Expand Down
8 changes: 7 additions & 1 deletion sale_order_archive/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"category": "Sales",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["sale"],
"depends": ["sale", "sale_management", "web_tour"],
"data": ["views/sale_order.xml"],
"demo": ["data/tours.xml"],
"installable": True,
"assets": {
"web.assets_backend": [
"sale_order_archive/static/src/js/tours/sale_order_archive_tutorial.esm.js",
],
},
}
12 changes: 12 additions & 0 deletions sale_order_archive/data/tours.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="sale_order_archive_tutorial" model="web_tour.tour">
<field name="name">sale_order_archive_tutorial</field>
<field name="sequence">20</field>
<field
name="rainbow_man_message"
><![CDATA[
<b>Congratulations</b>,the tour was successfully completed<br>
]]></field>
</record>
</odoo>
2 changes: 2 additions & 0 deletions sale_order_archive/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
To test the module you can follow these steps or you can do the sale_order_archive_tour

To archive sale orders, you need to:

1. Open the tree view of sale orders.
Expand Down
2 changes: 2 additions & 0 deletions sale_order_archive/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ <h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To test the module you can follow these steps or you can do the
sale_order_archive_tour</p>
<p>To archive sale orders, you need to:</p>
<ol class="arabic simple">
<li>Open the tree view of sale orders.</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
import {registry} from "@web/core/registry";
import {stepUtils} from "@web_tour/tour_service/tour_utils";

registry.category("web_tour.tours").add("sale_order_archive_tutorial", {
url: "/odoo",

steps: () => [
stepUtils.showAppsMenuItem(),
{
content: "Open the Sales module to archive the quotation",
trigger: ".o_app[data-menu-xmlid='sale.sale_menu_root']",
run: "click",
},
{
content: "Remove all filters",
trigger: ".o_facet_remove",
run: "click",
},
{
content: "Choose the row with 'Quotation'",
trigger: ".o_data_row:has(td:contains('Quotation')) input",
run: "click",
},
{
content: "Go to 'Action'",
trigger: "div:nth-child(2) > .o-dropdown",
run: "click",
},
{
content: "Choose 'Cancel'",
trigger: ".o-dropdown-item:contains('Cancel')",
run: "click",
},
{
content: "Confirm the cancellation",
trigger: ".modal-footer .btn-primary",
run: "click",
},
{
content: "Wait for the row to appear as 'Cancelled'",
trigger: ".o_technical_modal button[name='action_mass_cancel']",
},
{
content: "Choose the row with 'Cancelled'",
trigger: ".o_data_row:has(td:contains('Cancelled')) input",
run: "click",
},
{
content: "Go to 'Action",
trigger: "div:nth-child(2) > .o-dropdown",
run: "click",
},
{
content: "Choose 'Archive'",
trigger: ".o-dropdown-item:contains('Archive')",
run: "click",
},
{
content: "Confirm the archiving",
trigger: ".modal-footer .btn-primary",
run: "click",
},
{
trigger: ".o_searchview_dropdown_toggler",
run: "click",
},
{
content: "Open the menu",
trigger: ".o-dropdown-item:nth-child(9)",
run: "click",
},
{
trigger: ".o_list_renderer",
run: "click",
},
{
trigger: ".o_data_row:nth-child(1) input",
run: "click",
},
{
trigger: "div:nth-child(2) > .o-dropdown",
run: "click",
},
{
trigger: ".o-dropdown-item:nth-child(5)",
run: "click",
},
],
});
1 change: 1 addition & 0 deletions sale_order_archive/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import test_sale_order_archive
from . import test_sale_order_archive_tours
24 changes: 24 additions & 0 deletions sale_order_archive/tests/test_sale_order_archive_tours.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo.tests.common import HttpCase, tagged

from odoo.addons.base.tests.common import BaseCommon


@tagged("post_install", "-at_install")
class TestSaleOrderArchiveUi(BaseCommon, HttpCase):
def _save_screencast(self):
pass

def test_01_sale_tour(self):
assert self.env["ir.module.module"].search(
[("name", "=", "sale_management"), ("state", "=", "installed")]
), "Module 'sale_management' must be installed"

self.start_tour(
"/web",
"sale_order_archive_tutorial",
login="admin",
step_delay=150,
screencast=False,
)
Loading