On 07/05/2012 05:50 PM, Luciano Rossi wrote:
Hello,
I would like to filter a many2one field using a "dynamic" domain.
I have a wizard. When the operator set some values at the first view, I
create a new object (default_new_stateview) setting an `id_wizard` that
I get from the context, so the many2one field at the second view, can
use it to the search (domain) by the new objects I created.
Hope I explain my self.
You can see my code at pastebin:
http://pastebin.com/SD13kEWj -> .py
http://pastebin.com/pwvHALJM -> .xml
Obviusly, my problem is it's not working. i don't know why, but I never
get the values of the context.
thanks!
I ask in the IRC and cedk answer me. I Post the answer if someone have
the same issue.
lukio: hello, i'm having a problem. i'm creating a wizard. It should
have two StateView, at the second StateView, exist a many2one field that
the domain depends on the data entry of the first StateView. I don't
understand how to set the domain of the many2one field.
lukio: my paste bin u can look it at -> http://pastebin.com/SD13kEWj
ANSWER:
cedk: lukio: you can not
nicoe: lukio: you should add another field and make a domain using Eval
on this field
cedk: lukio: domain could only use value of fields in the current view
Thanks!
--
Luciano Rossi
gcoop - Cooperativa de Software Libre
www.gcoop.coop
(0054 11) 4855-4390 Juan RamÃrez de Velasco 508 Depto A
--
[email protected] mailing list