Trunk/7.0 - bank statement - lines - can not switch to form to enter notes

Bug #1137307 reported by Ferdinand
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

account/account_view.xml

 <record id="view_bank_statement_form" model="ir.ui.view">

... the form can not be opened

                    <notebook>
                        <page string="Transactions" name="statement_line_ids">
                            <field name="line_ids" context="{'date':date}">
                                <tree editable="bottom" string="Statement lines">
                                    <field name="sequence" readonly="1" invisible="1"/>
                                    <field name="date"/>
                                    <field name="name"/>
                                    <field name="ref"/>
                                    <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="['|',('parent_id','=',False),('is_company','=',True)]"/>
                                    <field name="type" on_change="onchange_type(partner_id, type)"/>
                                    <field name="account_id" options='{"no_open":True}' domain="[('journal_id','=',parent.journal_id), ('company_id', '=', parent.company_id)]"/>
                                    <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '&lt;&gt;', 'view')]"/>
                                    <field name="amount"/>
                                </tree>
                                <form string="Statement lines" version="7.0">
                                    <group col="4">
                                        <field name="date"/>
                                        <field name="name"/>
                                        <field name="ref"/>
                                        <field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
                                        <field name="type" on_change="onchange_type(partner_id, type)"/>
                                        <field name="account_id" domain="[('journal_id', '=', parent.journal_id), ('type', '&lt;&gt;', 'view'), ('company_id', '=', parent.company_id)]"/>
                                        <field name="analytic_account_id" groups="analytic.group_analytic_accounting" domain="[('company_id', '=', parent.company_id), ('type', '&lt;&gt;', 'view')]"/>
                                        <field name="amount"/>
                                        <field name="sequence" readonly="0"/>
                                    </group>
                                    <separator string="Notes"/>
                                    <field name="note"/>
                                </form>
                            </field>
                        </page>

Related branches

Revision history for this message
Ferdinand (office-chricar) wrote :

BTW if ever the form can be used - it will not work correctly as the field attributes domains are not the same

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
summary: - v7.0 - bank statement - lines - can not switch to form to enter notes
+ Trunk/7.0 - bank statement - lines - can not switch to form to enter
+ notes
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

Want to add some brief analysis here:

You can not switch the bank statement lines form view because have made the editable tree view of bank statement line, Also vesrion7 does not support to open form view on editable list view.

Remove the editable is does not make sense, So I suggest that remove the form view on bank statement line under bank statement form because if you want to add the note then you can use the bank statement line view separate. Additionally you can add the ref If you want to add small description.

So I would like to suggest R@D team that please remove the form view on bank statement line of bank statement view because its useless.

Thank you!

Revision history for this message
Ferdinand (office-chricar) wrote :

Hello Amit!
I can not agree with your statement
"Remove the editable is does not make sense,..."

it does make sense to have an editable tree for most cases, for some other we need to add notes.

It is a relevant feature loss that in o2m widgets only either line OR form view is possible

Revision history for this message
Goran Kliska (gkliska) wrote :

+1 for comment #3

Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.