attrs not working within a group with nested notebooks

Bug #844064 reported by Manfred Rockel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Medium
OpenERP sa GTK client R&D

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

Related branches

Revision history for this message
Manfred Rockel (mrockel) wrote :
Revision history for this message
Manfred Rockel (mrockel) wrote :
Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote :

Hello,

I have faced same problem with latest gtk. For latest openerp-web is working perfectly fine.

Thank you pointing out.

affects: openobject-server → openobject-client
Changed in openobject-client:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → OpenERP sa GTK client R&D (openerp-dev-gtk)
Changed in openobject-client:
status: Confirmed → In Progress
Revision history for this message
Ravi Gadhia (OpenERP) (rga-openerp) wrote :

Hello Manfred Rockel ,

              It has been fixed in lp:~openerp-dev/openobject-client/trunk-bug-844064-rga and it will merge soon with trunk client
Thanks for reporting

Changed in openobject-client:
status: In Progress → Fix Committed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

Thanks for reporting !

It has been fixed at trunk client with revision-info:1965 <email address hidden>

Thanks,

Changed in openobject-client:
status: Fix Committed → Fix Released
Revision history for this message
Manfred Rockel (mrockel) wrote :

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>

Revision history for this message
Manfred Rockel (mrockel) wrote :

I have tried your latest changes with above example - it works

But when i use it in my own forms it does not work.

Please try attached example: partner_test modul.

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Manfred,

Thanks for reporting !

It has been improved at trunk client with revision-info:1981 <email address hidden>

Thanks,

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.