[FIX] l10n_fr_pos_cert: Fix bad xpath making everything editable
When installing 'l10n_fr_pos_cert', some fields become always editables on the bank statement form even the state is not in 'open'. This allows the user to introduce a lot of unconsistencies regarding the bank statement balances. closes odoo/odoo#83348 X-original-commit: cb49944f3c980fa22131713fd96cf7bcbdc757be Signed-off-by: Olivier Colson <oco@odoo.com> Signed-off-by: Laurent Smet <las@odoo.com>
This commit is contained in:
@@ -12,13 +12,13 @@
|
||||
<attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='journal_id']" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute>
|
||||
<attribute name="attrs">{'readonly': ['|', ('move_line_count','!=', 0), ('pos_session_id', '!=', False)]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='date']" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute>
|
||||
<attribute name="attrs">{'readonly': ['|', ('state', '!=', 'open'), ('pos_session_id', '!=', False)]}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='line_ids']" position="attributes">
|
||||
<attribute name="attrs">{'readonly': [('pos_session_id', '!=', False)]}</attribute>
|
||||
<attribute name="attrs">{'readonly': ['|', ('state', '!=', 'open'), ('pos_session_id', '!=', False)]}</attribute>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user