Browse Source

[FIX] Bug Fixed 'mobile_service_shop'

pull/134/merge
Ajmalcybrosys 6 years ago
parent
commit
94b42b3c4f
  1. 6
      mobile_service_shop/__manifest__.py
  2. 6
      mobile_service_shop/doc/RELEASE_NOTES.md
  3. 10
      mobile_service_shop/wizard/mobile_create_invoice.py

6
mobile_service_shop/__manifest__.py

@ -7,12 +7,12 @@
# Author: Milind Mohan @ Cybrosys, (odoo@cybrosys.com) # Author: Milind Mohan @ Cybrosys, (odoo@cybrosys.com)
# Mohammed Shahil M P @ Cybrosys, (odoo@cybrosys.com) # Mohammed Shahil M P @ Cybrosys, (odoo@cybrosys.com)
# You can modify it under the terms of the GNU AFFERO # You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. # GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. # GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
# #
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE # You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program. # (AGPL v3) along with this program.
@ -21,7 +21,7 @@
############################################################################# #############################################################################
{ {
'name': 'Mobile Service Management', 'name': 'Mobile Service Management',
'version': '13.0.1.0.0', 'version': '13.0.1.0.1',
'summary': 'Module for managing mobile service shop daily activities.', 'summary': 'Module for managing mobile service shop daily activities.',
'category': 'Industries', 'category': 'Industries',
'author': 'Cybrosys Techno Solutions', 'author': 'Cybrosys Techno Solutions',

6
mobile_service_shop/doc/RELEASE_NOTES.md

@ -5,3 +5,9 @@
#### ADD #### ADD
Initial Commit. Initial Commit.
#### 09.12.2019
#### Version 13.0.1.0.1
#### FIX
Bug Fixed.

10
mobile_service_shop/wizard/mobile_create_invoice.py

@ -33,16 +33,6 @@ class MobileServiceInvoice(models.Model):
amount = fields.Integer(string='Amount') amount = fields.Integer(string='Amount')
number = fields.Char(string='Service Id') number = fields.Char(string='Service Id')
@api.model
def create(self, vals):
print(vals)
if 'amount' in vals:
vals['name'] = self.env['ir.sequence'].next_by_code('account.payment.customer.invoice') or _('New')
else:
vals['name'] = self.env['ir.sequence'].next_by_code('account.payment.customer.invoice') or _('New')
vals['service_state'] = 'draft'
return super(MobileServiceInvoice, self).create(vals)
def action_invoice_create(self): def action_invoice_create(self):
active_id = self._context.get('active_id') active_id = self._context.get('active_id')
service_id = self.env['mobile.service'].search([('id', '=', active_id)]) service_id = self.env['mobile.service'].search([('id', '=', active_id)])

Loading…
Cancel
Save