On 25/05/12 16:56 +0200, Jean Cavallo wrote:
> Everyone, I talked with cedric about this, and we would really need some
> feedback on this so that we can design the solution that would be the
> more useful for all.

I think it is better to give some food for thoughts.
So the issue is that for now we can define the view to use in popup of
relation fields like Many2One or One2Many with the view_ids attributes.
This can not work for Reference fields because we don't know at the view
level which are all the possible views.

Possible solutions:

    - Add a method on Reference field that will give the list of views
      to use.
      Pros: it is flexible for modularity
      Cons: it doesn't respect the separation between view and model
            it adds one more calls to the client

    - Use a keyword in the context.
      Pros: it works out-of-the-box if set on act_window
      Cons: not so easy to extend for modularity

Maybe someone as an other solution?

-- 
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/

Attachment: pgpfGyqI5Lv4P.pgp
Description: PGP signature

Reply via email to