[FIX] payment: Be less resrictive for payment journals on acquires
Purpose ======= It looks a little to restrictive to only allow bank journals on payment acquirers. For example on could want to define a manual payment acquirer linked with a journal of type "cash". Allow both journal types instead of only bank.
This commit is contained in:
@@ -77,8 +77,8 @@ class PaymentAcquirer(models.Model):
|
||||
help="Capture the amount from Odoo, when the delivery is completed.")
|
||||
# Formerly associated to `generate_and_pay_invoice` option from auto_confirm
|
||||
journal_id = fields.Many2one(
|
||||
'account.journal', 'Payment Journal', domain=[('type', '=', 'bank')],
|
||||
default=lambda self: self.env['account.journal'].search([('type', '=', 'bank')], limit=1),
|
||||
'account.journal', 'Payment Journal', domain=[('type', 'in', ['bank', 'cash'])],
|
||||
default=lambda self: self.env['account.journal'].search([('type', 'in', ['bank', 'cash'])], limit=1),
|
||||
help="""Payments will be registered into this journal. If you get paid straight on your bank account,
|
||||
select your bank account. If you get paid in batch for several transactions, create a specific
|
||||
payment journal for this payment acquirer to easily manage the bank reconciliation. You hold
|
||||
|
||||
Reference in New Issue
Block a user