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:
Alexis de Lattre
2016-06-16 16:51:03 +02:00
committed by Enric Tobella
parent 95d18f3a3b
commit beb1170aba

View File

@@ -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(