← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 739421] [NEW] Problem 57 minutes in calendar view/creation

 

Public bug reported:

Hi, in vers. 6.0.1 Ubu 10.10 desktop
I create a calendar view with date_start + duration, when I create via "mouse drag" an appointment in the form view I see, instead of duration, for ex.: 2:00 I always have 57'' minutes, so: 2:57'', if I put widget for time I see 2,95 hours. 
This are my view (If is needed I can include also python file for my osv.osv object)
Thanks

VIEW:
<record model="ir.ui.view" id="training_seance_plan_calendar">
            <field name="name">training.seance.plan.calendar</field>
            <field name="model">training.seance.plan</field>
            <field name="type">calendar</field>
            <field name="arch" type="xml">
                <calendar string="Week Plan" date_start="date" date_delay="duration" color="base_lecturer_id" mode="week">
                    <field name="course_id" />
                    <field name="base_lecturer_id" />
                    <field name="session_id" />
                    <field name="duration" widget="float_time" />
                </calendar>
            </field>
         </record>

         <record model="ir.ui.view" id="training_seance_plan_form">
            <field name="name">training.seance.plan.form</field>
            <field name="model">training.seance.plan</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Week plan">
                    <field name="course_base_id" />
                    <field name="course_id" invisible="1" /> 
                    <field name="duration" widget="float_time" />
                    <field name="date" />
                    <field name="base_lecturer_id" /> 
                    <field name="session_id" invisible="1" /> 
                </form>
            </field>
        </record>

** 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/739421

Title:
  Problem 57 minutes in calendar view/creation

Status in OpenERP Web Client:
  New

Bug description:
  Hi, in vers. 6.0.1 Ubu 10.10 desktop
  I create a calendar view with date_start + duration, when I create via "mouse drag" an appointment in the form view I see, instead of duration, for ex.: 2:00 I always have 57'' minutes, so: 2:57'', if I put widget for time I see 2,95 hours. 
  This are my view (If is needed I can include also python file for my osv.osv object)
  Thanks

  VIEW:
  <record model="ir.ui.view" id="training_seance_plan_calendar">
              <field name="name">training.seance.plan.calendar</field>
              <field name="model">training.seance.plan</field>
              <field name="type">calendar</field>
              <field name="arch" type="xml">
                  <calendar string="Week Plan" date_start="date" date_delay="duration" color="base_lecturer_id" mode="week">
                      <field name="course_id" />
                      <field name="base_lecturer_id" />
                      <field name="session_id" />
                      <field name="duration" widget="float_time" />
                  </calendar>
              </field>
           </record>

           <record model="ir.ui.view" id="training_seance_plan_form">
              <field name="name">training.seance.plan.form</field>
              <field name="model">training.seance.plan</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                  <form string="Week plan">
                      <field name="course_base_id" />
                      <field name="course_id" invisible="1" /> 
                      <field name="duration" widget="float_time" />
                      <field name="date" />
                      <field name="base_lecturer_id" /> 
                      <field name="session_id" invisible="1" /> 
                  </form>
              </field>
          </record>



Follow ups

References