El 30/05/17 a les 15:13, Raimon Esteve ha escrit:
Hie Sergi
2017-05-30 12:42 GMT+02:00 Sergi Almacellas Abellana <se...@koolpi.com>:
El 24/05/17 a les 08:13, Raimon Esteve ha escrit:
Other module that use DynamicModel is survey. The PoolMeta was moved
into the class.
https://bitbucket.org/zikzakmedia/trytond-survey/
I'm wondering why you use dynamic model here, instead of using a Dict field
to store the survey values.
I'm not sure with Dict fields you could:
- tree/form views and menus to acces to news models
- Navigation into fields: m2o, m2m,...
The only think you miss is m2o foreign keys check. But why you need it
for surveys?
Indeed, you will not have any new models using a dict field. But all the
survey results stored on the same table, which provides more flexibility
in case new fields are added to the survey when new values already exist.
- Searchable (without function fields)
What's the problem with function fields? Dict fields can be searched on
the database (and have indexes if using JSONB on PostgreSQL).
- Integrate with third tools (BI) and without transform/extract data
AFAIU third tools can also read json values, so I do not see the point.
- ....
In other modules,you could see we use dict fields to storage some data.
Don't understand.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
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/1adde7b2-49f2-0996-0854-f73edad091b5%40koolpi.com.