diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-11-03 07:51:57 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2020-11-03 07:51:57 +0000 |
| commit | d7f92cabb4bb12fe40356c9764c8e3e7c75e4f37 (patch) | |
| tree | 7cd5c42d57cca4bc0600be76c813588846a0541d /addons/account/views | |
| parent | e7b5ae8cac8d1cab57785385b7e036389e8ff266 (diff) | |
[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#61222
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/account/views')
| -rw-r--r-- | addons/account/views/account_journal_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/views/account_journal_views.xml b/addons/account/views/account_journal_views.xml index 373a8fc399c..2bd3bf4cd3f 100644 --- a/addons/account/views/account_journal_views.xml +++ b/addons/account/views/account_journal_views.xml @@ -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)]}"> |
