I have also nested groups in my customized forms . This does not work

Please try this following example:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>


        <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 and groups">
---> group              <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>
---> nested group       <group colspan="2" col="2">
                        <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>
                        </group>
                        <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>

 
    </data>
</openerp>

-- 
You received this bug notification because you are a member of OpenERP
sa GTK client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/844064

Title:
  attrs not working within a group with nested notebooks

Status in OpenERP GTK Client:
  Fix Released

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-client/+bug/844064/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to