[MIG] helpdesk_portal_ticket_enriched_description_form: migrate to 16.0
This commit is contained in:
2
helpdesk_portal_ticket_enriched_description_form/.gitignore
vendored
Normal file
2
helpdesk_portal_ticket_enriched_description_form/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.*~
|
||||||
|
*pyc
|
37
helpdesk_portal_ticket_enriched_description_form/README.md
Normal file
37
helpdesk_portal_ticket_enriched_description_form/README.md
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
================================================
|
||||||
|
helpdesk_portal_ticket_enriched_description_form
|
||||||
|
================================================
|
||||||
|
|
||||||
|
Add fieds in ticket creation portal form to enrich description content.
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
Use Odoo normal module installation procedure to install
|
||||||
|
`helpdesk_portal_ticket_enriched_description_form`.
|
||||||
|
|
||||||
|
# Known issues / Roadmap
|
||||||
|
|
||||||
|
None yet.
|
||||||
|
Bug Tracker
|
||||||
|
===========
|
||||||
|
|
||||||
|
Bugs are tracked on `our issues website <https://github.com/elabore-coop/helpdesk-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
|
||||||
|
|
||||||
|
- Stéphan Sainléger
|
||||||
|
|
||||||
|
## Funders
|
||||||
|
|
||||||
|
The development of this module has been financially supported by:
|
||||||
|
|
||||||
|
- Elabore (https://elabore.coop)
|
||||||
|
|
||||||
|
## Maintainer
|
||||||
|
|
||||||
|
This module is maintained by Elabore.
|
@@ -0,0 +1 @@
|
|||||||
|
from . import controllers
|
@@ -0,0 +1,35 @@
|
|||||||
|
# Copyright 2024 Stéphan Sainléger (Elabore)
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "helpdesk_portal_ticket_enriched_description_form",
|
||||||
|
"version": "16.0.1.0.0",
|
||||||
|
"author": "Elabore",
|
||||||
|
"website": "https://elabore.coop",
|
||||||
|
"maintainer": "Stéphan Sainléger",
|
||||||
|
"license": "AGPL-3",
|
||||||
|
"category": "Tools",
|
||||||
|
"summary": "Add fieds in ticket creation portal form to enrich description content.",
|
||||||
|
# any module necessary for this one to work correctly
|
||||||
|
"depends": [
|
||||||
|
"base",
|
||||||
|
"helpdesk_mgmt",
|
||||||
|
],
|
||||||
|
"qweb": [],
|
||||||
|
"external_dependencies": {
|
||||||
|
"python": [],
|
||||||
|
},
|
||||||
|
# always loaded
|
||||||
|
"data": [
|
||||||
|
"views/helpdesk_ticket_templates.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,
|
||||||
|
}
|
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
from . import main
|
@@ -0,0 +1,23 @@
|
|||||||
|
import odoo.http as http
|
||||||
|
from odoo.addons.helpdesk_mgmt.controllers.main import HelpdeskTicketController
|
||||||
|
|
||||||
|
|
||||||
|
class HelpdeskTicketControllerDescription(HelpdeskTicketController):
|
||||||
|
def _prepare_submit_ticket_vals(self, **kw):
|
||||||
|
res = super()._prepare_submit_ticket_vals(**kw)
|
||||||
|
description = ""
|
||||||
|
if kw.get("small_description", False):
|
||||||
|
description = (
|
||||||
|
description + "<b>DESCRIPTION:</b><br/>" + kw["small_description"]
|
||||||
|
)
|
||||||
|
del kw["small_description"]
|
||||||
|
if kw.get("access", False):
|
||||||
|
description = description + "<br/><br/><b>ACCESS:</b><br/>" + kw["access"]
|
||||||
|
del kw["access"]
|
||||||
|
if kw.get("bug_report", False):
|
||||||
|
description = (
|
||||||
|
description + "<br/><br/><b>BUG REPORT:</b><br/>" + kw["bug_report"]
|
||||||
|
)
|
||||||
|
del kw["bug_report"]
|
||||||
|
res.update({"description": description})
|
||||||
|
return res
|
58
helpdesk_portal_ticket_enriched_description_form/i18n/fr.po
Normal file
58
helpdesk_portal_ticket_enriched_description_form/i18n/fr.po
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-10-03 21:50+0000\n"
|
||||||
|
"PO-Revision-Date: 2024-10-03 21:50+0000\n"
|
||||||
|
"Last-Translator: \n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Be precise. If there is a bug/error, please describe\n"
|
||||||
|
" how to reproduce it</span>"
|
||||||
|
msgstr ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Soyez précis. Si vous avez une erreur, merci de décrire\n"
|
||||||
|
" comment la reproduire.</span>"
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Link toward error or additional "
|
||||||
|
"information</span>"
|
||||||
|
msgstr ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Lien vers l'erreur ou des informations "
|
||||||
|
"complémentaires</span>"
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Paste here the complete error message (ex: error\n"
|
||||||
|
" code Odoo)</span>"
|
||||||
|
msgstr ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Copier ici le message d'erreur complet (ex: code\n"
|
||||||
|
" d'erreur Odoo)</span>"
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid "Access"
|
||||||
|
msgstr "Accès"
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid "Bug report"
|
||||||
|
msgstr "Rapport de bug"
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid "Description"
|
||||||
|
msgstr ""
|
@@ -0,0 +1,52 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 14.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2024-10-03 21:44+0000\n"
|
||||||
|
"PO-Revision-Date: 2024-10-03 21:44+0000\n"
|
||||||
|
"Last-Translator: \n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Be precise. If there is a bug/error, please describe\n"
|
||||||
|
" how to reproduce it</span>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Link toward error or additional "
|
||||||
|
"information</span>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid ""
|
||||||
|
"<span class=\"col-md-7 col-sm-8\">Paste here the complete error message (ex: error\n"
|
||||||
|
" code Odoo)</span>"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid "Access"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid "Bug report"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: helpdesk_portal_ticket_enriched_description_form
|
||||||
|
#: model_terms:ir.ui.view,arch_db:helpdesk_portal_ticket_enriched_description_form.helpdesk_create_ticket_description
|
||||||
|
msgid "Description"
|
||||||
|
msgstr ""
|
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<odoo>
|
||||||
|
<template id="helpdesk_create_ticket_description" name="Create Ticket: Description"
|
||||||
|
inherit_id="helpdesk_mgmt.portal_create_ticket" priority="40">
|
||||||
|
<xpath expr="//textarea[@name='description']/../.." position="replace">
|
||||||
|
<div class="form-group">
|
||||||
|
<label
|
||||||
|
class="col-md-3 col-dm-4 control-label"
|
||||||
|
for="small_description"
|
||||||
|
>Description
|
||||||
|
</label>
|
||||||
|
<div class="col-md-7 col-sm-8">
|
||||||
|
<textarea
|
||||||
|
class="form-control"
|
||||||
|
name="small_description"
|
||||||
|
style="min-height: 120px"
|
||||||
|
required="True"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<span class="col-md-7 col-sm-8">Be precise. If there is a bug/error, please describe
|
||||||
|
how to reproduce it</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label
|
||||||
|
class="col-md-3 col-dm-4 control-label"
|
||||||
|
for="access"
|
||||||
|
>Access
|
||||||
|
</label>
|
||||||
|
<div class="col-md-7 col-sm-8">
|
||||||
|
<input
|
||||||
|
class="form-control"
|
||||||
|
type="text"
|
||||||
|
name="access"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<span class="col-md-7 col-sm-8">Link toward error or additional information</span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label
|
||||||
|
class="col-md-3 col-dm-4 control-label"
|
||||||
|
for="bug_report"
|
||||||
|
>Bug report
|
||||||
|
</label>
|
||||||
|
<div class="col-md-7 col-sm-8">
|
||||||
|
<textarea
|
||||||
|
class="form-control"
|
||||||
|
name="bug_report"
|
||||||
|
style="min-height: 120px"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<span class="col-md-7 col-sm-8">Paste here the complete error message (ex: error
|
||||||
|
code Odoo)</span>
|
||||||
|
</div>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
</odoo>
|
Reference in New Issue
Block a user