Skip to content

Commit

Permalink
[FIX] pylinting
Browse files Browse the repository at this point in the history
  • Loading branch information
mFlayyan committed Apr 24, 2019
1 parent f83a0b8 commit 9b884c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base_delivery_carrier_files_document/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'name': 'Base module for picking carrier files creation for document',
'version': '10.0.1.0.0',
'category': 'Generic Modules/Warehouse',
'description': """
'summary': """
Allow to store the carrier files in a Document directory.
Auto-install when the module Document and
Base Delivery Carrier Files are installed.
Expand Down
2 changes: 1 addition & 1 deletion delivery_carrier_file_tnt/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'name': 'Delivery Carrier File: TNT',
'version': '10.0.1.0.0',
'category': 'Generic Modules/Warehouse',
'description': """
'summary': """
Sub-module for Base Delivery Carrier Files.
Definition of the delivery carrier file for "TNT Express Shipper".
Expand Down
6 changes: 3 additions & 3 deletions delivery_carrier_file_tnt/carrier_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
from odoo import api, fields, models


class carrier_file(models.Model):
class CarrierFile(models.Model):
_inherit = 'delivery.carrier.file'

@api.model
def get_type_selection(self):
result = super(carrier_file, self
result = super(CarrierFile, self
).get_type_selection()
if 'tnt_express_shipper' not in result:
result.append(('tnt_express_shipper', 'TNT Express Shipper'))
Expand All @@ -36,4 +36,4 @@ def get_type_selection(self):
type = fields.Selection(get_type_selection, 'Type', required=True)
tnt_account = fields.Char('TNT Account', size=9)

carrier_file()
CarrierFile()

0 comments on commit 9b884c3

Please sign in to comment.