On Tuesday, May 5, 2015 at 9:40:03 AM UTC+2, Cédric Krier wrote:
>
> On 29 Apr 11:28, Simon Klemenc wrote: 
> > Hi there, 
> > 
> > As there is active record available in on_change (Thanks for that!), i 
> > would like to make use of it to create invoice/shipment bound addresses. 
> > Now, the hassle is to hide those addresses from the party address 
> subfield. 
> > I saw it is possible to add a domain clause to the many2many field, but 
> i 
> > am not sure this is what i want. 
> > All i want is to add a domain to a view. I see that is working with 
> > ir.action.act_window, but the m2m fields always use a 
> > ir.action.act_window.view so i dont really know how to make that 
> happen... 
>
> The fields instance have a domain attribute: 
> 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")

thanks!
 

>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

Reply via email to