crm layout definition problem

Bug #401353 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Undecided
Ravi Gadhia (OpenERP)

Bug Description

"addons/crm/crm_view.xml"
                    <notebook colspan="4">
                        <page string="General">
                            <group col="8" colspan="4">
                                <field colspan="4" name="partner_id" on_change="onchange_partner_id(partner_id, email_from)" select="1"/>
                                <field colspan="3" name="partner_address_id" on_change="onchange_partner_address_id(partner_address_id, email_from)" select="2"/>
                                <newline/>
                                <field colspan="3" name="email_from" select="2"/>
                                <button name="remind_partner" states="open,pending" string="Send Reminder" type="object"/>
                                <field name="user_id" select="1"/>
                                <button name="remind_user" states="open,pending" string="Send Reminder" type="object"/>
                            </group>

the line <field colspan="3" name="partner_address_id"
needs colspan="3" - if set to 4 the address_id is displayed on a new line.
so only 7 fields are used from 8 definend

IMHO 2 fields with colspan=4 should be able to reside in cols="8" without tricks.

Related branches

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

colspan applies only to the field not the label. When you add a single field it uses 2 columns. If you use colspan="2" for the field it will use three columns, and so on.

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

I am surprised to learn this

http://doc.openerp.com/developer/2_6_views_events/views/design_element.html?highlight=colspan

colspan=”4”: the number of columns on which a field must extend.
and IMHO the "field" consists of the label and content

I frequently used colspan and had the impression that GTK and WEB Client include the label in the colspan
so colspan 4 is 1 for label and 3 for the field content

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

you may want to check the code from
http://bazaar.launchpad.net/~openerp-commiter/openobject-addons/chricar_price_unit/files/head:/crm/
crm.py (including new fields)
crm_view.xml - layout causing problems

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

BTW it takes some 30 seconds to switch from form to list with about 100 entries

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Fixed in 971. Thanks for reporting.

Changed in openobject-client:
status: New → Fix Released
Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Sorry I closed the bug in the wrong project.

Changed in openobject-client:
status: Fix Released → New
Changed in openobject-client:
assignee: nobody → rga(Open ERP) (rga-openerp)
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been solved by revision 1080 <email address hidden>.

Would you please check and notify us?

Thank you.

Changed in openobject-client:
status: New → Confirmed
status: Confirmed → Fix Released
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.