On Tuesday, May 19, 2015 at 3:16:50 PM UTC+2, Sergi Almacellas Abellana wrote: > > El 19/05/15 a les 13:31, Simon Klemenc ha escrit: > > The fields instance have a domain attribute: > > http://doc.tryton.org/3.6/trytond/doc/ref/models/fields.html#domain > > <http://doc.tryton.org/3.6/trytond/doc/ref/models/fields.html#domain> > > > > > actually it seems this only checks on save, but what i want to achieve > > is to simply hide certain records. > > > > Basically the same that happens with records being "active == False", > > but on a different field ( like "is_primary_address") > > It seems you are searching for filter on xxx2many fields [1] which is > currently not implemented > > By the way, there is a workarround, which consists on creating a > functional field that returns the values filtered > > [1] https://bugs.tryton.org/issue4005 >
Thanks sergi! Now, next thing i ran into: how to create a relational address when creating a sale, but without making on_cange_party a r/w rpc and without saving to the database..? With simply creating an address but not saving i am getting an error: https://gist.github.com/hiaselhans/325df8b5e2aa9fbf3623 all the best simon > > -- > Sergi Almacellas Abellana > www.koolpi.com > Twitter: @pokoli_srk >
