summaryrefslogtreecommitdiff
path: root/addons/purchase_stock/static/src/js
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/purchase_stock/static/src/js
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/purchase_stock/static/src/js')
-rw-r--r--addons/purchase_stock/static/src/js/tours/purchase_stock.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/addons/purchase_stock/static/src/js/tours/purchase_stock.js b/addons/purchase_stock/static/src/js/tours/purchase_stock.js
new file mode 100644
index 00000000..44e6eabe
--- /dev/null
+++ b/addons/purchase_stock/static/src/js/tours/purchase_stock.js
@@ -0,0 +1,49 @@
+odoo.define('purchase_stock.purchase_steps', function (require) {
+"use strict";
+
+var core = require('web.core');
+
+var _t = core._t;
+var PurchaseAdditionalTourSteps = require('purchase.purchase_steps');
+
+PurchaseAdditionalTourSteps.include({
+
+ init: function() {
+ this._super.apply(this, arguments);
+ },
+
+ _get_purchase_stock_steps: function () {
+ this._super.apply(this, arguments);
+ return [{
+ trigger: ".oe_button_box button[name='action_view_picking']",
+ extra_trigger: ".oe_button_box button[name='action_view_picking']",
+ content: _t("Receive the ordered products."),
+ position: "bottom",
+ run: 'click',
+ }, {
+ trigger: ".o_statusbar_buttons button[name='button_validate']",
+ content: _t("Validate the receipt of all ordered products."),
+ position: "bottom",
+ run: 'click',
+ }, {
+ trigger: ".modal-footer .btn-primary",
+ extra_trigger: ".modal-dialog",
+ content: _t("Process all the receipt quantities."),
+ position: "bottom",
+ }, {
+ trigger: ".o_back_button a, .breadcrumb-item:not('.active'):last",
+ content: _t('Go back to the purchase order to generate the vendor bill.'),
+ position: 'bottom',
+ }, {
+ trigger: ".o_statusbar_buttons button[name='action_create_invoice']",
+ content: _t("Generate the draft vendor bill."),
+ position: "bottom",
+ run: 'click',
+ }
+ ];
+ }
+});
+
+return PurchaseAdditionalTourSteps;
+
+});