Skip to content

Commit

Permalink
[LINT] fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GabbasovDinar authored and Ildar committed May 24, 2018
1 parent 788d76f commit da48ec1
Show file tree
Hide file tree
Showing 118 changed files with 4 additions and 121 deletions.
1 change: 0 additions & 1 deletion hw_printer_network/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

def post_load():
Expand Down
1 change: 0 additions & 1 deletion hw_printer_network/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017-2018 Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar>
# Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
Expand Down
1 change: 0 additions & 1 deletion hw_printer_network/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import hw_printer_network_controller
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017-2018 Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar>
# Copyright 2018 Tom Blauwendraat <tom@sunflowerweb.nl>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
Expand Down
1 change: 0 additions & 1 deletion hw_twitter_printing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import logging
import threading
from odoo.tools import config
Expand Down
1 change: 0 additions & 1 deletion hw_twitter_printing/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """Print tweets with PosBox""",
"summary": """Print tweets with specific hashtags""",
Expand Down
1 change: 0 additions & 1 deletion hw_twitter_printing/escpos_encoding.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import copy

try:
Expand Down
1 change: 0 additions & 1 deletion pos_cashier_select/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
1 change: 0 additions & 1 deletion pos_cashier_select/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """POS Cashier Select""",
"summary": """Forced choose a cashier before switching to payment screen""",
Expand Down
1 change: 0 additions & 1 deletion pos_cashier_select/tests/test_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests
from odoo.api import Environment

Expand Down
1 change: 0 additions & 1 deletion pos_category_multi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-

from . import models
1 change: 0 additions & 1 deletion pos_category_multi/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """Multiple categories per product in POS""",
"summary": """Specify as many categories for a product as you need""",
Expand Down
1 change: 0 additions & 1 deletion pos_category_multi/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from openerp import fields, models

Expand Down
1 change: 0 additions & 1 deletion pos_category_multi/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import default_test
1 change: 0 additions & 1 deletion pos_category_multi/tests/default_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


Expand Down
1 change: 0 additions & 1 deletion pos_debranding/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_debranding/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "POS debranding",
'version': '1.0.0',
Expand Down
1 change: 0 additions & 1 deletion pos_debranding/models.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
8 changes: 4 additions & 4 deletions pos_debt_notebook/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ def set_values(self):
super(ResConfigSettings, self).set_values()
config_parameters = self.env["ir.config_parameter"].sudo()
for record in self:
config_parameters.set_param("pos_debt_notebook.debt_type", record.debt_type)
config_parameters.set_param("pos_debt_notebook.debt_limit", record.debt_limit)
config_parameters.sudo().set_param("pos_debt_notebook.debt_type", record.debt_type)
config_parameters.sudo().set_param("pos_debt_notebook.debt_limit", record.debt_limit)

@api.multi
def get_values(self):
res = super(ResConfigSettings, self).get_values()
config_parameters = self.env["ir.config_parameter"].sudo()
res.update(
debt_type=config_parameters.get_param("pos_debt_notebook.debt_type", default='debt'),
debt_limit=float(config_parameters.get_param("pos_debt_notebook.debt_limit", default=0))
debt_type=config_parameters.sudo().get_param("pos_debt_notebook.debt_type", default='debt'),
debt_limit=float(config_parameters.sudo().get_param("pos_debt_notebook.debt_limit", default=0))
)
return res

Expand Down
1 change: 0 additions & 1 deletion pos_debt_notebook_sync/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
from . import models
from . import controllers
1 change: 0 additions & 1 deletion pos_debt_notebook_sync/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """Internal Credit System""",
"summary": """Credit payment system for festivals, food courts, etc.""",
Expand Down
1 change: 0 additions & 1 deletion pos_debt_notebook_sync/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import pos_debt_sync_controller
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import openerp
from odoo.http import request

Expand Down
1 change: 0 additions & 1 deletion pos_debt_notebook_sync/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import pos_config
1 change: 0 additions & 1 deletion pos_debt_notebook_sync/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import models, api


Expand Down
1 change: 0 additions & 1 deletion pos_details_custom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_details_custom/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "Custom Sale Details report",
'version': '1.0.0',
Expand Down
1 change: 0 additions & 1 deletion pos_details_custom/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from openerp import models
from openerp.addons.point_of_sale.report.pos_details import pos_details

Expand Down
1 change: 0 additions & 1 deletion pos_disable_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_disable_payment/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "Disable payments in POS",
'summary': "Control access to the POS payments",
Expand Down
1 change: 0 additions & 1 deletion pos_disable_payment/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import fields, models, api


Expand Down
1 change: 0 additions & 1 deletion pos_disable_payment/tests/test_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


Expand Down
1 change: 0 additions & 1 deletion pos_disable_restore_orders/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "Disable orders restoring",
'version': '1.0.0',
Expand Down
1 change: 0 additions & 1 deletion pos_discount_base/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
1 change: 0 additions & 1 deletion pos_discount_base/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """POS discount base""",
"summary": """Technical module in POS""",
Expand Down
1 change: 0 additions & 1 deletion pos_discount_total/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': 'Discount for total amount of pos order',
'version': '1.0.0',
Expand Down
1 change: 0 additions & 1 deletion pos_discount_total/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import default_test
1 change: 0 additions & 1 deletion pos_discount_total/tests/default_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


Expand Down
1 change: 0 additions & 1 deletion pos_fiscal_current/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': 'POS fiscal current',
'version': '1.0.0',
Expand Down
1 change: 0 additions & 1 deletion pos_fiscal_floor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import model
1 change: 0 additions & 1 deletion pos_fiscal_floor/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': 'POS fiscal floor',
'version': '1.0.1',
Expand Down
1 change: 0 additions & 1 deletion pos_fiscal_floor/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import pos_fiscal_floor
1 change: 0 additions & 1 deletion pos_fiscal_floor/model/pos_fiscal_floor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-

from openerp import fields, models

Expand Down
1 change: 0 additions & 1 deletion pos_invoice_pay/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
Expand Down
1 change: 0 additions & 1 deletion pos_invoice_pay/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Artyom Losev
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
Expand Down
1 change: 0 additions & 1 deletion pos_invoice_pay/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Artyom Losev
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
Expand Down
1 change: 0 additions & 1 deletion pos_invoice_pay/report/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import report
1 change: 0 additions & 1 deletion pos_invoice_pay/report/report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Artyom Losev
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

Expand Down
1 change: 0 additions & 1 deletion pos_keyboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
1 change: 0 additions & 1 deletion pos_keyboard/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "Keyboard support in Point Of Sale",
'author': "IT-Projects LLC, Ivan Yelizariev",
Expand Down
1 change: 0 additions & 1 deletion pos_mobile/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
1 change: 0 additions & 1 deletion pos_mobile/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """POS Mobile UI""",
"summary": """Your Point of Sale in the Mobile Version""",
Expand Down
1 change: 0 additions & 1 deletion pos_mobile/tests/test_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests
from odoo.api import Environment

Expand Down
1 change: 0 additions & 1 deletion pos_mobile_restaurant/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_mobile_restaurant/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """POS Mobile UI for Waiters""",
"summary": """Your Restaurant in the Mobile Version""",
Expand Down
1 change: 0 additions & 1 deletion pos_mobile_restaurant/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import pos_config_model
1 change: 0 additions & 1 deletion pos_mobile_restaurant/models/pos_config_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import logging
from odoo import models, fields

Expand Down
1 change: 0 additions & 1 deletion pos_mobile_restaurant/tests/test_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests
from odoo.api import Environment

Expand Down
1 change: 0 additions & 1 deletion pos_multi_session/external_tests/tests/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2018 Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
Expand Down
1 change: 0 additions & 1 deletion pos_multi_session/external_tests/tests/test_framework.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

Expand Down
1 change: 0 additions & 1 deletion pos_multi_session/external_tests/tests/test_sync.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2016-2017 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2016 Dinar Gabbasov <https://it-projects.info/team/GabbasovDinar>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
Expand Down
1 change: 0 additions & 1 deletion pos_order_cancel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_cancel/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """Saving removed products of POS order""",
"summary": """Store all cases of product removing and allow to specify reasons for it""",
Expand Down
1 change: 0 additions & 1 deletion pos_order_cancel/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_cancel/models/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import fields, models, api
from functools import partial
from datetime import datetime
Expand Down
1 change: 0 additions & 1 deletion pos_order_cancel/tests/test_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


Expand Down
1 change: 0 additions & 1 deletion pos_order_cancel_restaurant/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_cancel_restaurant/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """Analyzing of refunds in Restaurant""",
"summary": """Waiter specifies refund reason to avoid serving mistakes in future.""",
Expand Down
1 change: 0 additions & 1 deletion pos_order_cancel_restaurant/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_cancel_restaurant/models/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import fields, models


Expand Down
1 change: 0 additions & 1 deletion pos_order_cancel_restaurant/tests/test_default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


Expand Down
1 change: 0 additions & 1 deletion pos_order_note/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_note/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """POS Advanced Order Notes""",
"summary": """Set predefined notes for separate product or entire order""",
Expand Down
1 change: 0 additions & 1 deletion pos_order_note/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_note/models/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import fields, models


Expand Down
1 change: 0 additions & 1 deletion pos_order_note/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import default_test
1 change: 0 additions & 1 deletion pos_order_note/tests/default_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


Expand Down
1 change: 0 additions & 1 deletion pos_order_printer_product/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_printer_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """Print certain products on Order Printers""",
"summary": """Specify certain products to be allowed to print on order printers""",
Expand Down
1 change: 0 additions & 1 deletion pos_order_printer_product/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_order_printer_product/models/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import models, fields


Expand Down
1 change: 0 additions & 1 deletion pos_order_printer_product/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import default_test
1 change: 0 additions & 1 deletion pos_order_printer_product/tests/default_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import odoo.tests


Expand Down
1 change: 0 additions & 1 deletion pos_orderline_absolute_discount/report/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import pos_order_report
1 change: 0 additions & 1 deletion pos_orderline_absolute_discount/report/pos_order_report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import api, models, tools


Expand Down
1 change: 0 additions & 1 deletion pos_pin/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': 'Confirm POS action by PIN',
'version': '1.0.0',
Expand Down
1 change: 0 additions & 1 deletion pos_print_method/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
1 change: 0 additions & 1 deletion pos_print_method/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
"name": """POS Print Method""",
"summary": """Choose print method for order printing in POS""",
Expand Down
1 change: 0 additions & 1 deletion pos_print_method/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import models
Loading

0 comments on commit da48ec1

Please sign in to comment.