The solution is to replace in account_view.xml the line <page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
with this : <page string="Cash Transactions" name="statement_lines" attrs="{'invisible': [('state','=','draft')]}">.
And in account_bank_statement_view.xml add the state
Hi,
The solution is to replace in account_view.xml the line <page string="Cash Transactions" attrs=" {'invisible' : [('state' ,'=','draft' )]}"> _lines" attrs=" {'invisible' : [('state' ,'=','draft' )]}">. bank_statement_ view.xml add the state
with this : <page string="Cash Transactions" name="statement
And in account_
<!-- add state to bank statement line --> bank_statement_ form2_add_ fields" model="ir.ui.view"> >view.bank. statement. form2.add. fields< /field> >account. bank.statement< /field> view_bank_ statement_ form2"/ > >form</ field> form/notebook/ page[@name= 'statement_ lines'] /field[ @name=' line_ids' ]/tree/ field[@ name='date' ]" position="after"> form/notebook/ page[@name= 'statement_ lines'] /field[ @name=' line_ids' ]/form/ field[@ name='date' ]" position="after">
<record id="view_
<field name="name"
<field name="model"
<field name="inherit_id" ref="account.
<field name="type"
<field name="arch" type="xml">
<data>
<xpath expr="/
<field name="state" invisible="1"/>
</xpath>
<xpath expr="/
<field name="state" invisible="1"/>
</xpath>
</data>
</field>
</record>
Dana