On 10/01/10 15:17 +0100, Hartmut Goebel wrote:
>
> Am So, 10.01.2010, 00:26, schrieb Cédric Krier:
>
> > Of course. It is not more unmaintainable than the current strings. And I
> > think
> > it is more customizable and extendable.
>
> Sorry, I'm still missing something here. How will this
>
> <field name="domain">[('fiscalyear.company.id', '=',
> context.get('company', False))]</field>
For now it is:
<field name="domain">
["('fiscalyear.company.id', '=', context.get('company', False))"]
</field>
>
> be written in future? Like this::
>
> <field name="domain">
> [('Get(Get('fiscalyear', 'company'), 'id'),
> '=',
> 'Get(Eval('contex1', {}), 'company', 0)'
> )]</field>
<field name="domain">
[('fiscalyear.company.id', '=', Get(Eval('context', {}), 'company', 0))]
</field>
--
Cédric Krier
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Jabber: [email protected]
Website: http://www.b2ck.com/
twitter: http://twitter.com/cedrickrier
identi.ca: http://identi.ca/cedrickrier
pgpKbqXCXmIb8.pgp
Description: PGP signature
