[IMP] helpdesk_create_task_from_ticket: debug when used with timesheet module #4
2
helpdesk_portal_ticket_list/.gitignore
vendored
Normal file
2
helpdesk_portal_ticket_list/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.*~
|
||||||
|
*pyc
|
50
helpdesk_portal_ticket_list/README.rst
Normal file
50
helpdesk_portal_ticket_list/README.rst
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
===========================
|
||||||
|
helpdesk_portal_ticket_list
|
||||||
|
===========================
|
||||||
|
|
||||||
|
Customize ticket portal view list
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
Use Odoo normal module installation procedure to install
|
||||||
|
``helpdesk_portal_ticket_list``.
|
||||||
|
|
||||||
|
|
||||||
|
Description
|
||||||
|
============
|
||||||
|
In ticket portal view list
|
||||||
|
- expand "name" column
|
||||||
|
- fix display bug on "Stage" column
|
||||||
|
|
||||||
|
Known issues / Roadmap
|
||||||
|
======================
|
||||||
|
|
||||||
|
None yet.
|
||||||
|
Bug Tracker
|
||||||
|
===========
|
||||||
|
|
||||||
|
Bugs are tracked on `our issues website <https://github.com/elabore-coop/project-tools/issues>`_. In case of
|
||||||
|
trouble, please check there if your issue has already been
|
||||||
|
reported. If you spotted it first, help us smashing it by providing a
|
||||||
|
detailed and welcomed feedback.
|
||||||
|
|
||||||
|
Credits
|
||||||
|
=======
|
||||||
|
|
||||||
|
Contributors
|
||||||
|
------------
|
||||||
|
|
||||||
|
* Laetitia Da Costa
|
||||||
|
|
||||||
|
Funders
|
||||||
|
-------
|
||||||
|
|
||||||
|
The development of this module has been financially supported by:
|
||||||
|
* Elabore (https://elabore.coop)
|
||||||
|
|
||||||
|
|
||||||
|
Maintainer
|
||||||
|
----------
|
||||||
|
|
||||||
|
This module is maintained by Elabore.
|
2
helpdesk_portal_ticket_list/__init__.py
Normal file
2
helpdesk_portal_ticket_list/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
36
helpdesk_portal_ticket_list/__manifest__.py
Normal file
36
helpdesk_portal_ticket_list/__manifest__.py
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Copyright 2022 Stéphan Sainléger (Elabore)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "helpdesk_portal_ticket_list",
|
||||||
|
"version": "16.0.1.0.0",
|
||||||
|
"author": "Elabore",
|
||||||
|
"website": "https://elabore.coop",
|
||||||
|
"maintainer": "Laetitia Da Costa",
|
||||||
|
"license": "AGPL-3",
|
||||||
|
"category": "Helpdesk",
|
||||||
|
"summary": "Customize ticket portal view list",
|
||||||
|
"description": "",
|
||||||
|
# any module necessary for this one to work correctly
|
||||||
|
"depends": [
|
||||||
|
"base",
|
||||||
|
"helpdesk_mgmt",
|
||||||
|
],
|
||||||
|
"qweb": [],
|
||||||
|
"external_dependencies": {
|
||||||
|
"python": [],
|
||||||
|
},
|
||||||
|
# always loaded
|
||||||
|
"data": [
|
||||||
|
"views/portal_ticket_view.xml",
|
||||||
|
],
|
||||||
|
# only loaded in demonstration mode
|
||||||
|
"demo": [],
|
||||||
|
"js": [],
|
||||||
|
"css": [],
|
||||||
|
"installable": True,
|
||||||
|
# Install this module automatically if all dependency have been previously
|
||||||
|
# and independently installed. Used for synergetic or glue modules.
|
||||||
|
"auto_install": False,
|
||||||
|
"application": False,
|
||||||
|
}
|
17
helpdesk_portal_ticket_list/views/portal_ticket_view.xml
Normal file
17
helpdesk_portal_ticket_list/views/portal_ticket_view.xml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<odoo>
|
||||||
|
<template id="portal_ticket_list_inherit" inherit_id="helpdesk_mgmt.portal_ticket_list">
|
||||||
|
<xpath expr="//td[a[contains(@t-attf-href, '/my/ticket/')]]" position="attributes">
|
||||||
|
<attribute name="style">max-width: 30rem;</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//td/span[@t-esc='ticket.stage_id.name']" position="attributes">
|
||||||
|
<attribute name="t-attf-class">badge #{'text-bg-primary' if ticket.stage_id.fold else 'text-bg-light'}</attribute>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
<template id="portal__my_tickets_inherit" inherit_id="helpdesk_mgmt.portal_my_tickets">
|
||||||
|
<xpath expr="//form/button[@name='create_new_ticket']" position="attributes">
|
||||||
|
<attribute name="style">margin-right: 0px; margin-bottom: 5px; display: inline-block;</attribute>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
</odoo>
|
Reference in New Issue
Block a user