openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17497
[Bug 1075070] Re: [6.1]Cash registers add new statement line - crash
Hi,
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
<!-- add state to bank statement line -->
<record id="view_bank_statement_form2_add_fields" model="ir.ui.view">
<field name="name">view.bank.statement.form2.add.fields</field>
<field name="model">account.bank.statement</field>
<field name="inherit_id" ref="account.view_bank_statement_form2"/>
<field name="type">form</field>
<field name="arch" type="xml">
<data>
<xpath expr="/form/notebook/page[@name='statement_lines']/field[@name='line_ids']/tree/field[@name='date']" position="after">
<field name="state" invisible="1"/>
</xpath>
<xpath expr="/form/notebook/page[@name='statement_lines']/field[@name='line_ids']/form/field[@name='date']" position="after">
<field name="state" invisible="1"/>
</xpath>
</data>
</field>
</record>
Dana
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1075070
Title:
[6.1]Cash registers add new statement line - crash
Status in OpenERP Addons (modules):
Confirmed
Bug description:
6.1
I tried to add a new statement line in cash registers but i get the error : Error: Unknown field state in domain [["state","in",["confirm"]]].
I checked the error, is related with account_bank_statement_extensions. The problem can be reproduce also on http://6_1_23953.runbot.openerp.com.
Regards,
Dana
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1075070/+subscriptions
References