mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Enable the payment methods by default on bank journals (including existing bank journals via post_install scripts)
Enable "Generate Accounting Entries On File Upload" by default
This commit is contained in:
committed by
Enric Tobella
parent
95d18f3a3b
commit
beb1170aba
@@ -54,11 +54,11 @@ class AccountPaymentMode(models.Model):
|
||||
"(other modules can set additional fields to restrict the "
|
||||
"grouping.)")
|
||||
generate_move = fields.Boolean(
|
||||
'Generate Accounting Entries On File Upload')
|
||||
string='Generate Accounting Entries On File Upload', default=True)
|
||||
offsetting_account = fields.Selection([
|
||||
('bank_account', 'Bank Account'),
|
||||
('transfer_account', 'Transfer Account'),
|
||||
], string='Offsetting Account')
|
||||
], string='Offsetting Account', default='bank_account')
|
||||
transfer_account_id = fields.Many2one(
|
||||
'account.account', string='Transfer Account',
|
||||
domain=[('internal_type', '=', 'other'), ('reconcile', '=', True)],
|
||||
@@ -72,7 +72,7 @@ class AccountPaymentMode(models.Model):
|
||||
move_option = fields.Selection([
|
||||
('date', 'One move per payment date'),
|
||||
('line', 'One move per payment line'),
|
||||
], string='Move Option')
|
||||
], string='Move Option', default='date')
|
||||
|
||||
@api.multi
|
||||
@api.constrains(
|
||||
|
||||
Reference in New Issue
Block a user