← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 819871] [NEW] Form shows last item in group on new line

 

Public bug reported:

I have modified the project.task.form object to display additional
items.  The first group has been modified to:

                    <group colspan="12" col="12">
                        <field name="name" select="1" colspan="4"/>
                        <field name="project_id" select="1" on_change="onchange_project(project_id)" domain="['|',('user_id','=',uid),('members','=',uid)]" colspan="4"/>
                        <field name="total_hours" widget="float_time"/>
                        <field name="date_deadline" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/>
                        <field name="create_uid" readonly="1" colspan="4"/>
                        <field name="user_id" select="1" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}" colspan="4"/>
                        <field name="progress" widget="progressbar" colspan="4"/>
                    </group>

Under the GTK client the form displays as expected with the fields
distributed over two lines, however in the web interface the last field
is displayed on a new line.

The server is openerp-server v6.0.2 with openerp-web v6.0.2 running on
ubuntu 10.04.2 linux.  The form has been loaded in Opera 11.50, Internet
Explorer 8 and Firefox 4.0.1 and the same results occur regardless of
browser.

I am able to have the fields on two lines by dividing the group into
two:

                    <group colspan="12" col="12">
                        <field name="name" select="1" colspan="4"/>
                        <field name="project_id" select="1" on_change="onchange_project(project_id)" domain="['|',('user_id','=',uid),('members','=',uid)]" colspan="4"/>
                        <field name="total_hours" widget="float_time"/>
                        <field name="date_deadline" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/>
                    </group>
                    <group colspan="6" col="6">
                        <field name="create_uid" readonly="1"/>
                        <field name="user_id" select="1" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/>
                        <field name="progress" widget="progressbar"/>
                    </group>

however then the fields do not line up vertically as before, creating a
messy appearance.

     -Doug

** Affects: openobject-client-web
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/819871

Title:
  Form shows last item in group on new line

Status in OpenERP Web Client:
  New

Bug description:
  I have modified the project.task.form object to display additional
  items.  The first group has been modified to:

                      <group colspan="12" col="12">
                          <field name="name" select="1" colspan="4"/>
                          <field name="project_id" select="1" on_change="onchange_project(project_id)" domain="['|',('user_id','=',uid),('members','=',uid)]" colspan="4"/>
                          <field name="total_hours" widget="float_time"/>
                          <field name="date_deadline" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/>
                          <field name="create_uid" readonly="1" colspan="4"/>
                          <field name="user_id" select="1" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}" colspan="4"/>
                          <field name="progress" widget="progressbar" colspan="4"/>
                      </group>

  Under the GTK client the form displays as expected with the fields
  distributed over two lines, however in the web interface the last
  field is displayed on a new line.

  The server is openerp-server v6.0.2 with openerp-web v6.0.2 running on
  ubuntu 10.04.2 linux.  The form has been loaded in Opera 11.50,
  Internet Explorer 8 and Firefox 4.0.1 and the same results occur
  regardless of browser.

  I am able to have the fields on two lines by dividing the group into
  two:

                      <group colspan="12" col="12">
                          <field name="name" select="1" colspan="4"/>
                          <field name="project_id" select="1" on_change="onchange_project(project_id)" domain="['|',('user_id','=',uid),('members','=',uid)]" colspan="4"/>
                          <field name="total_hours" widget="float_time"/>
                          <field name="date_deadline" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/>
                      </group>
                      <group colspan="6" col="6">
                          <field name="create_uid" readonly="1"/>
                          <field name="user_id" select="1" attrs="{'readonly':[('state','in',['done', 'cancelled'])]}"/>
                          <field name="progress" widget="progressbar"/>
                      </group>

  however then the fields do not line up vertically as before, creating
  a messy appearance.

       -Doug

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/819871/+subscriptions


Follow ups

References