Hi, For the record, this can be considered as a bug but a very small one :)
Actually, the 'translate' column in ir_model_fields doesn't exist right at the start of the ORM; i.e. it is not created by base.sql. This means that the proposed fix is not enough, the column should be added in base.sql. Now, the bug materializes itself only when doing a 'read' on ir_model_fields for a python field: we will always read that a python field is not translatable. For a custom field, the value will be correct. But in the GUI, the flag next to a field to show if it is translatable is always correct: it is still possible for a non-custom field to see if it is translatable by inspecting the _columns attribute of the model. We will probably add the translatate field in base.sql so the information is correct even for python fields though. -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to the OpenERP Project Group. https://bugs.launchpad.net/bugs/780584 Title: Field definition translate=Yes is not stored in ir.model.fields Status in OpenERP Server: New Bug description: The field translate exists in the database, but it's not used, NULL in all databases on all fields here. Reading ir.model.fields over OpenObject doesn't work either, compare http://www.openerp.com/forum/topic24970.html. I compared two dumps: dumped database (with pg_dump), changed one field to translate=True, -u modulename, dumped again: diff shows no indication of translate= being stored anywhere in the database. Same effect on removal of translate=True. In ir_model.py, create and write are customized, handling model_props like translate somehow, but I can't figure out where translate is stopped from going into the database properly. As read is not customized, though, I think this might be the problem. So there is no way to detect from a function (action triggered) if a field is translatable at all. _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

