mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 18:52:02 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
/** @odoo-module */
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
function runPoSJSTests({ env }) {
|
||||
return {
|
||||
type: "item",
|
||||
description: env._t("Run Point of Sale JS Tests"),
|
||||
callback: () => {
|
||||
env.services.action.doAction({
|
||||
name: env._t("JS Tests"),
|
||||
target: "new",
|
||||
type: "ir.actions.act_url",
|
||||
url: "/pos/ui/tests?debug=assets",
|
||||
});
|
||||
},
|
||||
sequence: 35,
|
||||
};
|
||||
}
|
||||
|
||||
registry.category("debug").category("default").add("point_of_sale.runPoSJSTests", runPoSJSTests);
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
odoo.define('point_of_sale.tour', function(require) {
|
||||
"use strict";
|
||||
|
||||
const {_t} = require('web.core');
|
||||
const {Markup} = require('web.utils');
|
||||
var tour = require('web_tour.tour');
|
||||
|
||||
tour.register('point_of_sale_tour', {
|
||||
url: "/web",
|
||||
rainbowMan: false,
|
||||
sequence: 45,
|
||||
}, [tour.stepUtils.showAppsMenuItem(), {
|
||||
trigger: '.o_app[data-menu-xmlid="point_of_sale.menu_point_root"]',
|
||||
content: Markup(_t("Ready to launch your <b>point of sale</b>?")),
|
||||
width: 215,
|
||||
position: 'right',
|
||||
edition: 'community'
|
||||
}, {
|
||||
trigger: '.o_app[data-menu-xmlid="point_of_sale.menu_point_root"]',
|
||||
content: Markup(_t("Ready to launch your <b>point of sale</b>?")),
|
||||
width: 215,
|
||||
position: 'bottom',
|
||||
edition: 'enterprise'
|
||||
}, {
|
||||
trigger: ".o_pos_kanban button.oe_kanban_action_button",
|
||||
content: Markup(_t("<p>Ready to have a look at the <b>POS Interface</b>? Let's start our first session.</p>")),
|
||||
position: "bottom"
|
||||
}]);
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue