Skip to content

Commit

Permalink
[MIG] helpdesk_mgmt_sale: Migration to 17.0
Browse files Browse the repository at this point in the history
TT52326
  • Loading branch information
victoralmau committed Jan 15, 2025
1 parent 91383b1 commit f7ba5cd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 34 deletions.
4 changes: 2 additions & 2 deletions helpdesk_mgmt_sale/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Helpdesk Sale Order
!! source digest: sha256:9058b48ff43b86b6c8dd426fccf2d6ccf02d75989c508e82bee02b5bfe550bcf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Expand Down
4 changes: 2 additions & 2 deletions helpdesk_mgmt_sale/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Helpdesk Sale Order",
"summary": "Add the option to select project in the sale orders.",
"version": "15.0.2.1.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"category": "Sales Management",
"author": "Tecnativa," "Odoo Community Association (OCA)",
Expand All @@ -13,6 +13,6 @@
"views/helpdesk_ticket_views.xml",
"views/sale_order_views.xml",
],
"development_status": "Beta",
"development_status": "Production/Stable",
"auto_install": True,
}
18 changes: 0 additions & 18 deletions helpdesk_mgmt_sale/migrations/15.0.2.0.0/post-migration.py

This file was deleted.

2 changes: 1 addition & 1 deletion helpdesk_mgmt_sale/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">Helpdesk Sale Order</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9058b48ff43b86b6c8dd426fccf2d6ccf02d75989c508e82bee02b5bfe550bcf
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt_sale"><img alt="OCA/helpdesk" src="https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_mgmt_sale"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/helpdesk/tree/17.0/helpdesk_mgmt_sale"><img alt="OCA/helpdesk" src="https://img.shields.io/badge/github-OCA%2Fhelpdesk-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/helpdesk-17-0/helpdesk-17-0-helpdesk_mgmt_sale"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/helpdesk&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module extends the Helpdesk functionality in Odoo to allow an
integration between Helpdesk tickets and sales orders. A ticket can have
several sales orders associated with it, which in turn will have the
Expand Down
4 changes: 2 additions & 2 deletions helpdesk_mgmt_sale/tests/test_helpdesk_ticket.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright (C) 2024 Tecnativa - Pilar Vargas
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
from odoo.addons.base.tests.common import BaseCommon


class TestHelpdeskTicketSale(TransactionCase):
class TestHelpdeskTicketSale(BaseCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down
5 changes: 1 addition & 4 deletions helpdesk_mgmt_sale/views/helpdesk_ticket_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
<record id="ticket_view_form" model="ir.ui.view">
<field name="model">helpdesk.ticket</field>
<field name="inherit_id" ref="helpdesk_mgmt.ticket_view_form" />
<field
name="groups_id"
eval="[(6, 0, [ref('sales_team.group_sale_salesman')])]"
/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button
name="action_view_sale_orders"
type="object"
class="oe_stat_button"
icon="fa-dollar"
groups="sales_team.group_sale_salesman"
>
<field string="Sale Orders" name="so_count" widget="statinfo" />
</button>
Expand Down
11 changes: 6 additions & 5 deletions helpdesk_mgmt_sale/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<record id="view_order_form" model="ir.ui.view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field
name="groups_id"
eval="[(6, 0, [ref('helpdesk_mgmt.group_helpdesk_user_own')])]"
/>
<field name="arch" type="xml">
<xpath expr="//group[@name='sale_reporting']" position="after">
<group name="heldesk_info" string="Helpdesk">
<field name="ticket_ids" widget="many2many_tags" />
<field
name="ticket_ids"
widget="many2many_tags"
groups="helpdesk_mgmt.group_helpdesk_user_own"
/>
</group>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">
Expand All @@ -22,6 +22,7 @@
class="btn btn-primary"
icon="fa-ticket"
context="{'default_sale_order_ids': [(4, id)]}"
groups="helpdesk_mgmt.group_helpdesk_user_own"
>
<field string="Tickets" name="ticket_count" widget="statinfo" />
</button>
Expand Down

0 comments on commit f7ba5cd

Please sign in to comment.