[FIX] account: fix reconciliation and inalterable hash

Create and post an invoice ('Lock Posted Entries with Hash' on the
journal)
Edit also Bank journal enabling 'Lock Posted Entries with Hash'
Create and post a corresponding bank statement:
- same setting on the journal
- same partner on the line
Reconcile

Action will be blocked because the system try to
rewrite the partner on the posted line which is locked.

For Bank/Cash journals should not be visible the lock setting.

opw-2367688

closes odoo/odoo#61284

X-original-commit: d7f92cabb4bb12fe40356c9764c8e3e7c75e4f37
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2020-11-03 15:29:48 +00:00
parent 084690edc9
commit a646326ea0
@@ -102,7 +102,7 @@
<div class="text-muted" colspan="2">Keep empty for no control</div>
<field name="type_control_ids" widget="many2many_tags"/>
<field name="account_control_ids" widget="many2many_tags"/>
<field name="restrict_mode_hash_table" groups="account.group_account_readonly"/>
<field name="restrict_mode_hash_table" groups="account.group_account_readonly" attrs="{'invisible': [('type', 'in', ['bank', 'cash'])]}"/>
</group>
<!-- email alias -->
<group class="oe_read_only" name="group_alias_ro" string="Create Invoices upon Emails" attrs="{'invisible': ['|', ('type', 'not in', ('sale' ,'purchase')), ('alias_domain', '=', False)]}">