Hi all,
I would like to discuss a new widget for the Reference fields.
Basically, I got a structure like this :
class A:
pass
class B(A):
_name = 'module.b'
class C(A):
_name = 'module.c'
class D:
ref = fields.Reference('ref', [('module.b', 'B'), ('module.c', 'C'))])
I need a way to display a forw view of the reference field in the form view
of class D records. The form view xml would be calculated depending on the
reference model.
This calcul could be very basic (like concatenating the model name and an
argument), or it could ce something more complex like the result of a
function
call (either defined in class D or in classes (A), B, C).
This is not possible right now with tryton and as I know I am going to have
to
need this I would like to get some advice on the target design / use cases.
Jean CAVALLO
--
[email protected] mailing list