Hi all
I have created a dashboard using standard dashboard module named "board"
The dashboard is created successfully and it appears on the menu click as well but the issue is that whenever i restart the service the dashboard dissapears
Following is the xml file attached and also link of the view after service upgraded
https://ibb.co/bL8ZsMM
xml version="1.0"?>
noupdate="1">
id="view_todays_order_trees" model="ir.ui.view">
name="name">pos.order.tree.pos.reports
name="model">pos.order
name="type">tree
name="arch" type="xml">
string="Today’s Orders">
name="name"/>
name="user_id"/>
name="state" invisible="1"/>
name="partner_id"/>
name="amount_total" sum="Amount total"/>
id="view_yesterdays_order_trees" model="ir.ui.view">
name="name">pos.order.tree.pos.reports.yesterday
name="model">pos.order
name="type">tree
name="arch" type="xml">
string="Yesterday’s Orders">
name="name"/>
name="user_id"/>
name="state" invisible="1"/>
name="partner_id"/>
name="amount_total" sum="Amount total"/>
id="view_last_week_order_trees" model="ir.ui.view">
name="name">pos.order.tree.pos.reports.last.week
name="model">pos.order
name="type">tree
name="arch" type="xml">
string="Last Week’s Orders">
name="name"/>
name="user_id"/>
name="state" invisible="1"/>
name="partner_id"/>
name="amount_total" sum="Amount total"/>
id="view_current_month_order_trees" model="ir.ui.view">
name="name">pos.order.tree.pos.reports.current.month
name="model">pos.order
name="type">tree
name="arch" type="xml">
string="Current Month’s Orders">
name="name"/>
name="user_id"/>
name="state" invisible="1"/>
name="partner_id"/>
name="amount_total" sum="Amount total"/>
id="pos_dashboard_action" model="ir.actions.act_window">
name="name">Income Dashboard
name="res_model">pos.order
name="view_mode">tree,form
name="target">current
name="view_id" ref="view_todays_order_trees"/>
name="domain">[('date_order','>=', datetime.datetime.combine(context_today(), datetime.time(0,0,0))),
('date_order','<', datetime.datetime.combine(context_today(), datetime.time(23,59,59)))]
id="pos_dashboard_action_yesterday" model="ir.actions.act_window">
name="name">Yesterday Orders
name="res_model">pos.order
name="view_mode">tree,form
name="target">current
name="view_id" ref="view_yesterdays_order_trees"/>
name="domain">[('date_order','>=',datetime.datetime.combine(context_today() -
relativedelta(days=1),datetime.time(0,0,0))), ('date_order','<',datetime.datetime.combine(context_today()
-
relativedelta(days=1),datetime.time(23,59,59)))]
id="pos_dashboard_action_last_week" model="ir.actions.act_window">
name="name">Last Week Order's
name="res_model">pos.order
name="view_mode">tree,form
name="target">current
name="view_id" ref="view_last_week_order_trees"/>
name="domain">[('date_order','>',datetime.datetime.combine(context_today() -
relativedelta(weeks=1),datetime.time(0,0,0))), ('date_order','<',datetime.datetime.combine(context_today()
-
relativedelta(weeks=0),datetime.time(0,0,0)))]
id="pos_dashboard_action_current_month" model="ir.actions.act_window">
name="name">Current Months Orders
name="res_model">pos.order
name="view_mode">tree,form
name="target">current
name="view_id" ref="view_current_month_order_trees"/>
name="domain">[('date_order','<',(context_today()+relativedelta(months=1)).strftime('%Y-%m-01')),
('date_order','>=',time.strftime('%Y-%m-01'))]
id="dashboard_form_view" model="ir.ui.view">
name="name">Income Dashboard Form
name="model">board.board
name="type">form
name="arch" type="xml">
string="Income Dashboard" create="0">
style="1-1">
style="width: 20%">
string="Today's Orders"
name="%(pos_dashboard_action)d"/>
string="Yesterday's Orders"
name="%(pos_dashboard_action_yesterday)d"/>
style="width: 20%">
string="Last week’s Orders & Income" name="%(pos_dashboard_action_last_week)d"/>
string="Current Months Orders & Income"
name="%(pos_dashboard_action_current_month)d"/>
id="pos_dashboard" model="ir.actions.act_window">
name="name">Income Dashboard
name="res_model">board.board
name="view_mode">form
name="usage">menu
name="target">current
name="view_id" ref="pos_reports.dashboard_form_view"/>
name="Income Dashboard"
parent="pos_reports.menu_pos_reports"
action="pos_reports.pos_dashboard"
sequence="1"
id="menu_dashboard"/>