Hi Devs

It is possible to use field reference (origin) instead of Many2One? for example in this case:

class A(...):

    name = fields.Char(......)

    documents = field.One2Many('document.notification', 'origin', '???')

<http://www.presik.com>

class B(...):

    name = fields.Char(......)

    documents = field.One2Many('document.notification', 'origin', '???')




class DocumentNotification(...):
  anotherfields = .....
  origin = fields.Reference('Origin', selection='get_origin') --> this field keep reference to records from A model or B model or C model, etc.



Or some type of Mixing is the best solution?

Thanks for advance.


<http://www.presik.com>
-- Best regards / Atentamente, Oscar Andrés Alvarez M. CEO, Presik SAS Cel. 301 245 7967 www.presik.com < Empresas Inteligentes >

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/af481c42-5776-d80a-dabf-40742cce2337%40gmail.com.

Reply via email to