Skip to content

Commit

Permalink
Merge pull request OCA#2 from leemannd/10.0-migrate-l10n_ch_dta
Browse files Browse the repository at this point in the history
Update to OCA standards
  • Loading branch information
guewen authored Mar 1, 2017
2 parents 32b98be + e870a3b commit 3d829e0
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 106 deletions.
9 changes: 8 additions & 1 deletion l10n_ch_dta/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Usage

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/125/9.0
:target: https://runbot.odoo-community.org/runbot/125/10.0

Bug Tracker
===========
Expand All @@ -51,6 +51,13 @@ Contributors
* Miguel Tallón <[email protected]>
* Kumar Aberer <[email protected]>

Funders
-------
* Hasa SA
* Open Net SA
* Prisme Solutions Informatique SA
* Quod SA

Maintainer
----------

Expand Down
19 changes: 0 additions & 19 deletions l10n_ch_dta/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi. Copyright Camptocamp SA
# Ported to v8.0 by Agile Business Group <http://www.agilebg.com>
#
# 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/>.
#
##############################################################################

from . import models
from . import wizard
Expand Down
22 changes: 3 additions & 19 deletions l10n_ch_dta/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi. Copyright Camptocamp SA
# Ported to v8.0 by Agile Business Group <http://www.agilebg.com>
#
# 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/>.
#
##############################################################################
# Copyright 2009 Camptocamp SA
# Copyright 2015 Agile Business Group
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{'name': 'Switzerland - Bank Payment File (DTA)',
'summary': 'Electronic payment file for Swiss bank (DTA)',
Expand Down
2 changes: 2 additions & 0 deletions l10n_ch_dta/bank_view.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record model="ir.ui.view" id="l10nch_view_res_partner_bank_from_invoice_slip">
<field name="name">res.partner_bank.form.l10n_ch</field>
<field name="model">res.partner.bank</field>
Expand All @@ -12,4 +13,5 @@
</group>
</field>
</record>

</odoo>
2 changes: 1 addition & 1 deletion l10n_ch_dta/models/account_payment_line.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016 Braintec AG - Kumar Aberer <[email protected]>
# Copyright 2016 Braintec AG - Kumar Aberer <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import models, fields
Expand Down
2 changes: 1 addition & 1 deletion l10n_ch_dta/models/account_payment_order.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016 Braintec AG - Kumar Aberer <[email protected]>
# Copyright 2016 Braintec AG - Kumar Aberer <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import models, api
Expand Down
23 changes: 4 additions & 19 deletions l10n_ch_dta/models/bank.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi. Copyright Camptocamp SA
# Ported to v8.0 by Agile Business Group <http://www.agilebg.com>
#
# 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/>.
#
##############################################################################
# Copyright 2009 Camptocamp SA
# Copyright 2015 Agile Business Group
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import models, fields


Expand Down
2 changes: 1 addition & 1 deletion l10n_ch_dta/post_install.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016 Braintec AG (Kumar Aberer <[email protected]>)
# Copyright 2016 Braintec AG (Kumar Aberer <[email protected]>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import api, SUPERUSER_ID
Expand Down
6 changes: 3 additions & 3 deletions l10n_ch_dta/tests/test_dta.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
# © 2016 Braintec AG - Kumar Aberer <[email protected]>
# Copyright 2016 Braintec AG - Kumar Aberer <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import time

from openerp.addons.account.tests.account_test_classes \
from odoo.addons.account.tests.account_test_classes \
import AccountingTestCase
from openerp.tools import float_compare
from odoo.tools import float_compare


class TestDTA(AccountingTestCase):
Expand Down
22 changes: 1 addition & 21 deletions l10n_ch_dta/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi. Copyright Camptocamp SA
# Financial contributors: Hasa SA, Open Net SA,
# Prisme Solutions Informatique SA, Quod SA
# Ported to v8.0 by Agile Business Group <http://www.agilebg.com>
#
# 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/>.
#
##############################################################################

from . import create_dta
24 changes: 3 additions & 21 deletions l10n_ch_dta/wizard/create_dta.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright Camptocamp SA
# Financial contributors: Hasa SA, Open Net SA,
# Prisme Solutions Informatique SA, Quod SA
# Ported to v8.0 by Agile Business Group <http://www.agilebg.com>
#
# 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/>.
#
##############################################################################
# Copyright 2009 Camptocamp SA
# Copyright 2015 Agile Business Group <http://www.agilebg.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import re
import time
Expand Down

0 comments on commit 3d829e0

Please sign in to comment.