[6.1]Cash registers add new statement line - crash
Bug #1075070 reported by
dana ilinca
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP Publisher's Warranty Team |
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"
I checked the error, is related with account_
Regards,
Dana
Related branches
lp:~openerp-dev/openobject-addons/6.1-opw-587814-rha
- Naresh(OpenERP) (community): Needs Fixing
-
Diff: 27 lines (+18/-0)1 file modifiedaccount_bank_statement_extensions/account_bank_statement_view.xml (+18/-0)
Changed in openobject-addons: | |
status: | New → Confirmed |
summary: |
- Cash registers add new statement line - crash + [6.1]Cash registers add new statement line - crash |
Changed in openobject-addons: | |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
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