hello,
I have tested here it is working fine....with my example...

[/code]
<record>
           <field>res.partner.form1</field>
           <field>res.partner</field>
           <field>
           <field>form</field>
           <field>
                <field>
                  <button>
                 </field>
           </field>
    </record>
        <record>
           <field>res.partner.form1</field>
           <field>
           <field>form</field>
           <field>
                <field>
                <field>
                </field>
           </field>


class res_partner&#40;osv.osv&#41;&#58;
&nbsp; &nbsp; _inherit = 'res.partner'

&nbsp; &nbsp; def onchange_test&#40;self,cr,uid,ids,name&#41;&#58;
&nbsp; &nbsp; &nbsp; &nbsp; print "Called..................."
&nbsp; &nbsp; &nbsp; &nbsp; return

&nbsp; &nbsp; def calcular&#40;self,cr,uid,ids,context=&#123;&#125;&#41;&#58;
&nbsp; &nbsp; &nbsp; &nbsp; print "Called................Button..."
&nbsp; &nbsp; &nbsp; &nbsp; return
res_partner&#40;&#41;


can you put a print statement in your onchange method so that you can know 
whether it is called or not......

------------------------
Regards,
Naresh Choksy




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=29902#29902

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to