Hi all.

I'm new using tryton. I created a test module named hjpii_test4. Within 
this module I created the model hjpii.test4 (py file: [1]). This model only 
has a field 'patient', a Many2One field to party.party. 

Within this module I also created views (tree and form) for this model as 
well as the Action Windows and Menu Items (xml file: [2]). In this xml I 
also created two simple views (tree and form) for the model party.party and 
I just wanted to use them in the 'patient' field of my model hjpii.test4.

I tried to use view_ids, as you can see in the xml file (line 27 on [2]). 
However, my model uses only the first element in the view_ids list and I'm 
not sure why... I need to use both views in the field 'patient': the tree 
view when someone press the search button and the form view when someone 
press the new record button

What I'm missing? How I can correct it?

Thanks all for your help!

Regards,

Martín Guzmán

[1] 
https://bitbucket.org/martinguzman/test4/src/f2965bfbdae9/hjpii_test4/test4.py?at=master
[2] 
https://bitbucket.org/martinguzman/test4/src/f2965bfbdae9/hjpii_test4/test4.xml?at=master
[3] Here is the entire module if someone wants to test it: 
https://bitbucket.org/martinguzman/test4/downloads

Reply via email to