On 09/11/10 06:01 -0800, Vincent wrote:
> Hi,
>
> Thanks for your reply. I will reply to your questions asap.
>
> For now I've solved the issue simply by using the following domain:
>
> address = fields.Many2One('party.address', 'Address',
> required=True,
> domain=[
> ('party', '=',
> Get(Eval('_parent_party', {}), 'id'))
> ]
> )
>
> I need to do some more testing, but it seems to work as expectedYes this is better because it doesn't depend on the way the record is accessed. But you must add the "party" field as dependecy of address field. context can get some issues because we try to avoid is usage but any way it would be good to find if there is an issue with yout previous way. -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgpCWDbv1cdm5.pgp
Description: PGP signature
