Community mailing list archives

User defined fields on v9 don't show up in fields_get()

Karlis Dreizis
- 01/05/2016 09:40:35
It seems there is some inconsistent behavior between v8 and v9 custome defined fields

If you add fields to a model from the interface on v9.

Settings -> Database Structures -> Models -> Choose one -> Add field 

The 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?