Browse Source

Fix minor issues and use short header

pull/188/head
Alex Comba 9 years ago
parent
commit
1651d2adca
  1. 2
      account_financial_test_data/__init__.py
  2. 22
      account_financial_test_data/__openerp__.py
  3. 5
      account_financial_test_data/data/partners_data.xml
  4. 3
      account_financial_test_data/models/__init__.py
  5. 5
      account_financial_test_data/models/account_installer.py
  6. 4
      account_financial_test_data/pos_install.py

2
account_financial_test_data/__init__.py

@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# © 2016 Taktik
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
from . pos_install import post_init_hook

22
account_financial_test_data/__openerp__.py

@ -1,22 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# © 2016 Taktik
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Account financial test data',
@ -25,8 +9,6 @@
'author': "Taktik, Odoo Community Association (OCA)",
'category': 'Other',
'depends': [
"base",
"account",
"account_accountant",
"l10n_fr",
],

5
account_financial_test_data/data/partners_data.xml

@ -23,6 +23,7 @@
<field name="currency_id" ref="base.EUR"/>
</record>
<!--Partner c-->
<record id="data_partner_c" model="res.partner"
context="{'default_company_type': 'person'}">
<field name="name">PARTNER C</field>
@ -33,6 +34,7 @@
<field name="currency_id" ref="base.EUR"/>
</record>
<!--Partner d-->
<record id="data_partner_d" model="res.partner"
context="{'default_company_type': 'person'}">
<field name="name">PARTNER D</field>
@ -43,6 +45,7 @@
<field name="currency_id" ref="base.EUR"/>
</record>
<!--Partner e-->
<record id="data_partner_e" model="res.partner"
context="{'default_company_type': 'person'}">
<field name="name">PARTNER E</field>
@ -53,6 +56,7 @@
<field name="currency_id" ref="base.EUR"/>
</record>
<!--Partner f-->
<record id="data_partner_f" model="res.partner"
context="{'default_company_type': 'person'}">
<field name="name">PARTNER F</field>
@ -63,6 +67,7 @@
<field name="currency_id" ref="base.EUR"/>
</record>
<!--Partner g-->
<record id="data_partner_g" model="res.partner"
context="{'default_company_type': 'person'}">
<field name="name">PARTNER G</field>

3
account_financial_test_data/models/__init__.py

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# © 2016 Taktik
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import model_name
from . import account_installer

5
account_financial_test_data/models/account_installer.py

@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
import logging
# © 2016 Taktik
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import model_nameimport logging
from openerp.osv import orm
from openerp import models, api

4
account_financial_test_data/pos_install.py

@ -3,6 +3,10 @@ from datetime import date, datetime
from openerp import SUPERUSER_ID, api
# -*- coding: utf-8 -*-
# © 2016 Taktik
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
def post_init_hook(cr, registry):
def update_partners():

Loading…
Cancel
Save