Commit 77be0a84 by Arturo Jasso Origel

agregaron cambios para que solo muestre en vista lista cuando se selecciona en…

agregaron cambios para que solo muestre en vista lista cuando se selecciona en los stages, y en el apartado de todos me muestra todos en vista kanban y se agrego modificación en el el dashbaord donde se agregan el apartado de todos
parent 601e6716
......@@ -10,7 +10,18 @@
"summary":"Flexible HelpDesk Customizable Help Desk Service Desk HelpDesk With Stages Help Desk Ticket Management Helpdesk Email Templates Email Alias Email Helpdesk Chatter Sale Order With Helpdesk,Purchase Order With Helpdesk Invoice With Helpdesk Odoo",
"description":"""Are you looking for fully flexible and customisable helpdesk in odoo? Our this apps almost contain everything you need for Service Desk, Technical Support Team, Issue Ticket System which include service request to be managed in Odoo backend. Support ticket will send by email to customer and admin. Customer can view their ticket from the website portal and easily see stage of the reported ticket. This desk is fully customizable clean and flexible. """,
"version":"15.0.34",
"depends": ["mail","portal","product","resource","sale_management","purchase","account","hr_timesheet","crm","project",],
"depends": [
"base",
"mail",
"portal",
"product",
"resource",
"sale_management",
"purchase",
"account",
"hr_timesheet",
"crm",
"project",],
"data": [
"security/sh_helpdesk_security.xml",
"security/ir.model.access.csv",
......
......@@ -15,6 +15,7 @@ odoo.define('sh_all_in_one_helpdesk.dashboard', function(require) {
'change #start_date': 'render_ticket_data',
'change #end_date': 'render_ticket_data',
'click .mark-whatsapp': 'action_whatsapp',
'click .sh_title_click_all': 'action_open_all_tickets',
'click .sh_tile_click': 'action_open_tickets',
'change #ticket_partner_id': 'action_partner_change',
'click #send': 'action_send_whatsapp',
......@@ -171,8 +172,7 @@ odoo.define('sh_all_in_one_helpdesk.dashboard', function(require) {
}
});
},
action_open_tickets: function(event) {
action_open_all_tickets:function(event) {
var self = this;
var $el = $(event.currentTarget).attr('data-res_ids') || [];
var list_value = JSON.parse("[" + $el + "]");
......@@ -195,6 +195,38 @@ odoo.define('sh_all_in_one_helpdesk.dashboard', function(require) {
[data[1], 'form']
],
domain: [
'|', ['active', '=', false],
['active', '=', true],
],
target: 'current'
}, {
})
})
},
action_open_tickets: function(event) {
var self = this;
var $el = $(event.currentTarget).attr('data-res_ids') || [];
var list_value = JSON.parse("[" + $el + "]");
var comma_string = list_value.toString();
var all_tickets = comma_string.split(",").map(Number);
this._rpc({
model: 'ir.model.data',
method: 'xmlid_to_res_model_res_id',
args: ["sh_all_in_one_helpdesk.helpdesk_ticket_form_view"],
})
.then(function(data) {
self.do_action({
name: _t("Tickets"),
type: 'ir.actions.act_window',
res_model: 'helpdesk.ticket',
view_mode: 'tree,form',
views: [
//[false, 'kanban'],
[false, 'list'],
[data[1], 'form']
],
domain: [
['id', 'in', all_tickets],
'|', ['active', '=', false],
['active', '=', true],
......
......@@ -9,10 +9,33 @@
<div id="js_ticket_count_div">
<div>
<div class="row">
<t t-if="dict_all">
<t t-foreach="dict_all.keys()" t-as="value">
<t t-set="all_ids" t-value="dict_all[value]"/>
<div class="col-lg-3 col-md-4 col-sm-12">
<a class="sh_title_click_all custom" href="#" t-att-data-res_ids="all_ids">
<div class="card card_1 custom-card" href="#">
<div class="sh-card-body dash1 badge-info" style="background-color: #445ee9;">
<div class="media">
<i class="fa fa-clock-o fs-20 text-white align-self-center mr-3"></i>
<div style="display: inline-block;color: white;">
<h3 class="mt-0" style="color:white;">
<t t-esc="len(all_ids)" />
</h3>
<p>
<span t-esc="value" style="color:white;"/>
</p>
</div>
</div>
</div>
</div>
</a>
</div>
</t>
</t>
<t t-if="data_dict">
<t t-foreach="data_dict.keys()" t-as="value">
<t t-set="list_ids" t-value="data_dict[value][0][0]" />
<t t-set=" " t-value="data_dict[value][0][0]" />
<t t-set="error" t-value="data_dict[value][0][1]" />
<div class="col-lg-3 col-md-4 col-sm-12">
<a class="sh_tile_click custom" href="#" t-att-data-res_ids="list_ids or []">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment