Debian Codegraph @

addons/point_of_sale/static/src/app/screens/action_screen.js

raw
1 import { Component, xml } from "@odoo/owl";
2 import { registry } from "@web/core/registry";
3 import { ActionContainer } from "@web/webclient/actions/action_container";
4
5 export class ActionScreen extends Component {
6 static components = { ActionContainer };
7 static props = {
8 actionName: String,
9 };
10 static storeOnOrder = false;
11 static template = xml`
12 <div class="o_web_client">
13 <ActionContainer/>
14 </div>
15 `;
16 }
17
18 registry.category("pos_pages").add("ActionScreen", {
19 name: "ActionScreen",
20 component: ActionScreen,
21 route: `/pos/ui/${odoo.pos_config_id}/action/{string:actionName}`,
22 params: {},
23 });