Browse Source

[FIX] Bug Fixed 'mobile_service_shop'

pull/145/head
Ajmal JK 6 years ago
parent
commit
f14335b8f3
  1. 2
      mobile_service_shop/__manifest__.py
  2. 6
      mobile_service_shop/doc/RELEASE_NOTES.md
  3. 3
      mobile_service_shop/models/product_order_line.py
  4. 20
      mobile_service_shop/reports/service_ticket_template.xml
  5. 4
      mobile_service_shop/wizard/mobile_create_invoice.py

2
mobile_service_shop/__manifest__.py

@ -21,7 +21,7 @@
#############################################################################
{
'name': 'Mobile Service Management',
'version': '13.0.1.0.1',
'version': '13.0.1.1.2',
'summary': 'Module for managing mobile service shop daily activities.',
'category': 'Industries',
'author': 'Cybrosys Techno Solutions',

6
mobile_service_shop/doc/RELEASE_NOTES.md

@ -11,3 +11,9 @@ Initial Commit.
#### FIX
Bug Fixed.
#### 25.02.2020
#### Version 13.0.1.1.2
#### FIX
Bug Fixed In Invoice

3
mobile_service_shop/models/product_order_line.py

@ -69,12 +69,11 @@ class ProductOrderLine(models.Model):
'location_id': picking.picking_type_id.default_location_src_id.id,
'location_dest_id': self.product_order_id.person_name.property_stock_customer.id,
'picking_id': picking.id,
'move_dest_id': False,
'move_dest_ids': False,
'state': 'draft',
'company_id': self.product_order_id.company_id.id,
'price_unit': price_unit,
'picking_type_id': picking.picking_type_id.id,
'procurement_id': False,
'route_ids': 1 and [
(6, 0, [x.id for x in self.env['stock.location.route'].search([('id', 'in', (2, 3))])])] or [],
'warehouse_id': picking.picking_type_id.warehouse_id.id,

20
mobile_service_shop/reports/service_ticket_template.xml

@ -13,12 +13,12 @@
<table style="width:100%;">
<tbody style="line-height:2">
<tr>
<td><strong>Ref no</strong></td><td style="padding-left:15%;">:</td>
<td style="padding-left:2%;"><strong><span style="font-size:16px; font-weight:2px;" t-esc="sev_id"/></strong></td>
<td><strong>Ref no&#160;</strong></td><td>&#160;:&#160;</td>
<td><strong>&#160;<span style="font-size:16px; font-weight:2px;" t-esc="sev_id"/></strong></td>
</tr>
<tr>
<td> <strong>Customer name</strong></td><td style="padding-left:15%;">:</td>
<td style="padding-left:2%;"><span t-esc="customer_name"/></td>
<td><strong>Customer name&#160;</strong></td><td>&#160;:&#160;</td>
<td>&#160;<span t-esc="customer_name"/></td>
</tr>
</tbody>
</table>
@ -27,19 +27,19 @@
<table style="width:100%;">
<tbody style="line-height:2">
<tr>
<td style="margin-right:10%;"><strong>Requested date</strong></td><td style="padding-left:15%;">:</td>
<td style="padding-left:2%;"> <span t-esc="date_request"/></td>
<td style="margin-right:10%;"><strong>Requested date&#160;</strong></td><td>&#160;:&#160;</td>
<td>&#160;<span t-esc="date_request"/></td>
</tr>
<tr>
<td style="margin-right:10%;"><strong>Return date</strong></td><td style="padding-left:15%;">:</td>
<td style="padding-left:2%;"><span t-esc="date_return"/></td>
<td style="margin-right:10%;"><strong>Return date&#160;</strong></td><td>&#160;:&#160;</td>
<td>&#160;<span t-esc="date_return"/></td>
</tr>
</tbody>
</table>
</div>
<div class="col-xs-12" style="margin-top:20%;margin-left:-73%;"><h4>Device details</h4></div>
<table style="margin-top:25%;margin-left:-18%;width:95%;border:1px solid black;line-height:2;text-align:center;">
<div class="col-xs-12" style="margin-top:20%;margin-left:-68%;"><h4>Device details</h4></div>
<table style="margin-top:25%;margin-left:-16%;width:95%;border:1px solid black;line-height:2;text-align:center;">
<thead style="background-color:#c9cacc;font-size:15px;">
<tr>
<td>Sl no.</td>

4
mobile_service_shop/wizard/mobile_create_invoice.py

@ -50,14 +50,12 @@ class MobileServiceInvoice(models.Model):
supplier = service_id.person_name
inv_data = {
'type': 'out_invoice',
'reference': supplier.name,
'account_id': supplier.property_account_receivable_id.id,
'ref': supplier.name,
'partner_id': supplier.id,
'currency_id': service_id.company_id.currency_id.id,
'journal_id': service_id.journal_type.id,
'invoice_origin': service_id.name,
'company_id': service_id.company_id.id,
'date_due': service_id.return_date,
}
inv_id = inv_obj.create(inv_data)
service_id.first_payment_inv = inv_id.id

Loading…
Cancel
Save