Community mailing list archives
Re: User defined fields on v9 don&amp;amp; amp; amp; amp; amp; amp; amp; #39; t show up in fields_get()by
Ye, I wouldn't ether on most other cases, but since the whole point of what I'm doing right now is user definable fields if someone could provide some insight it would be much appreciated!
On Tue, Jan 5, 2016 at 5:30 PM, Mustafa Hamad <email@example.com> wrote:
I had a similar issue therefore sticked to adding them to model in source code. You should have no issues that wayOn Jan 5, 2016 6:07 PM, "Karlis Dreizis" <firstname.lastname@example.org> wrote:Can you elaborate a bit please?What would I do to get all the fields in the model?I intend to generate a view in the fields_view_get function, but it doesn't work fields_get doesn't return all the fields.KarlisOn Tue, Jan 5, 2016 at 4:54 PM, Mustafa Hamad <email@example.com> wrote:
You guessed right. It is due to a change in api. A lot of other things changed as well from V8 to V9.
MustafaOn Jan 5, 2016 5:43 PM, "Karlis Dreizis" <firstname.lastname@example.org> wrote:It seems there is some inconsistent behavior between v8 and v9 custome defined fieldsIf you add fields to a model from the interface on v9.Settings -> Database Structures -> Models -> Choose one -> Add fieldThe new ir.mode.fields record is created with state base rather than manual. As consequence the fields_get() or self._columns, self, self_fields don't return said fields.Is this a bug? Or is there a change in API?Regards,Karlis.--Ar cieņu,Kārlis