Skip to content
Snippets Groups Projects
Commit cb49944f authored by Laurent Smet's avatar Laurent Smet
Browse files

[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#83314

Signed-off-by: default avatarOlivier Colson <oco@odoo.com>
parent 4e3c4fd6
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment