[FIX] account: Prevent editing bst line values when bst not new
One could edit bank statement line values with new from a bstline modal. This is due to new quick edit behaviour. This prevent the editiing of bst lin values if bst is not new. closes odoo/odoo#73617 Task: 2427089 X-original-commit: c9e220d0276f59834baeae3196560a7f893ff337 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: jbw-odoo <jbw-odoo@users.noreply.github.com>
This commit is contained in:
@@ -308,16 +308,16 @@
|
||||
<field name="company_id" invisible="1"/>
|
||||
|
||||
<!-- Displayed fields -->
|
||||
<field name="statement_id"/>
|
||||
<field name="date"/>
|
||||
<field name="payment_ref"/>
|
||||
<field name="ref"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="amount"/>
|
||||
<field name="sequence"/>
|
||||
<field name="narration" string="Notes"/>
|
||||
<field name="transaction_type"/>
|
||||
<field name="move_id"/>
|
||||
<field name="statement_id" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="date" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="payment_ref" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="ref" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="partner_id" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="amount" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="sequence" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="narration" string="Notes" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="transaction_type" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
<field name="move_id" attrs="{'readonly': [('state', '!=', 'open')]}"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user