Merge lp:~openerp-dev/openobject-addons/6.1-opw-587814-rha into lp:openobject-addons/6.1

Proposed by Rifakat Husen (OpenERP)
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: no longer in the source branch.
Merged at revision: 7203
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-587814-rha
Merge into: lp:openobject-addons/6.1
Diff against target: 27 lines (+18/-0)
1 file modified
account_bank_statement_extensions/account_bank_statement_view.xml (+18/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-587814-rha
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Needs Fixing
Review via email: mp+152875@code.launchpad.net

Description of the change

Fix the domain error due to missing state field in the form view from module account_bank_statement_extensions.
Put state field in the bank statement line form view.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Do you think @name is needed in page to have it in xpath ?

review: Needs Fixing
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

I don't think so, I am gonna update it asap!

Thanks

Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

It's done.

Thanks for your suggestion.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_bank_statement_extensions/account_bank_statement_view.xml'
2--- account_bank_statement_extensions/account_bank_statement_view.xml 2012-05-28 10:15:13 +0000
3+++ account_bank_statement_extensions/account_bank_statement_view.xml 2013-03-13 09:19:21 +0000
4@@ -59,6 +59,24 @@
5 </data>
6 </field>
7 </record>
8+
9+ <!-- add state to bank statement line -->
10+ <record id="view_bank_statement_form2_add_fields" model="ir.ui.view">
11+ <field name="name">view.bank.statement.form2.add.fields</field>
12+ <field name="model">account.bank.statement</field>
13+ <field name="inherit_id" ref="account.view_bank_statement_form2"/>
14+ <field name="type">form</field>
15+ <field name="arch" type="xml">
16+ <data>
17+ <xpath expr="/form/notebook/page[@string='Cash Transactions']/field[@name='line_ids']/tree/field[@name='amount']" position="after">
18+ <field name="state" invisible="1"/>
19+ </xpath>
20+ <xpath expr="/form/notebook/page[@string='Cash Transactions']/field[@name='line_ids']/form/field[@name='amount']" position="after">
21+ <field name="state" invisible="1"/>
22+ </xpath>
23+ </data>
24+ </field>
25+ </record>
26
27 <!-- Bank Statement Line View -->
28