Remove module account_banking_partner_journal_account. Moved to bank-statement-reconcile

This commit is contained in:
Erwin van der Ploeg
2015-03-13 15:04:08 +01:00
parent bb2713aa71
commit 57600931cb
6 changed files with 0 additions and 221 deletions

View File

@@ -1 +0,0 @@
from . import res_partner

View File

@@ -1,45 +0,0 @@
##############################################################################
#
# Copyright (C) 2013 Therp BV (<http://therp.nl>)
# All Rights Reserved
#
# 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/>.
#
##############################################################################
{
'name': 'Banking Addons - Default partner journal accounts for bank'
' transactions',
'version': '0.1',
'license': 'AGPL-3',
'author': "Therp BV,Odoo Community Association (OCA)",
'website': 'https://launchpad.net/banking-addons',
'category': 'Banking addons',
'depends': ['account_banking'],
'description': '''
This module allows to set alternative journal accounts on partners to use
as default accounts in imported bank statements.
This is useful when regular transactions on clearing accounts occur. Such
clearing accounts cannot usually be selected as default partner accounts
because they are neither of type 'payable' nor 'receivable' (or at least
never at the same time!). For the alternative journal accounts for bank
transactions, any reconcilable account can be selected.
When a transaction matches a specific move in the system, the account
from the move line takes still precedence so as not to impede
reconciliation.
''',
'data': ['res_partner_view.xml'],
'installable': False,
}

View File

@@ -1,35 +0,0 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * account_banking_partner_journal_account
#
msgid ""
msgstr ""
#. module: account_banking_partner_journal_account
#: model:ir.model,name:account_banking_partner_journal_account.model_res_partner
msgid "Partner"
msgstr ""
#. module: account_banking_partner_journal_account
#: help:res.partner,account_receivable_bank_id:0
msgid ""
"Optional default journal account on bank statements for debits from this "
"partner. Overrides the default debit account."
msgstr ""
#. module: account_banking_partner_journal_account
#: field:res.partner,account_payable_bank_id:0
msgid "Default bank credit account"
msgstr ""
#. module: account_banking_partner_journal_account
#: help:res.partner,account_payable_bank_id:0
msgid ""
"Optional default journal account on bank statements for credits from this "
"partner. Overrides the default credit account."
msgstr ""
#. module: account_banking_partner_journal_account
#: field:res.partner,account_receivable_bank_id:0
msgid "Default bank debit account"
msgstr ""

View File

@@ -1,50 +0,0 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * account_banking_partner_journal_account
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 6.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-01-06 12:12+0000\n"
"PO-Revision-Date: 2014-01-07 00:22+0000\n"
"Last-Translator: Ruchir Shukla(BizzAppDev) <Unknown>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2014-05-31 06:02+0000\n"
"X-Generator: Launchpad (build 17031)\n"
#. module: account_banking_partner_journal_account
#: model:ir.model,name:account_banking_partner_journal_account.model_res_partner
msgid "Partner"
msgstr "Relatie"
#. module: account_banking_partner_journal_account
#: help:res.partner,account_receivable_bank_id:0
msgid ""
"Optional default journal account on bank statements for debits from this "
"partner. Overrides the default debit account."
msgstr ""
"Optionele standaard grootboekrekening voor geïmporteerde "
"bankbijschrijvingen, in plaats van de standaard debiteurenrekening."
#. module: account_banking_partner_journal_account
#: field:res.partner,account_payable_bank_id:0
msgid "Default bank credit account"
msgstr "Standaardrekening bankafschrijvingen"
#. module: account_banking_partner_journal_account
#: help:res.partner,account_payable_bank_id:0
msgid ""
"Optional default journal account on bank statements for credits from this "
"partner. Overrides the default credit account."
msgstr ""
"Optionele standaard grootboekrekening voor geïmporteerde bankafschrijvingen, "
"in plaats van de standaard crediteurenrekening."
#. module: account_banking_partner_journal_account
#: field:res.partner,account_receivable_bank_id:0
msgid "Default bank debit account"
msgstr "Standaardrekening bankbijschrijvingen"

View File

@@ -1,69 +0,0 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2013 Therp BV (<http://therp.nl>).
#
# 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 openerp.osv import orm, fields
class ResPartner(orm.Model):
_inherit = 'res.partner'
_columns = {
'property_account_payable_bank_id': fields.property(
'account.account',
type='many2one',
relation='account.account',
string='Default bank credit account',
help=('Optional default journal account on bank statements for '
'credits from this partner. Overrides the default credit '
'account.'),
domain=[('type', '!=', 'view')]),
'property_account_receivable_bank_id': fields.property(
'account.account',
type='many2one',
relation='account.account',
string='Default bank debit account',
help=('Optional default journal account on bank statements for '
'debits from this partner. Overrides the default debit '
'account.'),
domain=[('type', '!=', 'view')]),
}
def def_journal_account_bank_decr(
self, cr, uid, ids, context=None):
if not ids:
return {}
res = super(ResPartner, self).def_journal_account_bank_decr(
cr, uid, ids, context=context)
for partner in self.browse(cr, uid, ids, context=context):
if partner.property_account_payable_bank_id:
res[partner.id] = partner.property_account_payable_bank_id.id
return res
def def_journal_account_bank_incr(
self, cr, uid, ids, context=None):
if not ids:
return {}
res = super(ResPartner, self).def_journal_account_bank_incr(
cr, uid, ids, context=context)
for partner in self.browse(cr, uid, ids, context=context):
bank = partner.property_account_receivable_bank_id
if bank:
res[partner.id] = bank.id
return res

View File

@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">Add default accounts on bank statements</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<field name="property_account_receivable" position="after">
<field name="property_account_receivable_bank_id"
groups="account.group_account_invoice" />
</field>
<field name="property_account_payable" position="after">
<field name="property_account_payable_bank_id"
groups="account.group_account_invoice" />
</field>
</field>
</record>
</data>
</openerp>