summaryrefslogtreecommitdiff
path: root/addons/payment_transfer/models/payment.py
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2017-04-08 16:52:05 +0200
committerFabien Pinckaers <fp@openerp.com>2017-04-08 16:52:05 +0200
commit525d094ef6a26fa412227ceed3bfee1ab266ee43 (patch)
treed693fcd84b2b6cd024818c37051bbd3e950ea783 /addons/payment_transfer/models/payment.py
parenta76ed8f2f3010e4a4c0d73610a5132b15c3bdbb0 (diff)
[IMP] account: misc UX improvements
Allow to configure the bank statement import mode from kanban When doing a manual journal entry, don't show the maturity date Removing Issued total, using credit instead (less code, more useful to have due amounts, instead of overdue) Creating a bank, set a name 'BofA Current' and an account number (that way, the account.account is based on name) Settings Wizard & menus: better sentences Statement CSV Import: installed by default (it does not add any menu) remove use_in_payment: complex field, only used for a default value Small code cleanup [IMP] sale: moving order date to secondary tab (strange on a quotation)
Diffstat (limited to 'addons/payment_transfer/models/payment.py')
-rw-r--r--addons/payment_transfer/models/payment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_transfer/models/payment.py b/addons/payment_transfer/models/payment.py
index b8bc7e2fe86..996294bf287 100644
--- a/addons/payment_transfer/models/payment.py
+++ b/addons/payment_transfer/models/payment.py
@@ -21,7 +21,7 @@ class TransferPaymentAcquirer(models.Model):
def _format_transfer_data(self):
company_id = self.env.user.company_id.id
# filter only bank accounts marked as visible
- journals = self.env['account.journal'].search([('type', '=', 'bank'), ('use_in_payment', '=', True), ('company_id', '=', company_id)])
+ journals = self.env['account.journal'].search([('type', '=', 'bank'), ('company_id', '=', company_id)])
accounts = journals.mapped('bank_account_id').name_get()
bank_title = _('Bank Accounts') if len(accounts) > 1 else _('Bank Account')
bank_accounts = ''.join(['<ul>'] + ['<li>%s</li>' % name for id, name in accounts] + ['</ul>'])