Hi,

supose you have these models:

Master(...):

  lines = fields....
  data1 = ....

Detail(...)

  master = fields....
  data2 = ...


and you want to set default of data2 depending on data1, i managed to do it 
using context in lines, 
i.e.

  lines = fields..... context={'data1':Eval('data1')}

bur i think it is unelegant and very redundant way to do it.

is there a way like  this to do it?

def default_data2(self):

  parent_data = self.parent.data1



thnx.


-- 
Felipe Alvarez Harnecker
[email protected] - 9.874.60.17

-- 
[email protected] mailing list

Reply via email to