← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 725740] [NEW] Gantt View does not accept attributes : day_length and mode="week"

 

Public bug reported:

Ubuntu 10.04 LTS
Openerp v 5.0.15
Web client revision : Now on revision 2953.
Server revision : Now on revision 2171.

Hello, I need to manage work day lenght higher than the default value of 8 hours by day.
With default 8 hours value it splits 12 hours work in two calendar days, when I need it in one calendar day. 
When I'am trying to add day_lenght attribute  to Gantt View I receive this error message : 
ValidateError
Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Same error message when I'am trying to add : mode="week" attribute to my Gantt view. 
I've tryed those combination  : day_length="8", day_lenght="24", in all cases it does not work. 
Here the XML code of my Gantt view : 
<record id="view_order_line_gantt_custom" model="ir.ui.view">
            <field name="name">sale.order.line.gantt_custom</field>
            <field name="model">sale.order.line</field>           
            <field name="type">gantt</field>            
            <field name="arch" type="xml">      
           <gantt string="Planning général"  color="nom_conduct"  date_start="date_depart" day_length="24" date_delay="delay">
                 <level domain="[]" link="nom_conduct" object="sale.order.line">
                        <field name="product_id"/>
                 </level>
           </gantt>
             </field>
	   </record>

Thank you for help.

** Affects: openobject-addons
     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/725740

Title:
  Gantt View does not accept attributes : day_length and mode="week"

Status in OpenERP Modules (addons):
  New

Bug description:
  Ubuntu 10.04 LTS
  Openerp v 5.0.15
  Web client revision : Now on revision 2953.
  Server revision : Now on revision 2171.

  Hello, I need to manage work day lenght higher than the default value of 8 hours by day.
  With default 8 hours value it splits 12 hours work in two calendar days, when I need it in one calendar day. 
  When I'am trying to add day_lenght attribute  to Gantt View I receive this error message : 
  ValidateError
  Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

  Same error message when I'am trying to add : mode="week" attribute to my Gantt view. 
  I've tryed those combination  : day_length="8", day_lenght="24", in all cases it does not work. 
  Here the XML code of my Gantt view : 
  <record id="view_order_line_gantt_custom" model="ir.ui.view">
              <field name="name">sale.order.line.gantt_custom</field>
              <field name="model">sale.order.line</field>           
              <field name="type">gantt</field>            
              <field name="arch" type="xml">      
             <gantt string="Planning général"  color="nom_conduct"  date_start="date_depart" day_length="24" date_delay="delay">
                   <level domain="[]" link="nom_conduct" object="sale.order.line">
                          <field name="product_id"/>
                   </level>
             </gantt>
               </field>
  	   </record>

  Thank you for help.



Follow ups

References