[IMP] account: remove default account on misc journal form view

It was added in the context of this commit (https://github.com/odoo/odoo/commit/a3e9ca9586cba9d6161d4c05a7bfff9beeeddea7),
to auto-balance unbalanced moves.

But it's no more necessary and not only users can't select any account;
but further it is pointless.

task-3208909

closes odoo/odoo#114309

X-original-commit: eae96580f6da537d31ec43f018880bc6be82091a
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: John Laterre (jol) <jol@odoo.com>
This commit is contained in:
John Laterre (jol)
2023-03-03 17:05:35 +01:00
parent c5d9f4ee14
commit f2c0bc321b
@@ -63,12 +63,9 @@
attrs="{'invisible': [('type', '!=', 'sale')]}" groups="account.group_account_readonly"/>
<label for="default_account_id" string="Default Expense Account"
attrs="{'invisible': [('type', '!=', 'purchase')]}" groups="account.group_account_readonly"/>
<label for="default_account_id" string="Default Account"
help="If set, this account is used to automatically balance entries."
attrs="{'invisible': [('type', '!=', 'general')]}" groups="account.group_account_readonly"/>
<field name="default_account_id" nolabel="1"
attrs="{'required': ['|', '&amp;', ('id', '!=', False), ('type', 'in', ('bank', 'cash')), ('type', 'in', ('sale', 'purchase'))],
'invisible': [('type', '=', False)]}"
'invisible': [('type', 'in', (False, 'general'))]}"
options="{'no_quick_create': True}"
groups="account.group_account_readonly"/>
<field name="suspense_account_id"