diff --git a/account_financial_test_data/__openerp__.py b/account_financial_test_data/__openerp__.py index 8f7c95e4..eb4044f0 100644 --- a/account_financial_test_data/__openerp__.py +++ b/account_financial_test_data/__openerp__.py @@ -1,4 +1,4 @@ -# -*- encoding: utf-8 -*- +# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution diff --git a/account_financial_test_data/models/__init__.py b/account_financial_test_data/models/__init__.py index 955bc4c3..71f1420d 100644 --- a/account_financial_test_data/models/__init__.py +++ b/account_financial_test_data/models/__init__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -import account_installer +from . import account_installer diff --git a/account_financial_test_data/models/account_installer.py b/account_financial_test_data/models/account_installer.py index cd49d41a..feb90341 100644 --- a/account_financial_test_data/models/account_installer.py +++ b/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__) diff --git a/account_financial_test_data/pos_install.py b/account_financial_test_data/pos_install.py index b84eb843..b554cbcf 100644 --- a/account_financial_test_data/pos_install.py +++ b/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',