Browse Source

[FIX] Bug Fixed

pull/124/head
Ajmalcybrosys 6 years ago
parent
commit
fe5c59672a
  1. 25
      mobile_service_shop/models/mobile_service.py
  2. 62
      mobile_service_shop/static/description/index.html

25
mobile_service_shop/models/mobile_service.py

@ -5,12 +5,11 @@ import pytz
class MobileServiceShop(models.Model):
_name = 'mobile.service'
_rec_name = 'name'
_inherit = ['mail.thread', 'mail.activity.mixin']
name = fields.Char(string='Code', copy=False, default="New")
name = fields.Char(string='Service Number', copy=False, default="New")
person_name = fields.Many2one('res.partner', string="Customer Name", required=True,
domain="[('customer','=','True')]")
contact_no = fields.Char(related='person_name.mobile', string="Contact Number")
@ -23,7 +22,7 @@ class MobileServiceShop(models.Model):
zip = fields.Char(related='person_name.zip', string="Address")
country_id = fields.Many2one(related='person_name.country_id', string="Address")
brand_name = fields.Many2one('mobile.brand', string="Mobile Brand", required=True)
brand_name = fields.Many2one('mobile.brand', string="Mobile Brand")
is_in_warranty = fields.Boolean(
'In Warranty', default=False,
help="Specify if the product is in warranty.")
@ -36,7 +35,7 @@ class MobileServiceShop(models.Model):
imei_no = fields.Char(string="IMEI Number")
model_name = fields.Many2one('brand.model', string="Model",required=True, domain="[('mobile_brand_name','=',brand_name)]")
model_name = fields.Many2one('brand.model', string="Model", domain="[('mobile_brand_name','=',brand_name)]")
image_medium = fields.Binary(related='model_name.image_medium', store=True, attachment=True)
date_request = fields.Date(string="Requested date", default=fields.Date.context_today)
return_date = fields.Date(string="Return date", required=True)
@ -53,7 +52,8 @@ class MobileServiceShop(models.Model):
internal_notes = fields.Text(string="Internal notes")
invoice_count = fields.Integer(compute='_invoice_count', string='# Invoice', copy=False)
invoice_ids = fields.Many2many("account.invoice", string='Invoices', compute="_get_invoiced", readonly=True, copy=False)
invoice_ids = fields.Many2many("account.invoice", string='Invoices', compute="_get_invoiced", readonly=True,
copy=False)
first_payment_inv = fields.Many2one('account.invoice', copy=False)
@ -300,13 +300,11 @@ class MobileServiceShop(models.Model):
'mobile_brand': self.brand_name.brand_name,
'model_name': self.model_name.mobile_brand_models,
}
return self.env.ref('mobile_service_shop.mobile_service_ticket').report_action(self, data=data)
class MobileBrand(models.Model):
_name = 'mobile.brand'
_rec_name = 'brand_name'
@ -314,7 +312,6 @@ class MobileBrand(models.Model):
class MobileComplaintType(models.Model):
_name = 'mobile.complaint'
_rec_name = 'complaint_type'
@ -322,7 +319,6 @@ class MobileComplaintType(models.Model):
class MobileComplaintTypeTemplate(models.Model):
_name = 'mobile.complaint.description'
_rec_name = 'description'
@ -331,7 +327,6 @@ class MobileComplaintTypeTemplate(models.Model):
class MobileComplaintTree(models.Model):
_name = 'mobile.complaint.tree'
_rec_name = 'complaint_type_tree'
@ -343,7 +338,6 @@ class MobileComplaintTree(models.Model):
class MobileBrandModels(models.Model):
_name = 'brand.model'
_rec_name = 'mobile_brand_models'
@ -353,7 +347,6 @@ class MobileBrandModels(models.Model):
class MobileServiceTermsAndConditions(models.Model):
_name = 'terms.conditions'
_rec_name = 'terms_id'
@ -384,13 +377,13 @@ class ProductOrderLine(models.Model):
product_order_id = fields.Many2one('mobile.service')
product_id = fields.Many2one('product.product', string='Product',
domain="[('is_a_parts','=', True)]")
product_uom_qty = fields.Float(string='Used Quantity', default=1.0)
price_unit = fields.Float(string='Unit Price', default=0.0)
domain="[('is_a_parts','=', True)]", required=True)
product_uom_qty = fields.Float(string='Used Quantity', default=1.0, required=True)
price_unit = fields.Float(string='Unit Price', default=0.0, required=True)
qty_invoiced = fields.Float(string='Invoiced qty', readonly=True)
qty_stock_move = fields.Float(string='Stock Move Posted Qty', readonly=True)
part_price = fields.Char(compute='_compute_amount', string='Price', readonly=True, store=True)
product_uom = fields.Char(string='Unit of Measure')
product_uom = fields.Char(string='Unit of Measure', required=True)
@api.onchange('product_id')
def change_prod(self):

62
mobile_service_shop/static/description/index.html

@ -23,9 +23,10 @@
Overview
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
This module is an application for Mobile Service shop which helps in managing the daily activities inside a service center.
This module is integrated with accounting and inventory modules.This module has a feature for adding complaint templates
which makes it user-friendly application. It helps in generating service tickets also.
This module is exclusively designed for the mobile service shop for managing their daily activities
inside the service center. The module comes integrated with accounting and inventory modules maximizing
the efficiency. It comes embedded with features such as adding complaint templates,
making it a much user-friendly application. The module also helps in generating service tickets in the workplace.
</h3>
</div>
<div class="oe_row oe_spaced">
@ -34,7 +35,7 @@
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
<strong>Manager</strong> :- Manager has the complete access across mobile shop management <br/>
<strong>Manager</strong> :- Manager has the complete access over the mobile shop management. <br/>
<img src="https://www.cybrosys.com/images/ico-tick.png">
<strong>Mobile Technician</strong> :- Mobile Technician can read and write service requests and also update the parts usage.
</h3>
@ -58,13 +59,13 @@
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Service status tracking..</h3>
Tracking the service status.</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Integrated with accounting and sales module. </h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Access Rights From Multiple Level. </h3>
Multi-level access rights. </h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Mobile complaint templates.</h3>
@ -91,7 +92,7 @@
<h3 class="oe_slogan" style="text-align: left;padding: 1% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
When you install the module, an extra menu named Mobile Service is created.
Here you can see service requests and configure your mobile service shop.
Here you can see the service requests and thereafter configure your mobile service shop.
</h3>
</div>
<div class="oe_row oe_spaced">
@ -101,9 +102,8 @@
<h4>Mobile Service -> Service Request -> Create</h4>
<h3 class="oe_slogan" style="text-align: left;padding: 1% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
This is the service request creation form. Service request can be create according to the device brand and model.
Also we can assign the service request a technician and provide warranty details, customer details, IMEI no,
request and return dates etc....
This is the service request creation form. Service request can be created according to the device brand and model.
One can assign the technician, service request, provide with warranty details, customer details, IMEI no, request and return dates etc.
</h3>
</div>
<div class="oe_row oe_spaced">
@ -146,7 +146,7 @@
<h3 class="oe_slogan" style="text-align: left;padding: 1% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Product will be only visible in the parts inventory if 'is a mobile part' is checked.
<br>You can provide a brand, model and colour details from here.
<br>You can provide the brand, model and color details from here.
</h3>
</div>
<div class="oe_row oe_spaced">
@ -175,7 +175,7 @@
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 1% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
The parts used during the service process will be automatically added to invoice line.
The parts used during the service process will be automatically added to the invoice line.
</h3>
<div class="oe_row oe_spaced">
<img src="mobile-service-shop6.png" alt="" style="width: 95%;"/>
@ -198,7 +198,7 @@
<h3 class="oe_slogan" style="text-align: left;padding: 1% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
The system will send email notification to the customer for each stage in the service request.</br>
<br><I>Note:- You should configure outgoing and incoming e-mail settings from your odoo for email service.</I>
<br><I>Note:- You should configure outgoing and incoming e-mail settings from your Odoo for email service.</I>
</h3>
</div>
<div class="oe_row oe_spaced">
@ -270,6 +270,42 @@
<div class="oe_row oe_spaced">
<img src="mobile-service-shop13.png" alt="" style="width: 95%;"/>
</div>
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Mobile Service Management Pro
</h2>
<div class="oe_row oe_spaced">
<h4>An extended version of the module is also available in odoo apps.</h4>
<h5 class="oe_slogan" style="text-align: left;font-size: 22px;font-weight: 600;margin: 0px !important;">
Features
</h5>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Device details from IMEI number.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Customized pivot report.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Mobile service request report
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Parts usage report.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Complaint Type report.
</h3>
<h3 class="oe_slogan" style="text-align: left;padding: 1% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
Mobile Service Management Pro is an extended version of the module 'Mobile Service Management'
Using the module application, manager can seamlessly acquire the brand, model and manufacturing details of the device using the IMEI number.
In addition, it helps in saving your time and analyzing the service shop via varied generated reports. The reports include service report,
parts usage report, complaint type report and customized pivot report.
<br><br>You can download the pro version of this app from <a href="https://apps.odoo.com/apps/modules/12.0/mobile_service_shop_pro/">Mobile Service Management Pro</a>
</h3>
</div>
</div>
</section>

Loading…
Cancel
Save