[FIX] account: default value for 'bank_statements_source' field
On a account journal, as no default value is set, the label appears in bold on the form, and the value is not displayed (because equal to False) Add a default value 'no_feeds' on the selection field
This commit is contained in:
committed by
Yannick Tivisse
parent
96b9d28351
commit
2ffa4eef83
@@ -243,7 +243,7 @@ class AccountJournal(models.Model):
|
||||
# Bank journals fields
|
||||
bank_account_id = fields.Many2one('res.partner.bank', string="Bank Account", ondelete='restrict', copy=False)
|
||||
display_on_footer = fields.Boolean("Show in Invoices Footer", help="Display this bank account on the footer of printed documents like invoices and sales orders.")
|
||||
bank_statements_source = fields.Selection([('manual', 'Record Manually')], string='Bank Feeds')
|
||||
bank_statements_source = fields.Selection([('no_feeds', 'No Feeds'),('manual', 'Record Manually')], string='Bank Feeds', default='no_feeds')
|
||||
bank_acc_number = fields.Char(related='bank_account_id.acc_number')
|
||||
bank_id = fields.Many2one('res.bank', related='bank_account_id.bank_id')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user