It is currently Tue May 22, 2012 11:46 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: onchange child class by selcting name frm parent clas
PostPosted: Mon Jul 18, 2011 12:09 pm 
Offline

Joined: Mon Jul 18, 2011 9:49 am
Posts: 1
Location: karachi
i have tow classes class customer_in and class customer_out
class cust_in(osv.osv)
_name = 'customer_in'
_columns = {

'name': fields.many2one('res.partner', 'Customer',domain="[('customer','=','True')]",requried=True),
'in_out': fields.one2many('customer_out','inst_id', 'Customer')
}

cust_in()
class cust_out(osv.osv)
_name = customer_out
_columns = {
'inst_id':fields.many2one('customer_in','item',readonly=True,hidden=True),
'or_no': fields.char('Order No',required=True,size=20),
}
cust_out()

Question: if i select customer from res.partner , class customer_in from field "name" this will onchange the field or_no of class customer_out
is it possible that selct a name from class customer_in and it will automatic chage the another class (customer_out) field or_no which is orderNo customer?


Top
 Profile  
 
 Post subject: Re: onchange child class by selcting name frm parent clas
PostPosted: Mon Jul 18, 2011 12:14 pm 
Offline

Joined: Mon Jul 18, 2011 12:02 pm
Posts: 76
ponka mera n|m


Top
 Profile  
 
 Post subject: Re: onchange child class by selcting name frm parent clas
PostPosted: Wed Jul 20, 2011 12:28 pm 
Offline

Joined: Wed Jul 06, 2011 10:29 am
Posts: 5
Location: karachi
use inheritence


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP