[FIX] account: remove readonly on auto_post
The aim of this commit is to allow user to post a reversed entry even when the date for the reversed has been set in the future. before this commit: if the move is generated using the reverse entry button and a date in the future, the reverse entry is created with auto_post True and is readonly in the view resulting in the user being unable to post the move himself. after this commit: auto_post can be manually set to false and the user can post the move himself. closes odoo/odoo#83029 Task: #2522640 X-original-commit: 40b7976de1fe1cae71eb1063188eacb9a8a8fb70 Signed-off-by: Olivier Colson <oco@odoo.com> Signed-off-by: Brice Bartoletti <bib@odoo.com>
This commit is contained in:
@@ -1228,7 +1228,7 @@
|
||||
widget="email"
|
||||
attrs="{'invisible': ['|', ('move_type', 'not in', ('in_invoice', 'in_refund')), ('invoice_source_email', '=', False)]}"/>
|
||||
<field name="auto_post"
|
||||
attrs="{'readonly': ['|',('reversed_entry_id', '!=', False),('state','!=','draft')]}"/>
|
||||
attrs="{'readonly': [('state','!=','draft')]}"/>
|
||||
<field name="to_check"/>
|
||||
</group>
|
||||
</group>
|
||||
@@ -1238,7 +1238,7 @@
|
||||
<group id="other_tab_entry_group">
|
||||
<group name="misc_group">
|
||||
<field name="auto_post"
|
||||
attrs="{'invisible': [('move_type', '!=', 'entry')], 'readonly': ['|',('reversed_entry_id', '!=', False),('state','!=','draft')]}"/>
|
||||
attrs="{'invisible': [('move_type', '!=', 'entry')], 'readonly': [('state','!=','draft')]}"/>
|
||||
<field name="reversed_entry_id"
|
||||
attrs="{'invisible': [('move_type', '!=', 'entry')]}"/>
|
||||
<field name="to_check"
|
||||
|
||||
Reference in New Issue
Block a user