Browse Source

Apr 30: [ADD] Initial Commit 'base_machine_repair_management'

pull/317/head
RisvanaCybro 1 year ago
parent
commit
4dd3296c07
  1. 47
      base_machine_repair_management/README.rst
  2. 26
      base_machine_repair_management/__init__.py
  3. 66
      base_machine_repair_management/__manifest__.py
  4. 24
      base_machine_repair_management/controllers/__init__.py
  5. 95
      base_machine_repair_management/controllers/base_machine_repair_management.py
  6. 110
      base_machine_repair_management/controllers/portal.py
  7. 16
      base_machine_repair_management/data/ir_actions_server.xml
  8. 23
      base_machine_repair_management/data/ir_sequence_data.xml
  9. 31
      base_machine_repair_management/data/mail_data.xml
  10. 6
      base_machine_repair_management/doc/RELEASE_NOTES.md
  11. 34
      base_machine_repair_management/models/__init__.py
  12. 41
      base_machine_repair_management/models/machine_consume.py
  13. 92
      base_machine_repair_management/models/machine_diagnosis.py
  14. 235
      base_machine_repair_management/models/machine_repair.py
  15. 34
      base_machine_repair_management/models/machine_service_type.py
  16. 33
      base_machine_repair_management/models/machine_services.py
  17. 49
      base_machine_repair_management/models/machine_workorder.py
  18. 33
      base_machine_repair_management/models/product_product.py
  19. 42
      base_machine_repair_management/models/repair_team.py
  20. 44
      base_machine_repair_management/models/repair_timesheet.py
  21. 39
      base_machine_repair_management/models/res_partner.py
  22. 31
      base_machine_repair_management/models/sale_order.py
  23. 37
      base_machine_repair_management/models/team_member.py
  24. 23
      base_machine_repair_management/report/__init__.py
  25. 46
      base_machine_repair_management/report/machine_repair_report.py
  26. 15
      base_machine_repair_management/report/machine_repair_report.xml
  27. 137
      base_machine_repair_management/report/repair_report_templates.xml
  28. 21
      base_machine_repair_management/security/base_machine_repair_management_groups.xml
  29. 11
      base_machine_repair_management/security/ir.model.access.csv
  30. BIN
      base_machine_repair_management/static/description/assets/icons/capture (1).png
  31. BIN
      base_machine_repair_management/static/description/assets/icons/check.png
  32. BIN
      base_machine_repair_management/static/description/assets/icons/chevron.png
  33. BIN
      base_machine_repair_management/static/description/assets/icons/cogs.png
  34. BIN
      base_machine_repair_management/static/description/assets/icons/consultation.png
  35. BIN
      base_machine_repair_management/static/description/assets/icons/ecom-black.png
  36. BIN
      base_machine_repair_management/static/description/assets/icons/education-black.png
  37. BIN
      base_machine_repair_management/static/description/assets/icons/hotel-black.png
  38. BIN
      base_machine_repair_management/static/description/assets/icons/img.png
  39. BIN
      base_machine_repair_management/static/description/assets/icons/license.png
  40. BIN
      base_machine_repair_management/static/description/assets/icons/lifebuoy.png
  41. BIN
      base_machine_repair_management/static/description/assets/icons/manufacturing-black.png
  42. BIN
      base_machine_repair_management/static/description/assets/icons/photo-capture.png
  43. BIN
      base_machine_repair_management/static/description/assets/icons/pos-black.png
  44. BIN
      base_machine_repair_management/static/description/assets/icons/puzzle.png
  45. BIN
      base_machine_repair_management/static/description/assets/icons/restaurant-black.png
  46. BIN
      base_machine_repair_management/static/description/assets/icons/service-black.png
  47. BIN
      base_machine_repair_management/static/description/assets/icons/trading-black.png
  48. BIN
      base_machine_repair_management/static/description/assets/icons/training.png
  49. BIN
      base_machine_repair_management/static/description/assets/icons/update.png
  50. BIN
      base_machine_repair_management/static/description/assets/icons/user.png
  51. BIN
      base_machine_repair_management/static/description/assets/icons/wrench.png
  52. BIN
      base_machine_repair_management/static/description/assets/misc/Cybrosys R.png
  53. 33
      base_machine_repair_management/static/description/assets/misc/email.svg
  54. 3
      base_machine_repair_management/static/description/assets/misc/phone.svg
  55. 9
      base_machine_repair_management/static/description/assets/misc/star (1) 2.svg
  56. 9
      base_machine_repair_management/static/description/assets/misc/support (1) 1.svg
  57. 6
      base_machine_repair_management/static/description/assets/misc/support-email.svg
  58. 17
      base_machine_repair_management/static/description/assets/misc/tick-mark.svg
  59. 9
      base_machine_repair_management/static/description/assets/misc/whatsapp 1.svg
  60. 33
      base_machine_repair_management/static/description/assets/misc/whatsapp.svg
  61. BIN
      base_machine_repair_management/static/description/assets/modules/1.png
  62. BIN
      base_machine_repair_management/static/description/assets/modules/2.jpg
  63. BIN
      base_machine_repair_management/static/description/assets/modules/3.jpg
  64. BIN
      base_machine_repair_management/static/description/assets/modules/4.jpg
  65. BIN
      base_machine_repair_management/static/description/assets/modules/5.jpg
  66. BIN
      base_machine_repair_management/static/description/assets/modules/6.png
  67. BIN
      base_machine_repair_management/static/description/assets/screenshots/001.png
  68. BIN
      base_machine_repair_management/static/description/assets/screenshots/002.png
  69. BIN
      base_machine_repair_management/static/description/assets/screenshots/003.png
  70. BIN
      base_machine_repair_management/static/description/assets/screenshots/004.png
  71. BIN
      base_machine_repair_management/static/description/assets/screenshots/005.png
  72. BIN
      base_machine_repair_management/static/description/assets/screenshots/006.png
  73. BIN
      base_machine_repair_management/static/description/assets/screenshots/007.png
  74. BIN
      base_machine_repair_management/static/description/assets/screenshots/008.png
  75. BIN
      base_machine_repair_management/static/description/assets/screenshots/009.png
  76. BIN
      base_machine_repair_management/static/description/assets/screenshots/010.png
  77. BIN
      base_machine_repair_management/static/description/assets/screenshots/011.png
  78. BIN
      base_machine_repair_management/static/description/assets/screenshots/012.png
  79. BIN
      base_machine_repair_management/static/description/assets/screenshots/013.png
  80. BIN
      base_machine_repair_management/static/description/assets/screenshots/014.png
  81. BIN
      base_machine_repair_management/static/description/assets/screenshots/015.png
  82. BIN
      base_machine_repair_management/static/description/assets/screenshots/016.png
  83. BIN
      base_machine_repair_management/static/description/assets/screenshots/017.png
  84. BIN
      base_machine_repair_management/static/description/assets/screenshots/018.png
  85. BIN
      base_machine_repair_management/static/description/assets/screenshots/019.png
  86. BIN
      base_machine_repair_management/static/description/assets/screenshots/hero.gif
  87. BIN
      base_machine_repair_management/static/description/assets/screenshots/img1.png
  88. BIN
      base_machine_repair_management/static/description/assets/screenshots/img10.png
  89. BIN
      base_machine_repair_management/static/description/assets/screenshots/img11.png
  90. BIN
      base_machine_repair_management/static/description/assets/screenshots/img12.png
  91. BIN
      base_machine_repair_management/static/description/assets/screenshots/img13.png
  92. BIN
      base_machine_repair_management/static/description/assets/screenshots/img14.png
  93. BIN
      base_machine_repair_management/static/description/assets/screenshots/img15.png
  94. BIN
      base_machine_repair_management/static/description/assets/screenshots/img2.png
  95. BIN
      base_machine_repair_management/static/description/assets/screenshots/img3.png
  96. BIN
      base_machine_repair_management/static/description/assets/screenshots/img4.png
  97. BIN
      base_machine_repair_management/static/description/assets/screenshots/img5.png
  98. BIN
      base_machine_repair_management/static/description/assets/screenshots/img6.png
  99. BIN
      base_machine_repair_management/static/description/assets/screenshots/img7.png
  100. BIN
      base_machine_repair_management/static/description/assets/screenshots/img8.png

47
base_machine_repair_management/README.rst

@ -0,0 +1,47 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Base Machine Repair Management
==============================
* Machine Repair Management system is an application which is used to maintain the repairs of machine. It is also allow users to take machine requests through website and these requests are created in the backend .Also we can manage the job order,machine diagnosis and maintained the team.
Configuration
=============
* No additional configurations needed
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developers: (V17) Dhanya B ,Contacts: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if
your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

26
base_machine_repair_management/__init__.py

@ -0,0 +1,26 @@
"""base_machine_repair_management"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import controllers
from . import models
from . import report
from . import wizard

66
base_machine_repair_management/__manifest__.py

@ -0,0 +1,66 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Machine Repair Management',
'version': '17.0.1.0.0',
'category': 'Sales,Website ,Human Resources ,Project',
'summary': """Machine repair management is used manage the repair
requests ,machine diagnosis work orders and reports for repairing etc""",
'description': """Machine Repair Management system is an application which is
used to maintain the repairs of machine. It is also allow users to take
machine requests through website and these requests are created in the
backend .Also we can manage the job order,machine diagnosis and maintained
the team.""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['website', 'hr', 'project', 'sale', 'contacts'],
'data': [
'security/base_machine_repair_management_groups.xml',
'security/ir.model.access.csv',
'data/ir_sequence_data.xml',
'data/ir_actions_server.xml',
'data/mail_data.xml',
'report/repair_report_templates.xml',
'report/machine_repair_report.xml',
'views/customer_portal_templates.xml',
'views/customer_review_templates.xml',
'views/machine_diagnosis_views.xml',
'views/machine_repair_views.xml',
'views/machine_service_type_views.xml',
'views/machine_service_views.xml',
'views/machine_workorder_views.xml',
'views/product_views.xml',
'views/repair_team_views.xml',
'views/res_partner_views.xml',
'views/sale_order_views.xml',
'views/website_repair_templates.xml',
'wizard/repair_report_views.xml',
'views/base_machine_repair_management_menus.xml',
],
'images': ['static/description/banner.jpg'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

24
base_machine_repair_management/controllers/__init__.py

@ -0,0 +1,24 @@
"""Base machine repair management"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import base_machine_repair_management
from . import portal

95
base_machine_repair_management/controllers/base_machine_repair_management.py

@ -0,0 +1,95 @@
"""Machine Repair management"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import http
from odoo.http import request
class RepairRequest(http.Controller):
"""This is used for manage the repair requests"""
@http.route(['/repair'], type='http', auth="public", website=True)
def get_request(self):
"""function to get the repair request form"""
vals = ({
'machine': request.env['product.product'].sudo().search(
[('is_machine', '=', True)]),
'service_id': request.env['machine.service'].sudo().search([]),
'customer_id': request.env['res.partner'].search(
[]),
})
return request.render(
"base_machine_repair_management.repair_request_form", vals)
@http.route('/create/repair_request', type='http', methods=['POST'], auth="public", website=True, csrf=False)
def submit_form_request(self, **POST):
"""function to redirect the submitted response page"""
if POST.get('customer_id') not in request.env['res.partner'].sudo().search([]).ids:
customer = request.env['res.partner'].sudo().create({
'name': POST.get('customer_id'),
'email': POST.get('email'),
'phone': POST.get('phone')
})
POST.update({'customer_id': customer.id, 'name': 'Repair from Website'})
if POST:
request.env['machine.repair'].sudo().create(POST)
return request.redirect('/contactus-thank-you')
@http.route(['/review'], type='http', auth="public", website=True)
def get_customer_review(self):
"""function to redirect the review form"""
comments = ({
'customer_rating': request.env['machine.repair'].sudo().search(
[('customer_id', '!=', False), ('customer_rating', '!=', False),
('customer_comments', '!=', False)])
})
return request.render(
"base_machine_repair_management.repair_review_form", comments)
@http.route('/create/repair_reviews', methods=['POST'], type='http',
auth="public", website=True, csrf=False)
def submit_form(self, **POST):
"""This is used to submit the user reviews"""
if POST:
vals = request.env['machine.repair'].sudo().search(
[('customer_id', '=', request.env.user.name)])
if POST.get('good') == 'on':
vals.write({
'customer_rating': 'Good',
'customer_comments': POST['repair_review_comment']
})
elif POST.get('poor') == 'on':
vals.write({
'customer_rating': 'Poor',
'customer_comments': POST['repair_review_comment']
})
elif POST.get('average') == 'on':
vals.write({
'customer_rating': 'Average',
'customer_comments': POST['repair_review_comment']
})
elif POST.get('excellent') == 'on':
vals.sudo().write({
'customer_rating': 'Excellent',
'customer_comments': POST['repair_review_comment']
})
return request.redirect('/contactus-thank-you')

110
base_machine_repair_management/controllers/portal.py

@ -0,0 +1,110 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import http, _
from odoo.exceptions import AccessError, MissingError
from odoo.http import request
from odoo.addons.portal.controllers.portal import CustomerPortal
from odoo.addons.portal.controllers.portal import pager as portal_pager
class PortalRepair(CustomerPortal):
"""Portal for customers"""
def _prepare_home_portal_values(self, counters):
"""This is used to prepare the portal values"""
values = super()._prepare_home_portal_values(counters)
if 'repair_count' in counters:
repair_count = request.env['machine.repair'].search_count(
self._get_repair_domain()) \
if request.env['machine.repair'].check_access_rights('read',
raise_exception=False) else 0
values['repair_count'] = repair_count
return values
def _repair_get_page_view_values(self, repair, access_token, **kwargs):
"""This is used to view the repair page"""
values = {
'page_name': 'repair',
'repair': repair,
}
return self._get_page_view_values(repair, access_token, values,
'my_repair_history', False, **kwargs)
def _get_repair_domain(self):
"""This used add the domain for the page view"""
return [('state', 'in', ['new', 'closed']),
('customer_id', '=', request.env.user.name)]
@http.route(['/my/repair', '/my/repair/page/<int:page>'], type='http',
auth="user", website=True)
def portal_my_repair(self, page=1, date_begin=None, date_end=None,
sort=None):
"""This is used to view the all repairs"""
values = self._prepare_portal_layout_values()
machine_repair = request.env['machine.repair'].search([])
domain = self._get_repair_domain()
searchbar_sorting = {
'state': {'label': _('Status'), 'repair': 'state'},
}
if not sort:
sort = 'state'
repair_count = machine_repair.search_count(domain)
pager = portal_pager(
url="/my/repair",
url_args={'date_begin': date_begin, 'date_end': date_end,
'sort': sort},
total=repair_count,
page=page,
step=self._items_per_page
)
repair = machine_repair.search(domain,
limit=self._items_per_page,
offset=pager['offset'])
request.session['my_repair_history'] = repair.ids[:100]
values.update({
'date': date_begin,
'machine_repair': repair_count,
'repair': machine_repair,
'page_name': 'repair',
'pager': pager,
'default_url': '/my/repair',
'searchbar_sorting': searchbar_sorting,
'sort': sort,
})
return request.render(
"base_machine_repair_management.portal_my_repair_request", values)
@http.route(['/my/repair/<int:repair_id>'], type='http', auth="public",
website=True)
def portal_my_repair_detail(self, repair_id, access_token=None,
**kw):
"""This is used to view a specified view of a repair"""
try:
repair_sudo = self._document_check_access('machine.repair',
repair_id, access_token)
except (AccessError, MissingError):
return request.redirect('/my')
values = self._repair_get_page_view_values(repair_sudo, access_token,
**kw)
return request.render(
"base_machine_repair_management.portal_repair_page", values)

16
base_machine_repair_management/data/ir_actions_server.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Scheduled action for repair request report-->
<record id="action_machine_repair_report" model="ir.actions.server">
<field name="name">Repair Request Report</field>
<field name="model_id"
ref="base_machine_repair_management.model_machine_repair"/>
<field name="binding_model_id"
ref="base_machine_repair_management.model_machine_repair"/>
<field name="binding_view_types">form</field>
<field name="state">code</field>
<field name="code">
action = records.action_print_repair_request_report()
</field>
</record>
</odoo>

23
base_machine_repair_management/data/ir_sequence_data.xml

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- This is for the sequence of machine diagnosis records-->
<record id="diagnosis_seq" model="ir.sequence">
<field name="name">Repair Sequence</field>
<field name="code">machine.diagnosis</field>
<field name="prefix">DGS/</field>
<field name="padding">3</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
<!-- This is used for the sequence for machine repair-->
<record id="repair_seq" model="ir.sequence">
<field name="name">Repair Sequence</field>
<field name="code">machine.repair</field>
<field name="prefix">MRP/</field>
<field name="padding">3</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
</data>
</odoo>

31
base_machine_repair_management/data/mail_data.xml

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!--Email template -->
<record id="repair_request_close_email_template" model="mail.template">
<field name="name">Repair Request Closed: Send by email</field>
<field name="model_id" ref="base_machine_repair_management.model_machine_repair"/>
<field name="email_from">{{object.customer_id.email}}</field>
<field name="email_to">{{ object.email}}</field>
<field name="subject">Machine Repair Request Closing (Ref{{object.repair_seq}})</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
<t t-out="object.customer_id.name"/>
<br/>
<br/>
Here is your repair request with reference
<t t-out="object.repair_seq"/>
is closed on
<t t-out="object.closing_date"/>
<br/>
<br/>
<br/>
<br/>
Do not hesitate to contact us if you have any questions.
</p>
</div>
</field>
</record>
</data>
</odoo>

6
base_machine_repair_management/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <base_machine_repair_management>
#### 24.04.2024
#### Version 17.0.1.0.0
#### ADD
- Initial commit for Base Machine Repair Management

34
base_machine_repair_management/models/__init__.py

@ -0,0 +1,34 @@
"""Machine Repair management"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import machine_consume
from . import machine_diagnosis
from . import machine_repair
from . import machine_service_type
from . import machine_services
from . import machine_workorder
from . import product_product
from . import repair_team
from . import repair_timesheet
from . import res_partner
from . import sale_order
from . import team_member

41
base_machine_repair_management/models/machine_consume.py

@ -0,0 +1,41 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class MachineConsume(models.Model):
"""This is the class for machine consume"""
_name = 'machine.consume'
_description = "Machine Consume"
_rec_name = "consume_id"
consume_id = fields.Many2one('machine.repair', string="Consumer",
help="Consumer of the repair")
machine_id = fields.Many2one('product.product', string='Machine',
help="Machine for consume",
domain=[('is_machine', '=', True)])
qty = fields.Float(string='Quantity', help="Quantity of the machine")
uom = fields.Many2one('uom.uom', string="Uom", help="Machine uom")
dia_estimate_id = fields.Many2one('machine.diagnosis',
string="Machine Diagnosis",
help="Diagnosis of machine")
hour = fields.Float(string='Duration', help="Duration for the machine")

92
base_machine_repair_management/models/machine_diagnosis.py

@ -0,0 +1,92 @@
"""Machine Diagnosis"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models
class MachineDiagnosis(models.Model):
"""The class is used for the machine diagnosis"""
_name = 'machine.diagnosis'
_description = "Machine Diagnosis"
_rec_name = 'diagnosis_seq'
project_id = fields.Many2one('project.project', string='Project',
help="The project name")
customer_id = fields.Many2one('res.partner', string="Customer",
help="the customer for the project",
required=True)
deadline = fields.Date(string='DeadLine', help="Deadline for the project",
required=True )
diagnosis_seq = fields.Char(string='Diagnosis Sequence', required=True,
copy=False,
help="Sequence number for diagnosis",
readonly=True, index=True,
default=lambda self: 'New')
note = fields.Html(string="Note", help="Extra note for the project")
notes = fields.Html(string="Notes", help="Notes for thr project")
part_ids = fields.One2many('machine.consume',
'dia_estimate_id',
help="machine consumption", string="Parts")
timesheet_ids = fields.One2many('repair.timesheet',
'diagnosis_id',
string="TimeSheet",
help='Timesheet for the machine repair')
seq = fields.Char(string='Sequence', help="Sequence")
assigning_date = fields.Date(string="Date", help="Assigning Date")
machine_repair_ref_id = fields.Many2one('machine.repair',
string="Reference",
help="Machine repair reference")
@api.model
def create(self, vals):
"""Sequence generator"""
if vals.get('diagnosis_seq', 'New') == 'New':
vals['diagnosis_seq'] = self.env['ir.sequence'].next_by_code(
'machine.diagnosis') or 'New'
result = super().create(vals)
return result
def action_create_quotation(self):
"""Function to create quotation from machine diagnosis"""
quotation = self.env['sale.order'].create({
'partner_id': self.customer_id.id,
'date_order': self.deadline,
'machine_diag_ref': self.diagnosis_seq,
})
quotation.order_line = [(5, 0, 0)]
val = self.part_ids.mapped('machine_id')
for rec in val:
vals = {
'product_id': rec.id,
'name': rec.default_code,
'price_unit': rec.list_price,
}
quotation.order_line = [(0, 0, vals)]
return {
'res_model': 'sale.order',
'type': 'ir.actions.act_window',
'res_id': quotation.id,
'view_mode': 'form',
'target': 'current',
'context': "{'create': False ,}"
}

235
base_machine_repair_management/models/machine_repair.py

@ -0,0 +1,235 @@
"""Machine Repair"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models
from odoo.exceptions import ValidationError
class MachineRepair(models.Model):
"""This is used for the machine repair management"""
_name = 'machine.repair'
_description = "Machine Repair"
_rec_name = "repair_seq"
name = fields.Char(string='Name', help="Name of the repair")
repair_seq = fields.Char(string='Repair Sequence', required=True,
copy=False, help="Repair sequence",
readonly=True, index=True,
default=lambda self: 'New')
customer_id = fields.Many2one('res.partner', string="Customer",
help="Name of the customer", required=True)
customer_email = fields.Char(string='Customer E-mail',
related="customer_id.email",
help="Email of the customer")
phone = fields.Char(string='Phone', help="Customer phone number",
related="customer_id.phone")
repairing_reason = fields.Char(string='Repairing Reason',
help="Reason for the repairing")
machine_brand = fields.Char(string='Machine brand',
help="Brand of the machine")
machine_model = fields.Char(string="Model", help="Model of the Machine")
manufacturing_year = fields.Date(string='Manufacturing Year',
help="Manufacturing date of the machine")
priority = fields.Selection(
[('low', 'Low'), ('high', 'High'), ('middle', 'Middle')],
string="Priority", help="Priority for repairing", required=True)
repair_detail = fields.Text(string='Repair Reason In Detail',
help="Repairing Details", required=True)
technician_id = fields.Many2one('hr.employee', string="Technician",
help="The technician for the repair")
technician_member_ids = fields.Many2many('hr.employee',
string="Technical member")
email = fields.Char('Email', related='technician_id.work_email',
help="Technician Email")
company_id = fields.Many2one('res.company', string="Company",
help="Company Of technician")
project_id = fields.Many2one('project.project', string="Project",
help="Project of that repairing")
department_id = fields.Many2one('hr.department', string="Department",
help="Department of the technician")
repir_req_date = fields.Date(string='Repair Date',
help="Repair requesting date")
closing_date = fields.Date(string='Closing Date',
help="The repair closing date")
repairing_duration = fields.Float(string="Repairing Duration",
help="The duration of the repairing")
is_repaired = fields.Boolean(string='Is Repaired',
help="Which is used to identify the order is "
"repaired or not")
machine_id = fields.Many2one('product.product', string="Machine",
help="Machine name",
domain=[('is_machine', '=', True)])
machine_categ_id = fields.Many2one('product.category',
string='Machine Category',
help="the category of the machine")
color = fields.Char(string='Color', help="Color of the machine")
damage = fields.Char(string='Damage', help="Damage of machine")
warranty = fields.Boolean(string='Warranty', help="Warranty of the machine")
Warranty_exp_date = fields.Date(string="Warranty Expiration Date",
help="The Machine Warranty Expiration date")
authority_name = fields.Char(string='Authority Name',
help="The Authority of the technician")
service_id = fields.Many2one('machine.service', string="Service",
help="The service for the machine")
customer_rating = fields.Char(string='Customer Rating',
help="Customer Review")
customer_comments = fields.Char(string='Customer Comments',
help="Comments of the customer")
extra_info = fields.Html(string="Information", help="Extra Information")
repair_team_id = fields.Many2one('repair.team', string="Repair team",
help="The team of repairing")
nature_of_service_id = fields.Many2one('machine.service',
string="Nature of Service",
help="The nature of the machine service")
repair_type_id = fields.Many2many('machine.service.type',
string="Repair Types",
help="The type of the repairs")
problem = fields.Char(string='Problem', help="Problem of the machine")
note = fields.Html(string='Note', help="Note for the repairing")
state = fields.Selection(string='Status', required=True, readonly=True,
copy=False, selection=[('new', 'New'),
('assigned', 'Assigned'),
('closed', 'Closed'),
('send', 'Mail Send'),
('reopen', 'Re Opened'),
], default='new',
help="stages of machine repair request")
image1 = fields.Binary(string='Image 1', help="Machine images")
image2 = fields.Binary(string='Image 2', help="Machine images")
image3 = fields.Binary(string='Image 3', help="Machine images")
image4 = fields.Binary(string='Image 4', help="Machine images")
image5 = fields.Binary(string='Image 5', help="Machine images")
timesheet_ids = fields.One2many('repair.timesheet', 'inverse_id',
string="Timesheet",
help="Timesheet for the machine repairing")
consume_part_ids = fields.One2many('machine.consume', 'consume_id',
string="Consumer Parts",
help="Machine consumption")
is_team_assigned = fields.Boolean(string='Is team assigned',
help='To check whether the repair team is assigned or not')
@api.model
def create(self, vals):
"""Sequence generator"""
if vals.get('repair_seq', 'New') == 'New' or vals.get('repair_seq',
'') == '':
vals['repair_seq'] = self.env['ir.sequence'].next_by_code(
'machine.repair') or 'New'
result = super().create(vals)
return result
@api.onchange('repair_team_id')
def onchange_repair_team(self):
val = self.env['repair.team'].search(
[('id', '=', self.repair_team_id.id)]).mapped('member_ids').mapped(
'member_id').ids
self.technician_member_ids = val
def action_create_diagnosis(self):
"""This is used to create the diagnosis"""
self.env['machine.diagnosis'].create({
'project_id': self.project_id.id,
'customer_id': self.customer_id.id,
'deadline': self.closing_date,
})
return {
'res_model': 'machine.diagnosis',
'type': 'ir.actions.act_window',
'res_id': self.id,
'view_mode': 'form',
'target': 'current',
'context': "{'create': False}"
}
def action_create_work_order(self):
"""Creating job order from repair request"""
self.env['machine.workorder'].create({
'customer_id': self.customer_id.id,
'date': self.repir_req_date,
'priority': self.priority,
})
return {
'res_model': 'machine.workorder',
'type': 'ir.actions.act_window',
'res_id': self.id,
'view_mode': 'form',
'target': 'current',
'context': "{'create': False ,}"
}
def action_reopen(self):
"""Reopen the repair"""
self.state = 'reopen'
def action_close_repairing(self):
"""Repair closed"""
self.state = 'closed'
def action_assign_teams(self):
"""Assigning repair to teams"""
if self.repair_team_id:
val = self.env['repair.team'].search(
[('id', '=', self.repair_team_id.id)])
val.write({
'repair_work_ids': [(4, self.id)],
})
self.is_team_assigned = True
self.state = 'assigned'
else:
self.state = 'new'
raise ValidationError("There Is No Repair Team Is Specified")
def action_send_email(self):
"""Sending mails to customers by informing closing the repair request"""
template_id = self.env.ref(
'base_machine_repair_management.repair_request_close_email_template').id
self.env['mail.template'].browse(template_id).send_mail(self.id,
force_send=True)
self.state = "send"
def action_print_repair_request_report(self):
"""Which returns the report action"""
return self.env.ref(
"base_machine_repair_management.action_repair_report").report_action(
self)
class RepairTimesheet(models.Model):
"""This is used for thr timesheet of repair management"""
_name = 'repair.timesheet'
_description = "Timesheet Of The Repair"
_rec_name = 'user_id'
inverse_id = fields.Many2one('machine.repair', string="Machine Repair",
help="Inverse field of the models "
"'machine.repair'")
date = fields.Date(string='Date', help="Time sheet creation date")
user_id = fields.Many2one('res.users', string="User",
help="Time sheet for the user")
project_id = fields.Many2one('project.project', string="Project",
help="Project for the user")
description = fields.Char(string='Description',
help="Description for the user's timesheet")
hours = fields.Float(string='Duration', help="Duration of the Work")
diagnosis_id = fields.Many2one('machine.diagnosis',
string="Diagnosis",
help="Machine diagnosis")

34
base_machine_repair_management/models/machine_service_type.py

@ -0,0 +1,34 @@
"""Machine Service Type"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class MachineServiceType(models.Model):
"""This class is used for the service type for the machine"""
_name = 'machine.service.type'
_description = "Machine Service Type"
_rec_name = "service_type_name"
service_type_name = fields.Char(string='Name',
help="Name of the service type")
code = fields.Char(string='Code', help="Code for the service type")

33
base_machine_repair_management/models/machine_services.py

@ -0,0 +1,33 @@
"""Machine service"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class MachineService(models.Model):
"""This is used to add the machine service"""
_name = 'machine.service'
_description = 'Machine Service'
name = fields.Char(string='Name', help="Machine Service")
service_type = fields.Many2one('machine.service.type',
string="Machine Service Type")

49
base_machine_repair_management/models/machine_workorder.py

@ -0,0 +1,49 @@
"""Machine Work order"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class MachineWorkOrder(models.Model):
"""This is used for the machine work order"""
_name = 'machine.workorder'
_description = "Machine Work Order"
_rec_name = "work_order_id"
work_order_id = fields.Many2one('machine.service', string="Work Order",
help="Work order name for machine")
customer_id = fields.Many2one('res.partner', string="Customer",
help="Customer for the work order")
date = fields.Date(string="Date", help="Work order date")
priority = fields.Selection(
[('low', 'Low'), ('high', 'High'), ('middle', 'Middle')],
string="Priority", help="Work Order Priority")
scheduled_date = fields.Date(string='Scheduled Date',
help="scheduled date of work order")
planned_end_date = fields.Date(string='Planned End date',
help="Work order end date")
duration = fields.Float(string='Duration', help="Wok order duration")
start_date = fields.Date(string='Start Date',
help="Start date of work order")
end_date = fields.Date(string='End Date', help="End date of the work order")
hours_worked = fields.Float(string="Hours Spent",
help="Total hours spent for work order")

33
base_machine_repair_management/models/product_product.py

@ -0,0 +1,33 @@
"""Products as machines and machine parts"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class Product(models.Model):
_inherit = 'product.product'
is_machine = fields.Boolean(string="Is Machine", default=False,
help="which is used to identify the machines.")
is_machine_parts = fields.Boolean(string="Is Machine Part", default=False,
help="which is used to identify the "
"machine parts.")

42
base_machine_repair_management/models/repair_team.py

@ -0,0 +1,42 @@
"""Repair Team"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class RepairTeam(models.Model):
"""This is used to set the repair team"""
_name = 'repair.team'
_description = 'Repair Team'
_rec_name = "team_name"
team_name = fields.Char(string='Name', help="Name of the Team", required=True)
team_lead_id = fields.Many2one('hr.employee',
string="Team Lead",
help="Team lead of the team", required=True)
repair_work_ids = fields.Many2many('machine.repair',
string='Repair Reference', readonly=True,
help='Reference of the machine repair')
member_ids = fields.One2many('team.member',
'inverse_id', string="Members",
help="Team members pof the repair team")

44
base_machine_repair_management/models/repair_timesheet.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class RepairTimesheet(models.Model):
"""This is used for thr timesheet of repair management"""
_name = 'repair.timesheet'
_description = "Timesheet Of The Repair"
_rec_name = 'user_id'
inverse_id = fields.Many2one('machine.repair', string="Machine Repair",
help="Inverse field of the models "
"'machine.repair'")
date = fields.Date(string='Date', help="Time sheet creation date")
user_id = fields.Many2one('res.users', string="User",
help="Time sheet for the user")
project_id = fields.Many2one('project.project', string="Project",
help="Project for the user")
description = fields.Char(string='Description',
help="Description for the user's timesheet")
hours = fields.Float(string='Duration', help="Duration of the Work")
diagnosis_id = fields.Many2one('machine.diagnosis',
string="Diagnosis",
help="Machine diagnosis")

39
base_machine_repair_management/models/res_partner.py

@ -0,0 +1,39 @@
"""Partners"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models
class ResPartner(models.Model):
"""This is used to return the partner's repair requests"""
_inherit = 'res.partner'
def action_repair_requests(self):
"""It returns the repair requests for the customers"""
return {
'type': 'ir.actions.act_window',
'name': 'Machine Repair Requests',
'view_mode': 'tree',
'res_model': 'machine.repair',
'domain': [('customer_id', '=', self.id)],
'context': "{'create': False}"
}

31
base_machine_repair_management/models/sale_order.py

@ -0,0 +1,31 @@
"""Sale Order"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class SaleOrder(models.Model):
"""Inheriting Sale order to add a new field"""
_inherit = 'sale.order'
machine_diag_ref = fields.Char(string='Diagnosis Reference',
help="Reference for diagnosis")

37
base_machine_repair_management/models/team_member.py

@ -0,0 +1,37 @@
"""Repair Team"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class TeamMember(models.Model):
"""This is used for the team members of repair team"""
_name = 'team.member'
_description = 'Team Member'
_rec_name = 'member_id'
inverse_id = fields.Many2one('repair.team', string="Repair Team",
help="Repair team for machine")
member_id = fields.Many2one('hr.employee', string="Member",
help="member of the repair team")
login = fields.Char(related='member_id.work_email', string="Login",
help="Login details for member")

23
base_machine_repair_management/report/__init__.py

@ -0,0 +1,23 @@
"""Machine repair management"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import machine_repair_report

46
base_machine_repair_management/report/machine_repair_report.py

@ -0,0 +1,46 @@
"""Machine repair management"""
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Dhanya B (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class MachineRepairReport(models.AbstractModel):
"""This is used to return the report data"""
_name = 'report.base_machine_repair_management.machine_repair_report'
_description = 'Report for machine repair management'
def _get_report_values(self, docids, data=None):
"""This function is used to get the report data"""
if data['from_date'] and data['to_date']:
vals = self.env['machine.repair'].search(
[('repir_req_date', '>=', data['from_date']),
('repir_req_date', '<=', data['to_date'])])
else:
vals = self.env['machine.repair'].search([])
return {
'date': fields.Date.today(),
'doc_ids': docids,
'doc_model': 'machine.repair',
'repair_requests': vals,
'company': self.env.company,
'data': data,
}

15
base_machine_repair_management/report/machine_repair_report.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Which is used to create the machine repair report action-->
<record id="action_repair_report" model="ir.actions.report">
<field name="name">Machine Repair Report</field>
<field name="model">machine.repair</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">base_machine_repair_management.machine_repair_report</field>
<field name="report_file">base_machine_repair_management.machine_repair_report</field>
<field name="print_report_name">'Machine Repair Report - %s' % (object.name)
</field>
<field name="binding_type">report</field>
<field name="attachment_use">True</field>
</record>
</odoo>

137
base_machine_repair_management/report/repair_report_templates.xml

@ -0,0 +1,137 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- This is the machine report template-->
<template id="machine_repair_report">
<t t-call="web.external_layout">
<t t-call="web.html_container">
<div class="page">
<div class="oe_structure"/>
<div class="text-center">
<h2>Machine Repair Report</h2>
</div>
<t t-if="repair_requests">
<t t-foreach="repair_requests" t-as="repair">
<div>
<div>
<span>Customer Name:</span>
<t t-esc="repair.customer_id.name"/>
<br/>
<span>Customer Email:</span>
<t t-esc="repair.customer_email"/>
<br/>
<span>Phone:</span>
<t t-esc="repair.phone"/>
<br/>
</div>
<br/>
</div>
<h3>
<u>Machine Details</u>
</h3>
<table class="table table-sm o_main_table mt-4">
<thead>
<tr>
<th name="th_description">
Machine Name
</th>
<t t-if="repair.machine_categ_id">
<th name="th_quantity"
class="text-end">
Machine Category
</th>
</t>
<th name="th_description">
Color
</th>
<th name="th_description">
Brand
</th>
<th name="th_description">
Model
</th>
<th name="th_description">
Manufacturing Year
</th>
<th name="th_description">
Priority
</th> <th name="th_description">
Warranty
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span t-field="repair.machine_id.name"/>
</td>
<td>
<t t-esc="repair.machine_categ_id.name"/>
</td>
<td>
<t t-esc="repair.color"/>
</td>
<td>
<t t-esc="repair.machine_brand"/>
</td>
<td>
<t t-esc="repair.machine_model"/>
</td>
<td>
<t t-esc="repair.manufacturing_year"/>
</td>
<td>
<t t-esc="repair.priority"/>
</td>
<td>
<t t-esc="repair.warranty"/>
</td>
</tr>
</tbody>
</table>
<h3>
<u>Other Information</u>
</h3>
<div>
<span>Request Date:</span>
<t t-esc="repair.repir_req_date"/>
<br/>
<span>Repair Date:</span>
<t t-esc="repair.closing_date"/>
<br/>
<span>Is Repaired:</span>
<t t-esc="repair.is_repaired"/>
<br/>
<span>Repairing Duration:</span>
<t t-esc="repair.repairing_duration"/>
<br/>
</div>
<br/><br/>
<h3>
<u>Time Sheets</u>
</h3>
<div>
<span>Request Date:</span>
<t t-esc="repair.repir_req_date"/>
<br/>
<span>Repair Date:</span>
<t t-esc="repair.closing_date"/>
<br/>
<span>Is Repaired:</span>
<t t-esc="repair.is_repaired"/>
<br/>
<span>Repairing Duration:</span>
<t t-esc="repair.repairing_duration"/>
<br/>
</div>
</t>
</t>
<t t-else="">
<h3>
There is no repair request...
</h3>
</t>
</div>
</t>
</t>
</template>
</odoo>

21
base_machine_repair_management/security/base_machine_repair_management_groups.xml

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- This is used for creating user groups-->
<record model="ir.module.category" id="base_machine_repair_module_management">
<field name="name">Machine</field>
<field name="description">Machine Repair</field>
<field name="sequence">10</field>
</record>
<record id="repair_user_access" model="res.groups">
<field name="name">Repair User/Technician</field>
<field name="category_id" ref="base_machine_repair_module_management"/>
</record>
<record id="repair_manager_access" model="res.groups">
<field name="name">Repair Manager</field>
<field name="category_id" ref="base_machine_repair_module_management"/>
</record>
<record id="repair_sales_users_access" model="res.groups">
<field name="name">Sales Persons</field>
<field name="category_id" ref="base_machine_repair_module_management"/>
</record>
</odoo>

11
base_machine_repair_management/security/ir.model.access.csv

@ -0,0 +1,11 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access.access_machine_repair_user,access.machine.repair.user,model_machine_repair,base.group_user,1,1,1,1
access.access_repair_team_user,access.repair.team.user,model_repair_team,base.group_user,1,1,1,1
access.access_team_member_user,access.team.member,model_team_member,base.group_user,1,1,1,1
access.access_machine_service_user,access.machine.service.user,model_machine_service,base.group_user,1,1,1,1
access.access_machine_service_type_user,access.machine.service.type.user,model_machine_service_type,base.group_user,1,1,1,1
access.access_repair_timesheet_user,access.repair.timesheet.user,model_repair_timesheet,base.group_user,1,1,1,1
access.access_machine_consume_user,access.machine.consume.user,model_machine_consume,base.group_user,1,1,1,1
access.access_machine_diagnosis_user,access.machine.diagnosis.user,model_machine_diagnosis,base.group_user,1,1,1,1
access.access_machine_workorder_user,access.machine.workorder.user,model_machine_workorder,base.group_user,1,1,1,1
access.access_repair_report_wizard_user,access.repair.report.wizards.user,model_repair_report,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access.access_machine_repair_user access.machine.repair.user model_machine_repair base.group_user 1 1 1 1
3 access.access_repair_team_user access.repair.team.user model_repair_team base.group_user 1 1 1 1
4 access.access_team_member_user access.team.member model_team_member base.group_user 1 1 1 1
5 access.access_machine_service_user access.machine.service.user model_machine_service base.group_user 1 1 1 1
6 access.access_machine_service_type_user access.machine.service.type.user model_machine_service_type base.group_user 1 1 1 1
7 access.access_repair_timesheet_user access.repair.timesheet.user model_repair_timesheet base.group_user 1 1 1 1
8 access.access_machine_consume_user access.machine.consume.user model_machine_consume base.group_user 1 1 1 1
9 access.access_machine_diagnosis_user access.machine.diagnosis.user model_machine_diagnosis base.group_user 1 1 1 1
10 access.access_machine_workorder_user access.machine.workorder.user model_machine_workorder base.group_user 1 1 1 1
11 access.access_repair_report_wizard_user access.repair.report.wizards.user model_repair_report base.group_user 1 1 1 1

BIN
base_machine_repair_management/static/description/assets/icons/capture (1).png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
base_machine_repair_management/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
base_machine_repair_management/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
base_machine_repair_management/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
base_machine_repair_management/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
base_machine_repair_management/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
base_machine_repair_management/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
base_machine_repair_management/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
base_machine_repair_management/static/description/assets/icons/img.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
base_machine_repair_management/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
base_machine_repair_management/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
base_machine_repair_management/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
base_machine_repair_management/static/description/assets/icons/photo-capture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
base_machine_repair_management/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
base_machine_repair_management/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
base_machine_repair_management/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
base_machine_repair_management/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
base_machine_repair_management/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
base_machine_repair_management/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
base_machine_repair_management/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
base_machine_repair_management/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
base_machine_repair_management/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
base_machine_repair_management/static/description/assets/misc/Cybrosys R.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

33
base_machine_repair_management/static/description/assets/misc/email.svg

@ -0,0 +1,33 @@
<svg width="80" height="81" viewBox="0 0 80 81" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="3116889_design_email_material_communication_mail_icon 1" clip-path="url(#clip0_81_366)">
<g id="layer1">
<path id="rect3851" d="M74.6067 0.730957H5.5424C2.75742 0.730957 0.499756 3.01685 0.499756 5.83664V75.7642C0.499756 78.584 2.75742 80.8699 5.5424 80.8699H74.6067C77.3916 80.8699 79.6493 78.584 79.6493 75.7642V5.83664C79.6493 3.01685 77.3916 0.730957 74.6067 0.730957Z" fill="#DB534B"/>
<g id="Clip path group">
<mask id="mask0_81_366" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="1" y="5" width="78" height="76">
<g id="clipPath4206">
<path id="rect4208" d="M73.6244 5.2915H6.62595C3.92428 5.2915 1.73413 7.4473 1.73413 10.1066V76.0546C1.73413 78.7139 3.92428 80.8697 6.62595 80.8697H73.6244C76.3261 80.8697 78.5162 78.7139 78.5162 76.0546V10.1066C78.5162 7.4473 76.3261 5.2915 73.6244 5.2915Z" fill="white"/>
</g>
</mask>
<g mask="url(#mask0_81_366)">
<g id="g4145" opacity="0.489612">
<g id="g4147">
<path id="path4149" d="M65.8115 41.5171C65.8115 54.9863 54.4292 65.9053 40.3884 65.9053L198.828 221.861C212.869 221.861 224.251 210.942 224.251 197.472L65.8115 41.5171Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4151" d="M40.3884 65.9051C33.2495 65.9051 26.7979 63.0825 22.1802 58.5371L180.62 214.492C185.237 219.038 191.689 221.86 198.828 221.86L40.3884 65.9051Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4153" d="M22.1802 58.5373C17.7157 54.1428 14.9653 48.1381 14.9653 41.5171L173.405 197.472C173.405 204.093 176.155 210.098 180.62 214.493L22.1802 58.5373Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4155" d="M14.9653 41.5171C14.9653 28.0479 26.3476 17.1289 40.3884 17.1289L198.828 173.084C184.787 173.084 173.405 184.003 173.405 197.472L14.9653 41.5171Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4157" d="M40.3884 17.1289C47.5273 17.1289 53.9789 19.9516 58.5966 24.4969L217.036 180.452C212.418 175.907 205.967 173.084 198.828 173.084L40.3884 17.1289Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4159" d="M58.5964 24.4971C63.0609 28.8916 65.8113 34.8963 65.8113 41.5173L224.251 197.473C224.251 190.852 221.5 184.847 217.036 180.452L58.5964 24.4971Z" fill="black" fill-opacity="0.0588235"/>
</g>
<path id="path4111" d="M65.8114 41.5171C65.8114 54.9863 54.4291 65.9053 40.3884 65.9053C26.3476 65.9053 14.9653 54.9863 14.9653 41.5171C14.9653 28.0479 26.3476 17.1289 40.3884 17.1289C54.4291 17.1289 65.8114 28.0479 65.8114 41.5171Z" fill="black" fill-opacity="0.0588235"/>
</g>
</g>
</g>
<path id="path3864" d="M17.506 17.5386H62.9018C64.4068 17.5386 65.8501 18.1439 66.9143 19.2214C67.9784 20.2988 68.5763 21.7602 68.5763 23.284V57.7564C68.5763 58.5109 68.4295 59.258 68.1443 59.9551C67.8592 60.6521 67.4412 61.2855 66.9143 61.819C66.3873 62.3525 65.7618 62.7757 65.0733 63.0645C64.3849 63.3532 63.647 63.5018 62.9018 63.5018H17.506C14.3567 63.5018 11.8315 60.9164 11.8315 57.7564V23.284C11.8315 20.0953 14.3567 17.5386 17.506 17.5386ZM40.2039 37.6475L62.9018 23.284H17.506L40.2039 37.6475ZM17.506 57.7564H62.9018V30.0923L40.2039 44.4271L17.506 30.0923V57.7564Z" fill="white"/>
</g>
</g>
<defs>
<clipPath id="clip0_81_366">
<rect width="80" height="81" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

3
base_machine_repair_management/static/description/assets/misc/phone.svg

@ -0,0 +1,3 @@
<svg width="36" height="44" viewBox="0 0 36 44" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Vector" d="M7.25 19.3903C10.13 26.0689 14.76 31.5322 20.43 34.9305L24.83 29.7268C25.38 29.0778 26.17 28.889 26.86 29.1486C29.1 30.0218 31.51 30.4938 34 30.4938C35.11 30.4938 36 31.544 36 32.8537V41.1135C36 42.4233 35.11 43.4734 34 43.4734C15.22 43.4734 0 25.5143 0 3.35456C0 2.0448 0.9 0.994629 2 0.994629H9C10.11 0.994629 11 2.0448 11 3.35456C11 6.29268 11.4 9.1364 12.14 11.7795C12.36 12.5937 12.2 13.5259 11.65 14.1749L7.25 19.3903Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 565 B

9
base_machine_repair_management/static/description/assets/misc/star (1) 2.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 26 KiB

9
base_machine_repair_management/static/description/assets/misc/support (1) 1.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 43 KiB

6
base_machine_repair_management/static/description/assets/misc/support-email.svg

@ -0,0 +1,6 @@
<svg width="49" height="37" viewBox="0 0 49 37" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group">
<path id="Vector" d="M2.23798 3.59132C3.53363 4.39742 21.5313 15.9748 22.2027 16.3917C22.8741 16.8087 23.5573 17.0032 24.6173 17.0032C25.6774 17.0032 26.3606 16.8087 27.0319 16.3917C27.7033 15.9748 45.701 4.39742 46.9967 3.59132C47.4796 3.29945 48.2923 2.77131 48.469 2.17368C48.7753 1.11741 48.4455 0.714355 47.138 0.714355H24.6173H2.09664C0.789214 0.714355 0.459412 1.13131 0.765656 2.17368C0.942335 2.78521 1.75506 3.29945 2.23798 3.59132Z" fill="white"/>
<path id="Vector_2" d="M48.0214 4.21664C47.0555 4.80037 38.3865 12.0831 32.6503 16.4611L42.3323 29.3171C42.5679 29.5951 42.6739 29.9286 42.5443 30.0954C42.403 30.2483 42.0967 30.1649 41.8494 29.9008L30.2357 18.3374C28.4807 19.6716 27.2439 20.5889 27.0319 20.7279C26.1249 21.2699 25.4889 21.3394 24.6173 21.3394C23.7457 21.3394 23.1096 21.2699 22.2027 20.7279C21.9789 20.5889 20.7539 19.6716 18.9989 18.3374L7.38519 29.9008C7.14961 30.1788 6.83159 30.2622 6.69025 30.0954C6.54891 29.9425 6.65491 29.5951 6.89048 29.3171L16.5607 16.4611C10.8245 12.0831 2.06126 4.80037 1.09541 4.21664C0.0588929 3.59121 0 4.32783 0 4.89766C0 5.46749 0 33.3893 0 33.3893C0 34.6819 1.61367 36.2941 2.76797 36.2941H24.6173H46.4666C47.6209 36.2941 48.999 34.668 48.999 33.3893C48.999 33.3893 48.999 5.4536 48.999 4.89766C48.999 4.31393 49.0697 3.59121 48.0214 4.21664Z" fill="white"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

17
base_machine_repair_management/static/description/assets/misc/tick-mark.svg

@ -0,0 +1,17 @@
<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="52" height="52" fill="#F5F5F5"/>
<g clip-path="url(#clip0_0_1)">
<rect width="1440" height="7504" transform="translate(-107 -1660)" fill="white"/>
<rect x="-45" y="-203" width="1305" height="937" rx="19" fill="#FFF5FC"/>
<rect width="52" height="52" fill="url(#pattern0)"/>
</g>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_0_1" transform="scale(0.00387597)"/>
</pattern>
<clipPath id="clip0_0_1">
<rect width="1440" height="7504" fill="white" transform="translate(-107 -1660)"/>
</clipPath>
<image id="image0_0_1" width="258" height="258" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQIAAAECCAYAAAAVT9lQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAJJ0lEQVR4nO3dYZXjNhQGUDEohEAohEAohEAYCIawEAxhIQRCIQTCQmhX202bTWcmcWzpSda953y/J9JYL5EsyykBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD1/f49f37PXwXztVprgMXeUtkCkDNXaw2wyOF7zql8EXir1SBgmTw4v6XyReBUq0HA835L/8zVSxeAXGSOldoELPBHqvMrIP+N3yu1CXhS/hXwJZUvAIoANKrGbcFr8t/5rU6zgGfVWhBUBKBBtRYEFQFoVJ4KXJIiAMOqsUNQEYBG1Z4K/PXz7ykC0IjaU4GcuUrLgKecUt0CoAhAQ/JP8jwgFQEY1CHV2yCkCECDaj0rcJ8/azQOeGxK9QvAtQi4OwDBIm4NKgLQkJoPDCkC0KCo9QBFABpRe6uwIgANidofcM23pAhAqDwAo9YDrkXAyUIQKA/AqPUARQAacEqxRSBHEYBAkYuC15yKtxL40JwUARhWXhQ8p/gi4DVkEOSQYu8MXDOXbijwvug7A4oABIvcLnwbuwYhyCnFFwBFAALVet/go+RfI4fCbQXekefi0QXgWgRsGILKWrk9eM0fZZsL3It+cOg+p7LNBe5Fnib0XuayzQXutbJHQBGAIK0VAbcJobI8B2+pCDhhCCrLRSB64N8XAbcJoaLWikCO24RQ0ZTiB/19PFIMFc0pftDfZy7aYuAXLRYBLyeFilosApfkDgFU02IRcIcAKmnt4aHbuEMAFbT28NBtpoLtBn5quQh8Ldhu4KeWi4BnCKCClouAo8aggpaLQM6xXNOBrPUiYPswFNZ6EZjLNR3IWi8CFgehsNaLgMVBKKz1IpBj5yAU1EMRmIq1HuiiCNg5CAX1UAQuyeIgFNNDEfBYMRTUQxHIOZXqAKDd8wRuMxdrPdDkyUL3ceYgFNRDEbBpCArqoQjk2DQEhfRSBKZSHQCj+5LiB/gzOZfqABjdKcUP8GfibcVQSC9FIOdYqA9gaD0VgalQH8DQ8rdr9OB+NudCfQBDy/vy83w7eoA/E+sCUEBPRSDnWKYbYFz5m7WnIjCV6QYYVy9PEl5zLtMNMK7eioB1ASggf7tGD+4lOZbpBhjXnOIH9pJ8KdMNMK5enh+4xvkCsLFTih/YS+J8AdhYb0Ugx/kCsKG8YSh6UC/NXKQnaFb+h+d5oJ+AZfS2azDHy0oHk4vA9Z+fL9ZT7MfZnTyYLil+YC+N9xEM5LYI3Ca/osq3wXq9bRi65q1EZ9Cmj4rANflb7Bj26fYhF9ToQb003lM4kEdF4DZT0Gfs3ZI+biW2EA/klQvUQuIy+ad19KB+JccSnUF71nxLWUh8Tu6j6AH9SmwhHsSaInAbC4kf6/E2YY4txIPYqghcc0l+Rt47pD6LgFeXD2LrInCbqWI7WtbrbcIctwoHULIIXGMhsb9zBa5xq3AANYrANSMvJNbs563/Z9Z6di7q4hxtITEXv+gB/Wo8Vbhz0d9QlzTGQmJuY/RgfjVuFe5cdBG4zVS4rZF6vU2Yc0lj/WobTktF4Jo9LiT2fIcgx63CnWv14tzbQuI5xffpq5kK9AeNaf3n6h4WEucU34+vxu7BgZxS/AX3WS6p34XE1vv2sziAdEA9PAM/FWt9Gbl4RffZmtg9OKBejsbqZSExf8aWp1yPct6+S+hFLyfmtr6Q2PsdArsH6epwjFYXEucU3zdrYvcgP/SwXnDNJbW1kNhTIX0vHijiX72sF9xmKtITy+SCFN0Pa2JKwP/0eFFHLiTmv9vz4mDOcfNeYRemFH9xLk3EQmLvi4M5HijiU+cUf5G+kpoLiXOlNpXKJZkS8EC+QHr9yZsv8OP2XfKL3hcHc0r3ETuRL5Toi3VNpu275Ife+yXHlIBF8gUTfdGuydYLiT3/UrrtE1MCFut9QWzLhcTe+yLHGQO85JD6/xbMWbuQ2Puvo5xpRfvhx/bT6It4i1zSa4tke2i/MwbYxJziL+atMi1o9yHt4xeRKQGb2MMGmts8s5C4lzZPD9oJi/TyyPKzebSQODfwGdfGlIAi9rCZ5j7vLSTuYV0gx5SAYnp6ZPnZXNJ/C4mHtI91gend/x5sZA8baz4bPHtYFzAloIpjir/Y5eOYElDNlOIvePl/ps/+aVDCHn5G7ymmBIQ4pP2uF/QYUwLCnFL8ABBTAhowp/iBMHIuyePFNKDHU5D3lOPjfxHUsbctyL3EiUM0Z0rxA2OkXJIpAY06p/gBMkqOT/5PoLpDckuxRkwJaN5ent5rNV5VRjf2cM5fq/H2YrqxlxN+Wou3F9MdtxS3jSkB3drjqUZROS3se2jKOcUPot5zXtzr0JhDcktxTb6lbV/fBmHcUnw90wv9Dc2aU/yg6i0OG2F3PKW4PA4bYZfcUnw+04t9DF3IF3j0IGs9l2TPAAOw6/DzHF/vWujHIbml+FHmFf0K3Tml+EHXWmwjZkh7fJfimpzWdSf0ac/vUlya88q+hK4dU/wgjI5txJAcZDKt70Lo38gHmdhGDDdG3XV43KLzYE/yT+TogVkzTiOGD5xT/ACtEXsG4BOHNMYtRacRwwN7P+vwvF1Xwb7tedfhYcN+gl3b667DactOghHs7azDy7bdA+OYU/wA3irHjfsGhrGXsw7nrTsGRpO/SaMH8prYMwAb6fnBpLcC/QFD6nWK4KEi2FiPDyZ5NwEUMKX4wf1sPFQEBfVwdoEFQiishynCqVjrgX+1PEU4F2w3cKfVKcKhZKOBX7U4RZiKthh4V0tThEuyQAhhWpkiOHUIArUwRTgXbyXwUPQU4VC+icAzoqYIU43GAc+JmCJckgVCaE7tKYIFQmhUrSnCuVaDgOVqTREOtRoEvKb0FGGq1xRgjVJTBAuE0JFSU4RTzUYA6209RbBACB3a+tBTZxBCp45pmyLgDELo3Nr3IjiDEHZg7RTBAiHsxKtvV/aSEtiZr2l5ITiGfFKgmDxFyPP9Z4vAHPMxgdLyS0mfXSA8BH1GoIK8MehRIZjCPh1QxaPtx5e4jwbUlL/xPyoEDhyBQXy0t+Ac+aGA+t7bW+B5AhjQ7d4CzxPAoPItwm/J8wQwvLxw+Bb9IQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4DV/A/Mf3+pWEmbtAAAAAElFTkSuQmCC"/>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

9
base_machine_repair_management/static/description/assets/misc/whatsapp 1.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 38 KiB

33
base_machine_repair_management/static/description/assets/misc/whatsapp.svg

@ -0,0 +1,33 @@
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="3116884_whatsapp_square_chat_design_message_icon 1" clip-path="url(#clip0_81_382)">
<g id="layer1">
<path id="rect3851" d="M74.6066 0.72168H5.5424C2.75742 0.72168 0.499756 2.97935 0.499756 5.76433V74.8286C0.499756 77.6135 2.75742 79.8712 5.5424 79.8712H74.6066C77.3916 79.8712 79.6492 77.6135 79.6492 74.8286V5.76433C79.6492 2.97935 77.3916 0.72168 74.6066 0.72168Z" fill="#39BB59"/>
<g id="Clip path group">
<mask id="mask0_81_382" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="9" width="75" height="72">
<g id="clipPath4206">
<path id="rect4208" d="M75.7716 9.01709H11.1629C8.55758 9.01709 6.44556 11.0471 6.44556 13.5512V75.6502C6.44556 78.1543 8.55758 80.1843 11.1629 80.1843H75.7716C78.3769 80.1843 80.4889 78.1543 80.4889 75.6502V13.5512C80.4889 11.0471 78.3769 9.01709 75.7716 9.01709Z" fill="white"/>
</g>
</mask>
<g mask="url(#mask0_81_382)">
<g id="g4145" opacity="0.489612">
<g id="g4147">
<path id="path4149" d="M68.2374 43.1284C68.2374 55.8115 57.2611 66.0932 43.7212 66.0932L196.51 212.946C210.049 212.946 221.026 202.665 221.026 189.982L68.2374 43.1284Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4151" d="M43.7211 66.0932C36.8369 66.0932 30.6154 63.4353 26.1624 59.1553L178.951 206.008C183.404 210.289 189.625 212.946 196.51 212.946L43.7211 66.0932Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4153" d="M26.1623 59.1553C21.8571 55.0173 19.2048 49.363 19.2048 43.1284L171.993 189.982C171.993 196.216 174.645 201.87 178.951 206.008L26.1623 59.1553Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4155" d="M19.2048 43.1284C19.2048 30.4453 30.1811 20.1636 43.7211 20.1636L196.509 167.017C182.969 167.017 171.993 177.299 171.993 189.982L19.2048 43.1284Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4157" d="M43.7212 20.1636C50.6054 20.1636 56.8269 22.8215 61.2799 27.1015L214.068 173.955C209.615 169.675 203.394 167.017 196.51 167.017L43.7212 20.1636Z" fill="black" fill-opacity="0.0588235"/>
<path id="path4159" d="M61.2798 27.1016C65.585 31.2396 68.2373 36.8939 68.2373 43.1284L221.026 189.982C221.026 183.747 218.373 178.093 214.068 173.955L61.2798 27.1016Z" fill="black" fill-opacity="0.0588235"/>
</g>
<path id="path4111" d="M68.2373 43.1284C68.2373 55.8115 57.261 66.0932 43.7211 66.0932C30.1811 66.0932 19.2048 55.8115 19.2048 43.1284C19.2048 30.4453 30.1811 20.1636 43.7211 20.1636C57.261 20.1636 68.2373 30.4453 68.2373 43.1284Z" fill="black" fill-opacity="0.0588235"/>
</g>
</g>
</g>
<path id="path4074" d="M51.3896 43.6875C51.9673 43.9879 52.337 44.1497 52.4526 44.3808C52.5912 44.635 52.545 45.7904 51.9673 47.1076C51.5051 48.4017 49.1018 49.6496 48.0388 49.6958C46.9758 49.7421 46.9527 50.5277 41.1985 48.0089C35.4444 45.49 31.9781 39.3431 31.7008 38.9502C31.4235 38.5574 29.4823 35.7612 29.5748 32.9188C29.6903 30.0995 31.1693 28.7592 31.7701 28.2046C32.3247 27.6037 32.9487 27.5344 33.3415 27.6037H34.4276C34.7743 27.6037 35.2596 27.4651 35.6986 28.6437L37.2931 32.965C37.4318 33.2654 37.5242 33.6121 37.3163 33.9818L36.6923 34.9293L35.7911 35.8998C35.5138 36.1771 35.1902 36.4776 35.5138 37.0553C35.7911 37.6561 36.9465 39.5741 38.5641 41.1687C40.667 43.2022 42.5158 43.8724 43.0704 44.1728C43.625 44.4963 43.9716 44.4501 44.3182 44.0804L46.1901 41.9081C46.6291 41.3304 46.9989 41.4691 47.5304 41.6539L51.3896 43.6875ZM40.4128 16.0493C46.5417 16.0493 52.4195 18.484 56.7533 22.8178C61.0871 27.1515 63.5217 33.0293 63.5217 39.1582C63.5217 45.287 61.0871 51.1649 56.7533 55.4986C52.4195 59.8324 46.5417 62.2671 40.4128 62.2671C35.8604 62.2671 31.6315 60.9498 28.0496 58.6852L17.304 62.2671L20.8858 51.5214C18.6212 47.9396 17.304 43.7106 17.304 39.1582C17.304 33.0293 19.7386 27.1515 24.0724 22.8178C28.4061 18.484 34.284 16.0493 40.4128 16.0493ZM40.4128 20.6711C35.5098 20.6711 30.8075 22.6188 27.3405 26.0858C23.8735 29.5528 21.9257 34.2551 21.9257 39.1582C21.9257 43.1329 23.1736 46.8072 25.2996 49.8114L23.0812 56.4898L29.7596 54.2714C32.7638 56.3974 36.4381 57.6453 40.4128 57.6453C45.3159 57.6453 50.0182 55.6975 53.4852 52.2305C56.9522 48.7635 58.9 44.0613 58.9 39.1582C58.9 34.2551 56.9522 29.5528 53.4852 26.0858C50.0182 22.6188 45.3159 20.6711 40.4128 20.6711Z" fill="white"/>
</g>
</g>
<defs>
<clipPath id="clip0_81_382">
<rect width="80" height="80" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
base_machine_repair_management/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
base_machine_repair_management/static/description/assets/modules/2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
base_machine_repair_management/static/description/assets/modules/3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
base_machine_repair_management/static/description/assets/modules/4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
base_machine_repair_management/static/description/assets/modules/5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
base_machine_repair_management/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/001.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/002.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/003.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/004.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/005.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/006.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/007.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/008.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/009.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/010.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/011.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/012.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/013.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/014.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/015.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/016.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/017.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/018.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/019.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
base_machine_repair_management/static/description/assets/screenshots/img8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save