← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 844064] Re: attrs not working within a group with nested notebooks

 

** Attachment added: "product_test.ogv"
   https://bugs.launchpad.net/openobject-server/+bug/844064/+attachment/2368059/+files/product_test.ogv

-- 
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/844064

Title:
  attrs not working within a group with nested notebooks

Status in OpenERP Server:
  New

Bug description:
  client 6.1 rev. 1928
  server 6.1 rev. 3524


          <record id="rockel_product_normal_form_view2" model="ir.ui.view">
              <field name="name">rockel.product.normal.form.inherit</field>
              <field name="model">product.product</field>
              <field name="type">form</field>
              <field name="inherit_id" ref="product.product_normal_form_view"/>
              <field name="arch" type="xml">
                  <notebook position="inside">
                          <page string="Test nested Notebooks" >
                          <group colspan="4" col="1">
                          <notebook tabpos="down">
                               <page string="Einstellungen1">
                               </page>
                               <page string="Info1">
                               </page>
                               <page string="Verkauf1" attrs="{'invisible':[('sale_ok','=',False)]}">
                               </page>
  	                     <page string="Einkauf1" attrs="{'invisible':[('purchase_ok','=',False)]}">
                               </page>
  	                </notebook>
                          <notebook tabpos="down">
                               <page string="Einstellungen2">
                               </page>
                               <page string="Info2">
                               </page>
                               <page string="Verkauf2" attrs="{'invisible':[('sale_ok','=',False)]}">
                               </page>
  	                     <page string="Einkauf2" attrs="{'invisible':[('purchase_ok','=',False)]}">
                               </page>
  	                </notebook>
                          <notebook tabpos="down">
                               <page string="Einstellungen3">
                               </page>
                               <page string="Info3">
                               </page>
                               <page string="Verkauf3" attrs="{'readonly':[('sale_ok','=',False)]}">
                               </page>
  	                     <page string="Einkauf3" attrs="{'readonly':[('purchase_ok','=',False)]}">
  	                    <field name="seller_ids2" nolabel='1'/>
                               </page>
  	                </notebook>
                          </group>
                          </page>
                  </notebook>
              </field>
          </record>

  
  please try product_test.zip

  and look at the video

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/844064/+subscriptions


References