> >     def get_plan_companies(self, ids, name):
> >         if not ids:
> >             return []
> >         res = {}
> >         for Edition in self.browse(ids):
> >             Project = Edition.Project
> >             TrainingPlan = Project.TrainingPlan
> >             Companies = TrainingPlan.Company
> >             #for Company in Companies:
> >             #    res[Company.id] = Company.name
>               res[Edition.id] = [c.id for x in TrainingPlan.Company]
> >             print res
> >         return res
> > 

perfect, now it works! The only 'weird' thing is that i *must* have the
PlanCompanies field into the Edition form, wich is quite useless but i
set invisible=1 into the xml so it's not really a problem.

Thank you again for your time & help
leo


-- 
vuk di Leonardo Venturini
web developement

via Zandonai, 1 - 24129 Bergamo (BG)
Italy
P.IVA 03084840168
cell 339.6132096
http://vuk.bg.it

-- 
[email protected] mailing list

Reply via email to