Commit 9728e484 by Arturo Jasso Origel

se agregaron 2 parametros extras para el apartado ti 911 y se agregaron las…

se agregaron 2 parametros extras para el apartado ti 911 y se agregaron las sucursales de nacional, corporativo gdl, corporativo culiacan, además de un ajuste en la vista de las tarjetas
parent a5f45368
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</form> </form>
</div> </div>
<div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2"> <div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2">
<button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Ver mis tickets</button> <button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Acceder</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
</form> </form>
</div> </div>
<div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2"> <div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2">
<button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Ver mis tickets</button> <button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Acceder</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -77,5 +77,17 @@ ...@@ -77,5 +77,17 @@
<field name="name">TUXTLA</field> <field name="name">TUXTLA</field>
<field name="region_id" ref="helpdesk_morsa.region_southeast"/> <field name="region_id" ref="helpdesk_morsa.region_southeast"/>
</record> </record>
<record id="wh_national" model="warehouse.helpdesk">
<field name="name">NACIONAL</field>
</record>
<record id="wh_co_gdl" model="warehouse.helpdesk">
<field name="name">CORPORATIVO GUADALAJARA</field>
</record>
<record id="wh_co_culiacan" model="warehouse.helpdesk">
<field name="name">CORPORATIVO CULIACAN</field>
</record>
</data> </data>
</odoo> </odoo>
\ No newline at end of file
...@@ -19,12 +19,16 @@ class HelpdeskTicket(models.Model): ...@@ -19,12 +19,16 @@ class HelpdeskTicket(models.Model):
('odoo', 'Falla Odoo Nacional'), ('odoo', 'Falla Odoo Nacional'),
('mclick','Falla Morsa Click Nacional'), ('mclick','Falla Morsa Click Nacional'),
('suc','Sucursal detenida'), ('suc','Sucursal detenida'),
('internet_fail','Falla General de Internet'),
('slow_odoo','Lentitud en Odoo'),
],string="Incidencia") ],string="Incidencia")
warehouse_id = fields.Many2one('warehouse.helpdesk','Sucursal') warehouse_id = fields.Many2one('warehouse.helpdesk','Sucursal')
call_before_10 = fields.Boolean('Atención antes de 10 minutos') call_before_10 = fields.Boolean('Atención antes de 10 minutos')
color = fields.Integer('Color',compute="_get_color") color = fields.Integer('Color',compute="_get_color")
erp_type = fields.Selection([ erp_type = fields.Selection([
('soporte','Soporte'),('mejora','Mejora'),('reporte','Reporte') ('soporte','Soporte'),
('mejora','Mejora'),
('reporte','Reporte')
],string="Tipo de asistencia") ],string="Tipo de asistencia")
ticket_reason = fields.Many2one('ticket.reason','Motivo de Ticket', ticket_reason = fields.Many2one('ticket.reason','Motivo de Ticket',
default=lambda self: self.env['ticket.reason'].search([('name','=','Ninguno'),],limit=1).id default=lambda self: self.env['ticket.reason'].search([('name','=','Ninguno'),],limit=1).id
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
<option value="mclick">Falla Morsa Click Nacional</option> <option value="mclick">Falla Morsa Click Nacional</option>
<option value="odoo"> Falla ERP Nacional</option> <option value="odoo"> Falla ERP Nacional</option>
<option value="suc">Sucursal Detenida</option> <option value="suc">Sucursal Detenida</option>
<option value="internet_fail">Falla General de Internet</option>
<option value="slow_odoo">Lentitud en Odoo</option>
</select> </select>
</div> </div>
...@@ -86,7 +88,7 @@ ...@@ -86,7 +88,7 @@
</form> </form>
</div> </div>
<div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2"> <div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2">
<button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Ver mis tickets</button> <button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Acceder</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
</form> </form>
</div> </div>
<div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2"> <div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2">
<button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Ver mis tickets</button> <button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Acceder</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</form> </form>
</div> </div>
<div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2"> <div class="col-sm-12 col-md-6 col-lg-6 o_center_object mt-2">
<button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Ver mis tickets</button> <button type="button" class="btn btn-secondary rounded" data-dismiss="modal">Acceder</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -76,14 +76,20 @@ ...@@ -76,14 +76,20 @@
<div class="card"> <div class="card">
<div t-if="url" class="card-body card-body-custom" style="background-color:white !important;"> <div t-if="url" class="card-body card-body-custom" style="background-color:white !important;">
<header class="card__primary-title"> <header class="card__primary-title">
<t t-if="avatar"> <div class="row">
<figure class="image image--avatar"> <div class="col-sm-6 col-md-6 col-lg-3">
<t t-if="avatar">
<img t-att-src="avatar"/> <figure class="image image--avatar">
</figure>
</t> <img t-att-src="avatar"/>
<div class="item item--two-lines"> </figure>
<h5 t-att-title="title"><t t-esc="title"/></h5> </t>
</div>
<div class="col-sm-6 col-md-6 col-lg-9">
<div class="item item--two-lines">
<h5 t-att-title="title"><t t-esc="title"/></h5>
</div>
</div>
</div> </div>
</header> </header>
<t t-if="background"> <t t-if="background">
...@@ -96,7 +102,7 @@ ...@@ -96,7 +102,7 @@
<span class="card__supporting-text"><t t-esc="desc"/></span> <span class="card__supporting-text"><t t-esc="desc"/></span>
</t> </t>
<footer class="card__actions"> <footer class="card__actions">
<a class="btn btn-primary" t-att-href="url">Ver mis tickets</a> <a class="btn btn-primary" t-att-href="url">Acceder</a>
</footer> </footer>
</div> </div>
</div> </div>
......
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