Browse Source

Fix errors concerning test_flake8 and test_pylint

pull/188/head
Alex Comba 9 years ago
parent
commit
70580fbbcb
  1. 2
      account_financial_test_data/__openerp__.py
  2. 2
      account_financial_test_data/models/__init__.py
  3. 2
      account_financial_test_data/models/account_installer.py
  4. 29
      account_financial_test_data/pos_install.py

2
account_financial_test_data/__openerp__.py

@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution

2
account_financial_test_data/models/__init__.py

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import account_installer
from . import account_installer

2
account_financial_test_data/models/account_installer.py

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import logging
from openerp.osv import orm
from openerp import models, fields, api, _, exceptions
from openerp import models, api
_logger = logging.getLogger(__name__)

29
account_financial_test_data/pos_install.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from datetime import date, datetime
from openerp import SUPERUSER_ID, api, tools, _
from openerp import SUPERUSER_ID, api
def post_init_hook(cr, registry):
@ -56,7 +56,8 @@ def post_init_hook(cr, registry):
account_setting = account_setting_obj.create({})
account_setting.group_multi_currency = True
account_setting.default_sale_tax_id = env.ref('l10n_fr.tva_normale').id
account_setting.default_purchase_tax_id = env.ref('l10n_fr.tva_normale').id
account_setting.default_purchase_tax_id = env.ref(
'l10n_fr.tva_normale').id
account_setting.execute()
return True
@ -110,7 +111,8 @@ def post_init_hook(cr, registry):
invoice_obj = env['account.invoice']
invoice_a = invoice_obj.create({
# invoice_a
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_c').id,
'account_id': env.ref(
@ -121,7 +123,8 @@ def post_init_hook(cr, registry):
'date_due': date(last_year, 1, 31),
})
invoice_b = invoice_obj.create({
# invoice_b
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_a').id,
'type': 'out_invoice',
@ -132,7 +135,8 @@ def post_init_hook(cr, registry):
'date_due': date(last_year, 2, 4),
})
invoice_c = invoice_obj.create({
# invoice_c
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_d').id,
'type': 'out_invoice',
@ -143,7 +147,8 @@ def post_init_hook(cr, registry):
'date_due': date(this_year, 3, 10),
})
invoice_d = invoice_obj.create({
# invoice_d
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_g').id,
'type': 'out_refund',
@ -154,7 +159,8 @@ def post_init_hook(cr, registry):
'date_due': date(this_year, 4, 15),
})
invoice_e = invoice_obj.create({
# invoice_e
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_b').id,
'type': 'out_invoice',
@ -165,7 +171,8 @@ def post_init_hook(cr, registry):
'date_due': date(this_year, 2, 15),
})
invoice_f = invoice_obj.create({
# invoice_f
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_a').id,
'type': 'out_invoice',
@ -176,7 +183,8 @@ def post_init_hook(cr, registry):
'date_due': date(this_year, 3, 24),
})
invoice_g = invoice_obj.create({
# invoice_g
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_g').id,
'type': 'out_invoice',
@ -187,7 +195,8 @@ def post_init_hook(cr, registry):
'date_due': date(this_year, 4, 15),
})
invoice_h = invoice_obj.create({
# invoice_h
invoice_obj.create({
'partner_id': env.ref(
'account_financial_test_data.data_partner_f').id,
'type': 'out_invoice',

Loading…
Cancel
Save